Commit 68baafcfc46074c4bb4e4c3115c2c76a8a85f37d

Authored by Frederic Weisbecker
Committed by Ingo Molnar
1 parent dc82ec98a4

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>

Showing 1 changed file with 2 additions and 10 deletions Side-by-side Diff

kernel/trace/trace_functions_graph.c
... ... @@ -565,14 +565,10 @@
565 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 569 if (!ret)
570 570 return TRACE_TYPE_PARTIAL_LINE;
571 571  
572   - ret = trace_seq_printf(s, "();\n");
573   - if (!ret)
574   - return TRACE_TYPE_PARTIAL_LINE;
575   -
576 572 return TRACE_TYPE_HANDLED;
577 573 }
578 574  
... ... @@ -612,11 +608,7 @@
612 608 return TRACE_TYPE_PARTIAL_LINE;
613 609 }
614 610  
615   - ret = seq_print_ip_sym(s, call->func, 0);
616   - if (!ret)
617   - return TRACE_TYPE_PARTIAL_LINE;
618   -
619   - ret = trace_seq_printf(s, "() {\n");
  611 + ret = trace_seq_printf(s, "%pf() {\n", (void *)call->func);
620 612 if (!ret)
621 613 return TRACE_TYPE_PARTIAL_LINE;
622 614