summaryrefslogtreecommitdiff
path: root/arch/x86/include/asm/trace/common.h
blob: b1eb7b18ee8a76a90d12e664a4d82682629403e3 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
#ifndef _ASM_TRACE_COMMON_H
#define _ASM_TRACE_COMMON_H

extern int trace_irq_vector_regfunc(void);
extern void trace_irq_vector_unregfunc(void);

#ifdef CONFIG_TRACING
DECLARE_STATIC_KEY_FALSE(trace_irqvectors_key);
#define trace_irqvectors_enabled()			\
	static_branch_unlikely(&trace_irqvectors_key)
#else
static inline bool trace_irqvectors_enabled(void) { return false; }
#endif

#endif