1bf9f21a2SWalter Erquinigo //===-- TraceIntelPTConstants.h ---------------------------------*- C++ -*-===// 2bf9f21a2SWalter Erquinigo // 3bf9f21a2SWalter Erquinigo // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. 4bf9f21a2SWalter Erquinigo // See https://llvm.org/LICENSE.txt for license information. 5bf9f21a2SWalter Erquinigo // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception 6bf9f21a2SWalter Erquinigo // 7bf9f21a2SWalter Erquinigo //===----------------------------------------------------------------------===// 8bf9f21a2SWalter Erquinigo 9bf9f21a2SWalter Erquinigo #ifndef LLDB_SOURCE_PLUGINS_TRACE_INTEL_PT_CONSTANTS_H 10bf9f21a2SWalter Erquinigo #define LLDB_SOURCE_PLUGINS_TRACE_INTEL_PT_CONSTANTS_H 11bf9f21a2SWalter Erquinigo 12c4fb631cSWalter Erquinigo #include "lldb/lldb-types.h" 13bf9f21a2SWalter Erquinigo #include <cstddef> 14f190ce62SKazu Hirata #include <optional> 1504195843SWalter Erquinigo 16bf9f21a2SWalter Erquinigo namespace lldb_private { 17bf9f21a2SWalter Erquinigo namespace trace_intel_pt { 18bf9f21a2SWalter Erquinigo 196a5355e8SWalter Erquinigo const size_t kDefaultIptTraceSize = 4 * 1024; // 4KB 2004195843SWalter Erquinigo const size_t kDefaultProcessBufferSizeLimit = 5 * 1024 * 1024; // 500MB 2104195843SWalter Erquinigo const bool kDefaultEnableTscValue = false; 22*91682b26SKazu Hirata const std::optional<size_t> kDefaultPsbPeriod; 236a5355e8SWalter Erquinigo const bool kDefaultPerCpuTracing = false; 24d30fd5c3SGaurav Gaur const bool kDefaultDisableCgroupFiltering = false; 25bf9f21a2SWalter Erquinigo 266fb744beSWalter Erquinigo // Physical address where the kernel is loaded in x86 architecture. Refer to 276fb744beSWalter Erquinigo // https://github.com/torvalds/linux/blob/master/Documentation/x86/x86_64/mm.rst 286fb744beSWalter Erquinigo // for the start address of kernel text section. 296fb744beSWalter Erquinigo // The kernel entry point is 0x1000000 by default when KASLR is disabled. 306fb744beSWalter Erquinigo const lldb::addr_t kDefaultKernelLoadAddress = 0xffffffff81000000; 316fb744beSWalter Erquinigo const lldb::pid_t kDefaultKernelProcessID = 1; 326fb744beSWalter Erquinigo 33bf9f21a2SWalter Erquinigo } // namespace trace_intel_pt 34bf9f21a2SWalter Erquinigo } // namespace lldb_private 35bf9f21a2SWalter Erquinigo 36bf9f21a2SWalter Erquinigo #endif // LLDB_SOURCE_PLUGINS_TRACE_INTEL_PT_CONSTANTS_H 37