diff options
author | Steven Rostedt <srostedt@redhat.com> | 2009-02-16 23:06:01 -0500 |
---|---|---|
committer | Steven Rostedt <srostedt@redhat.com> | 2009-02-16 23:06:01 -0500 |
commit | 809dcf29ce4e1723709910878e050bd187617e0e (patch) | |
tree | 4747ede5ad0678d6ae88176f403a2c26f277182e /kernel/trace/ftrace.c | |
parent | 8fc0c701c5b6c0c3e242758c3acef6f9047940a9 (diff) | |
download | kernel-crypto-809dcf29ce4e1723709910878e050bd187617e0e.tar.gz kernel-crypto-809dcf29ce4e1723709910878e050bd187617e0e.tar.xz kernel-crypto-809dcf29ce4e1723709910878e050bd187617e0e.zip |
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.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/kernel/trace/ftrace.c b/kernel/trace/ftrace.c index 1e058848cdd..6533c1d2015 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) rec = hlist_entry(hnd, struct ftrace_func_hook, node); + if (rec->ops->print) + return rec->ops->print(m, rec->ip, rec->ops, rec->data); + kallsyms_lookup(rec->ip, NULL, NULL, NULL, str); seq_printf(m, "%s:", str); |