brintos

brintos / llvm-project-archived public Read only

0
0
Text · 1.4 KiB · e80f512 Raw
37 lines · c
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-exception6//7//===----------------------------------------------------------------------===//8 9#ifndef LLDB_SOURCE_PLUGINS_TRACE_INTEL_PT_CONSTANTS_H10#define LLDB_SOURCE_PLUGINS_TRACE_INTEL_PT_CONSTANTS_H11 12#include "lldb/lldb-types.h"13#include <cstddef>14#include <optional>15 16namespace lldb_private {17namespace trace_intel_pt {18 19const size_t kDefaultIptTraceSize = 4 * 1024;                  // 4KB20const size_t kDefaultProcessBufferSizeLimit = 5 * 1024 * 1024; // 500MB21const bool kDefaultEnableTscValue = false;22const std::optional<size_t> kDefaultPsbPeriod;23const bool kDefaultPerCpuTracing = false;24const bool kDefaultDisableCgroupFiltering = false;25 26// Physical address where the kernel is loaded in x86 architecture. Refer to27// https://github.com/torvalds/linux/blob/master/Documentation/x86/x86_64/mm.rst28// for the start address of kernel text section.29// The kernel entry point is 0x1000000 by default when KASLR is disabled.30const lldb::addr_t kDefaultKernelLoadAddress = 0xffffffff81000000;31const lldb::pid_t kDefaultKernelProcessID = 1;32 33} // namespace trace_intel_pt34} // namespace lldb_private35 36#endif // LLDB_SOURCE_PLUGINS_TRACE_INTEL_PT_CONSTANTS_H37