xref: /freebsd-src/contrib/llvm-project/lldb/source/Plugins/Trace/intel-pt/TraceIntelPTConstants.h (revision 681ce946f33e75c590e97c53076e86dff1fe8f4a)
1 //===-- TraceIntelPTConstants.h ---------------------------------*- C++ -*-===//
2 //
3 // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
4 // See https://llvm.org/LICENSE.txt for license information.
5 // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
6 //
7 //===----------------------------------------------------------------------===//
8 
9 #ifndef LLDB_SOURCE_PLUGINS_TRACE_INTEL_PT_CONSTANTS_H
10 #define LLDB_SOURCE_PLUGINS_TRACE_INTEL_PT_CONSTANTS_H
11 
12 #include <cstddef>
13 
14 #include <llvm/ADT/Optional.h>
15 
16 namespace lldb_private {
17 namespace trace_intel_pt {
18 
19 const size_t kDefaultThreadBufferSize = 4 * 1024;              // 4KB
20 const size_t kDefaultProcessBufferSizeLimit = 5 * 1024 * 1024; // 500MB
21 const bool kDefaultEnableTscValue = false;
22 const llvm::Optional<size_t> kDefaultPsbPeriod = llvm::None;
23 
24 } // namespace trace_intel_pt
25 } // namespace lldb_private
26 
27 #endif // LLDB_SOURCE_PLUGINS_TRACE_INTEL_PT_CONSTANTS_H
28