Path: blob/main/contrib/llvm-project/lldb/source/Plugins/Trace/intel-pt/TraceIntelPTConstants.h
39645 views
//===-- TraceIntelPTConstants.h ---------------------------------*- C++ -*-===//1//2// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.3// See https://llvm.org/LICENSE.txt for license information.4// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception5//6//===----------------------------------------------------------------------===//78#ifndef LLDB_SOURCE_PLUGINS_TRACE_INTEL_PT_CONSTANTS_H9#define LLDB_SOURCE_PLUGINS_TRACE_INTEL_PT_CONSTANTS_H1011#include "lldb/lldb-types.h"12#include <cstddef>13#include <optional>1415namespace lldb_private {16namespace trace_intel_pt {1718const size_t kDefaultIptTraceSize = 4 * 1024; // 4KB19const size_t kDefaultProcessBufferSizeLimit = 5 * 1024 * 1024; // 500MB20const bool kDefaultEnableTscValue = false;21const std::optional<size_t> kDefaultPsbPeriod;22const bool kDefaultPerCpuTracing = false;23const bool kDefaultDisableCgroupFiltering = false;2425// Physical address where the kernel is loaded in x86 architecture. Refer to26// https://github.com/torvalds/linux/blob/master/Documentation/x86/x86_64/mm.rst27// for the start address of kernel text section.28// The kernel entry point is 0x1000000 by default when KASLR is disabled.29const lldb::addr_t kDefaultKernelLoadAddress = 0xffffffff81000000;30const lldb::pid_t kDefaultKernelProcessID = 1;3132} // namespace trace_intel_pt33} // namespace lldb_private3435#endif // LLDB_SOURCE_PLUGINS_TRACE_INTEL_PT_CONSTANTS_H363738