Skip to contentSkip to conversation

ftrace: annotate core code that should not be traced

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

lore
Share & tools
lore
#0 lore raw

PATCH 8/19 ftrace: annotate core code that should not be traced

From: Arnaldo Carvalho de Melo <[email protected]>

Mark with "notrace" functions in core code that should not be traced. The "notrace" attribute will prevent gcc from adding a call to ftrace on the annotated funtions.

---
 lib/smp_processor_id.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
lib/smp_processor_id.c +1 -1
Index: linux/lib/smp_processor_id.c
===================================================================
@@ -7,7 +7,7 @@
 #include <linux/kallsyms.h>
 #include <linux/sched.h>
 
-unsigned int debug_smp_processor_id(void)
+notrace unsigned int debug_smp_processor_id(void)
 {
 	unsigned long preempt_count = preempt_count();
 	int this_cpu = raw_smp_processor_id();