[RFC PATCH 02/22 -v2] 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 mcount on the annotated funtions. Signed-off-by: Arnaldo Carvalho de Melo <[EMAIL PROTECTED]> Signed-off-by: Steven Rostedt <[EMAIL PROTECTED]> --- lib/smp_processor_id.c |2 +- 1 file changed, 1 insertion(+), 1 deletion(-) Index: linux-compile-i386.git/lib/smp_processor_id.c === --- linux-compile-i386.git.orig/lib/smp_processor_id.c 2008-01-09 14:09:36.0 -0500 +++ linux-compile-i386.git/lib/smp_processor_id.c 2008-01-09 14:10:11.0 -0500 @@ -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(); -- -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to [EMAIL PROTECTED] More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/
[RFC PATCH 02/22 -v2] 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 mcount on the annotated funtions. Signed-off-by: Arnaldo Carvalho de Melo [EMAIL PROTECTED] Signed-off-by: Steven Rostedt [EMAIL PROTECTED] --- lib/smp_processor_id.c |2 +- 1 file changed, 1 insertion(+), 1 deletion(-) Index: linux-compile-i386.git/lib/smp_processor_id.c === --- linux-compile-i386.git.orig/lib/smp_processor_id.c 2008-01-09 14:09:36.0 -0500 +++ linux-compile-i386.git/lib/smp_processor_id.c 2008-01-09 14:10:11.0 -0500 @@ -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(); -- -- To unsubscribe from this list: send the line unsubscribe linux-kernel in the body of a message to [EMAIL PROTECTED] More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/