From: Arnaldo Carvalho de Melo Date: Mon, 12 May 2008 19:20:41 +0000 (+0200) Subject: ftrace: annotate core code that should not be traced X-Git-Tag: tip-tracing-sysprof-2008-06-16_09.17_Mon~152 X-Git-Url: https://www.infradead.org/git/?a=commitdiff_plain;h=6e766410c4babd37bc7cd5e25009c179781742c8;p=users%2Fdwmw2%2Flinux.git ftrace: annotate core code that should not be traced 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. Signed-off-by: Arnaldo Carvalho de Melo Signed-off-by: Steven Rostedt Signed-off-by: Ingo Molnar Signed-off-by: Thomas Gleixner --- diff --git a/lib/smp_processor_id.c b/lib/smp_processor_id.c index 6c90fb90e19c2..e555ab62fbadd 100644 --- a/lib/smp_processor_id.c +++ b/lib/smp_processor_id.c @@ -7,7 +7,7 @@ #include #include -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();