xref: /kernel/linux/linux-6.6/arch/x86/include/asm/trace/common.h (revision 62306a36)
  • Home
  • History
  • Annotate
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
  • only in /kernel/linux/linux-6.6/arch/x86/include/asm/trace/
1#ifndef _ASM_TRACE_COMMON_H
2#define _ASM_TRACE_COMMON_H
3
4#ifdef CONFIG_TRACING
5DECLARE_STATIC_KEY_FALSE(trace_pagefault_key);
6#define trace_pagefault_enabled()			\
7	static_branch_unlikely(&trace_pagefault_key)
8#else
9static inline bool trace_pagefault_enabled(void) { return false; }
10#endif
11
12#endif
13

Indexes created Thu Nov 07 10:32:03 CST 2024