Skip to contentSkip to conversation

tracing: add notrace to linkage.h

PATCH In review Ingo Molnar 1 participant 1 message Feb 10, 2008

lore
Share & tools
lore
#0 lore raw

PATCH 6/19 tracing: add notrace to linkage.h

From: Ingo Molnar <[email protected]>

notrace signals that a function should not be traced. Most of the time this is used by tracers to annotate code that cannot be traced - it's in a volatile state (such as in user vdso context or NMI context) or it's in the tracer internals.

---
 include/linux/linkage.h |    2 ++
 1 file changed, 2 insertions(+)
include/linux/linkage.h +2 -0
Index: linux/include/linux/linkage.h
===================================================================
@@ -3,6 +3,8 @@
 
 #include <asm/linkage.h>
 
+#define notrace __attribute__((no_instrument_function))
+
 #ifdef __cplusplus
 #define CPP_ASMLINKAGE extern "C"
 #else