diff options
Diffstat (limited to 'arch/x86/include/asm/trace/common.h')
| -rw-r--r-- | arch/x86/include/asm/trace/common.h | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/arch/x86/include/asm/trace/common.h b/arch/x86/include/asm/trace/common.h new file mode 100644 index 000000000000..57c8da027d99 --- /dev/null +++ b/arch/x86/include/asm/trace/common.h | |||
| @@ -0,0 +1,16 @@ | |||
| 1 | #ifndef _ASM_TRACE_COMMON_H | ||
| 2 | #define _ASM_TRACE_COMMON_H | ||
| 3 | |||
| 4 | #ifdef CONFIG_TRACING | ||
| 5 | DECLARE_STATIC_KEY_FALSE(trace_pagefault_key); | ||
| 6 | #define trace_pagefault_enabled() \ | ||
| 7 | static_branch_unlikely(&trace_pagefault_key) | ||
| 8 | DECLARE_STATIC_KEY_FALSE(trace_resched_ipi_key); | ||
| 9 | #define trace_resched_ipi_enabled() \ | ||
| 10 | static_branch_unlikely(&trace_resched_ipi_key) | ||
| 11 | #else | ||
| 12 | static inline bool trace_pagefault_enabled(void) { return false; } | ||
| 13 | static inline bool trace_resched_ipi_enabled(void) { return false; } | ||
| 14 | #endif | ||
| 15 | |||
| 16 | #endif | ||
