[PATCH] tracing: mark get_parent_ip() notrace

From: Lai Jiangshan
Date: Thu Apr 02 2009 - 02:20:47 EST



Impact: remove redundancy tracing log

When tracer is "function" or "function_graph", too much
"get_parent_ip" are recorded in ring_buffer.

Signed-off-by: Lai Jiangshan <laijs@xxxxxxxxxxxxxx>
---
diff --git a/kernel/sched.c b/kernel/sched.c
index 706517c..a0ec10c 100644
--- a/kernel/sched.c
+++ b/kernel/sched.c
@@ -4860,7 +4860,7 @@ void scheduler_tick(void)
#endif
}

-unsigned long get_parent_ip(unsigned long addr)
+notrace unsigned long get_parent_ip(unsigned long addr)
{
if (in_lock_functions(addr)) {
addr = CALLER_ADDR2;


--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/