aboutsummaryrefslogtreecommitdiffstats
path: root/kernel/trace/ftrace.c
diff options
context:
space:
mode:
authorSteven Rostedt <srostedt@redhat.com>2009-02-16 23:06:01 -0500
committerSteven Rostedt <srostedt@redhat.com>2009-02-16 23:06:01 -0500
commit809dcf29ce4e1723709910878e050bd187617e0e (patch)
tree4747ede5ad0678d6ae88176f403a2c26f277182e /kernel/trace/ftrace.c
parent8fc0c701c5b6c0c3e242758c3acef6f9047940a9 (diff)
ftrace: add pretty print to selected fuction traces
This patch adds a call back for the tracers that have hooks to selected functions. This allows the tracer to show better output in the set_ftrace_filter file. Signed-off-by: Steven Rostedt <srostedt@redhat.com>
Diffstat (limited to 'kernel/trace/ftrace.c')
-rw-r--r--kernel/trace/ftrace.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/kernel/trace/ftrace.c b/kernel/trace/ftrace.c
index 1e058848cddb..6533c1d20155 100644
--- a/kernel/trace/ftrace.c
+++ b/kernel/trace/ftrace.c
@@ -834,6 +834,9 @@ static int t_hash_show(struct seq_file *m, void *v)
834 834
835 rec = hlist_entry(hnd, struct ftrace_func_hook, node); 835 rec = hlist_entry(hnd, struct ftrace_func_hook, node);
836 836
837 if (rec->ops->print)
838 return rec->ops->print(m, rec->ip, rec->ops, rec->data);
839
837 kallsyms_lookup(rec->ip, NULL, NULL, NULL, str); 840 kallsyms_lookup(rec->ip, NULL, NULL, NULL, str);
838 seq_printf(m, "%s:", str); 841 seq_printf(m, "%s:", str);
839 842