Skip to content

Commit

Permalink
tracing: add notrace to linkage.h
Browse files Browse the repository at this point in the history
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.

Signed-off-by: Ingo Molnar <mingo@elte.hu>
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
  • Loading branch information
Ingo Molnar authored and Thomas Gleixner committed May 23, 2008
1 parent 5028252 commit ffdc1a0
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions include/linux/linkage.h
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,8 @@

#include <asm/linkage.h>

#define notrace __attribute__((no_instrument_function))

#ifdef __cplusplus
#define CPP_ASMLINKAGE extern "C"
#else
Expand Down

0 comments on commit ffdc1a0

Please sign in to comment.