From: Ingo Molnar Date: Mon, 12 May 2008 19:20:41 +0000 (+0200) Subject: tracing: add notrace to linkage.h X-Git-Tag: v2.6.27-rc1~1102^2^2~1^2~155 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=ffdc1a09ae7e2cbd714a446ee38a27f625b5f1c8;p=thirdparty%2Fkernel%2Flinux.git tracing: add notrace to linkage.h 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 Signed-off-by: Thomas Gleixner --- diff --git a/include/linux/linkage.h b/include/linux/linkage.h index 2119610b24f81..14f329c64ba8e 100644 --- a/include/linux/linkage.h +++ b/include/linux/linkage.h @@ -3,6 +3,8 @@ #include +#define notrace __attribute__((no_instrument_function)) + #ifdef __cplusplus #define CPP_ASMLINKAGE extern "C" #else