diff options
author | Frederic Weisbecker <fweisbec@gmail.com> | 2009-07-08 22:46:29 -0400 |
---|---|---|
committer | Ingo Molnar <mingo@elte.hu> | 2009-07-10 06:07:19 -0400 |
commit | 68baafcfc46074c4bb4e4c3115c2c76a8a85f37d (patch) | |
tree | b3790c3fcd871d981c09932fb8ce6af2d36c070c | |
parent | dc82ec98a4727fd51b77e92d05fe7d2db3dcc11c (diff) |
tracing/function-graph-tracer: Use the %pf format
Remove the obsolete seq_print_ip_sym() usage and replace it
by the %pf format in order to print function symbols.
Signed-off-by: Frederic Weisbecker <fweisbec@gmail.com>
Reviewed-by: Li Zefan <lizf@cn.fujitsu.com>
Cc: Steven Rostedt <rostedt@goodmis.org>
Cc: Lai Jiangshan <laijs@cn.fujitsu.com>
LKML-Reference: <1247107590-6428-2-git-send-email-fweisbec@gmail.com>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
-rw-r--r-- | kernel/trace/trace_functions_graph.c | 12 |
1 files changed, 2 insertions, 10 deletions
diff --git a/kernel/trace/trace_functions_graph.c b/kernel/trace/trace_functions_graph.c index d2249abafb53..abf7c4ae2c8b 100644 --- a/kernel/trace/trace_functions_graph.c +++ b/kernel/trace/trace_functions_graph.c | |||
@@ -565,11 +565,7 @@ print_graph_entry_leaf(struct trace_iterator *iter, | |||
565 | return TRACE_TYPE_PARTIAL_LINE; | 565 | return TRACE_TYPE_PARTIAL_LINE; |
566 | } | 566 | } |
567 | 567 | ||
568 | ret = seq_print_ip_sym(s, call->func, 0); | 568 | ret = trace_seq_printf(s, "%pf();\n", (void *)call->func); |
569 | if (!ret) | ||
570 | return TRACE_TYPE_PARTIAL_LINE; | ||
571 | |||
572 | ret = trace_seq_printf(s, "();\n"); | ||
573 | if (!ret) | 569 | if (!ret) |
574 | return TRACE_TYPE_PARTIAL_LINE; | 570 | return TRACE_TYPE_PARTIAL_LINE; |
575 | 571 | ||
@@ -612,11 +608,7 @@ print_graph_entry_nested(struct trace_iterator *iter, | |||
612 | return TRACE_TYPE_PARTIAL_LINE; | 608 | return TRACE_TYPE_PARTIAL_LINE; |
613 | } | 609 | } |
614 | 610 | ||
615 | ret = seq_print_ip_sym(s, call->func, 0); | 611 | ret = trace_seq_printf(s, "%pf() {\n", (void *)call->func); |
616 | if (!ret) | ||
617 | return TRACE_TYPE_PARTIAL_LINE; | ||
618 | |||
619 | ret = trace_seq_printf(s, "() {\n"); | ||
620 | if (!ret) | 612 | if (!ret) |
621 | return TRACE_TYPE_PARTIAL_LINE; | 613 | return TRACE_TYPE_PARTIAL_LINE; |
622 | 614 | ||