summaryrefslogtreecommitdiffstats
path: root/include/asm-x86/linkage.h
diff options
context:
space:
mode:
authorIngo Molnar <mingo@elte.hu>2008-04-17 17:40:51 +0200
committerIngo Molnar <mingo@elte.hu>2008-04-17 17:40:51 +0200
commit78a9909aab54123c7c471022389b36972e13b48e (patch)
treeca6cb092e3fce31276f2a4fb68242c3a807e6180 /include/asm-x86/linkage.h
parent11ae9dd48128790d3d2ece6bc916c001b4a1d147 (diff)
x86, tracing: add notrace to asm-x86/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 <mingo@elte.hu>
Diffstat (limited to 'include/asm-x86/linkage.h')
-rw-r--r--include/asm-x86/linkage.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/include/asm-x86/linkage.h b/include/asm-x86/linkage.h
index c048353f4b8..64e444f8e85 100644
--- a/include/asm-x86/linkage.h
+++ b/include/asm-x86/linkage.h
@@ -1,6 +1,9 @@
#ifndef __ASM_LINKAGE_H
#define __ASM_LINKAGE_H
+#undef notrace
+#define notrace __attribute__((no_instrument_function))
+
#ifdef CONFIG_X86_64
#define __ALIGN .p2align 4,,15
#define __ALIGN_STR ".p2align 4,,15"