~ [ source navigation ] ~ [ diff markup ] ~ [ identifier search ] ~

TOMOYO Linux Cross Reference
Linux/arch/x86/include/asm/intel_pt.h

Version: ~ [ linux-6.11.5 ] ~ [ linux-6.10.14 ] ~ [ linux-6.9.12 ] ~ [ linux-6.8.12 ] ~ [ linux-6.7.12 ] ~ [ linux-6.6.58 ] ~ [ linux-6.5.13 ] ~ [ linux-6.4.16 ] ~ [ linux-6.3.13 ] ~ [ linux-6.2.16 ] ~ [ linux-6.1.114 ] ~ [ linux-6.0.19 ] ~ [ linux-5.19.17 ] ~ [ linux-5.18.19 ] ~ [ linux-5.17.15 ] ~ [ linux-5.16.20 ] ~ [ linux-5.15.169 ] ~ [ linux-5.14.21 ] ~ [ linux-5.13.19 ] ~ [ linux-5.12.19 ] ~ [ linux-5.11.22 ] ~ [ linux-5.10.228 ] ~ [ linux-5.9.16 ] ~ [ linux-5.8.18 ] ~ [ linux-5.7.19 ] ~ [ linux-5.6.19 ] ~ [ linux-5.5.19 ] ~ [ linux-5.4.284 ] ~ [ linux-5.3.18 ] ~ [ linux-5.2.21 ] ~ [ linux-5.1.21 ] ~ [ linux-5.0.21 ] ~ [ linux-4.20.17 ] ~ [ linux-4.19.322 ] ~ [ linux-4.18.20 ] ~ [ linux-4.17.19 ] ~ [ linux-4.16.18 ] ~ [ linux-4.15.18 ] ~ [ linux-4.14.336 ] ~ [ linux-4.13.16 ] ~ [ linux-4.12.14 ] ~ [ linux-4.11.12 ] ~ [ linux-4.10.17 ] ~ [ linux-4.9.337 ] ~ [ linux-4.4.302 ] ~ [ linux-3.10.108 ] ~ [ linux-2.6.32.71 ] ~ [ linux-2.6.0 ] ~ [ linux-2.4.37.11 ] ~ [ unix-v6-master ] ~ [ ccs-tools-1.8.9 ] ~ [ policy-sample ] ~
Architecture: ~ [ i386 ] ~ [ alpha ] ~ [ m68k ] ~ [ mips ] ~ [ ppc ] ~ [ sparc ] ~ [ sparc64 ] ~

  1 /* SPDX-License-Identifier: GPL-2.0 */
  2 #ifndef _ASM_X86_INTEL_PT_H
  3 #define _ASM_X86_INTEL_PT_H
  4 
  5 #define PT_CPUID_LEAVES         2
  6 #define PT_CPUID_REGS_NUM       4 /* number of registers (eax, ebx, ecx, edx) */
  7 
  8 enum pt_capabilities {
  9         PT_CAP_max_subleaf = 0,
 10         PT_CAP_cr3_filtering,
 11         PT_CAP_psb_cyc,
 12         PT_CAP_ip_filtering,
 13         PT_CAP_mtc,
 14         PT_CAP_ptwrite,
 15         PT_CAP_power_event_trace,
 16         PT_CAP_event_trace,
 17         PT_CAP_tnt_disable,
 18         PT_CAP_topa_output,
 19         PT_CAP_topa_multiple_entries,
 20         PT_CAP_single_range_output,
 21         PT_CAP_output_subsys,
 22         PT_CAP_payloads_lip,
 23         PT_CAP_num_address_ranges,
 24         PT_CAP_mtc_periods,
 25         PT_CAP_cycle_thresholds,
 26         PT_CAP_psb_periods,
 27 };
 28 
 29 #if defined(CONFIG_PERF_EVENTS) && defined(CONFIG_CPU_SUP_INTEL)
 30 void cpu_emergency_stop_pt(void);
 31 extern u32 intel_pt_validate_hw_cap(enum pt_capabilities cap);
 32 extern u32 intel_pt_validate_cap(u32 *caps, enum pt_capabilities cap);
 33 extern int is_intel_pt_event(struct perf_event *event);
 34 #else
 35 static inline void cpu_emergency_stop_pt(void) {}
 36 static inline u32 intel_pt_validate_hw_cap(enum pt_capabilities cap) { return 0; }
 37 static inline u32 intel_pt_validate_cap(u32 *caps, enum pt_capabilities capability) { return 0; }
 38 static inline int is_intel_pt_event(struct perf_event *event) { return 0; }
 39 #endif
 40 
 41 #endif /* _ASM_X86_INTEL_PT_H */
 42 

~ [ source navigation ] ~ [ diff markup ] ~ [ identifier search ] ~

kernel.org | git.kernel.org | LWN.net | Project Home | SVN repository | Mail admin

Linux® is a registered trademark of Linus Torvalds in the United States and other countries.
TOMOYO® is a registered trademark of NTT DATA CORPORATION.

sflogo.php