summaryrefslogtreecommitdiffstats
path: root/kernel/trace/trace_functions.c
diff options
context:
space:
mode:
authorXiao Guangrong <xiaoguangrong@cn.fujitsu.com>2009-07-16 08:21:08 +0200
committerFrederic Weisbecker <fweisbec@gmail.com>2009-07-17 07:45:51 +0200
commit6f2f3cf00ee32f75ba007a46bab88a54d68a5deb (patch)
tree89aaab40d502c84e135b7e9e72b20bb7d498bc8c /kernel/trace/trace_functions.c
parenttracing/trace_stack: Cleanup for trace_lookup_stack() (diff)
downloadlinux-6f2f3cf00ee32f75ba007a46bab88a54d68a5deb.tar.xz
linux-6f2f3cf00ee32f75ba007a46bab88a54d68a5deb.zip
tracing/function: Cleanup for function tracer
We can directly use %pf input format instead of kallsyms_lookup() and %s input format Signed-off-by: Xiao Guangrong <xiaoguangrong@cn.fujitsu.com> Reviewed-by: Li Zefan <lizf@cn.fujitsu.com> Signed-off-by: Frederic Weisbecker <fweisbec@gmail.com>
Diffstat (limited to 'kernel/trace/trace_functions.c')
-rw-r--r--kernel/trace/trace_functions.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/kernel/trace/trace_functions.c b/kernel/trace/trace_functions.c
index 7402144bff21..b53dc994dfb6 100644
--- a/kernel/trace/trace_functions.c
+++ b/kernel/trace/trace_functions.c
@@ -288,11 +288,9 @@ static int
ftrace_trace_onoff_print(struct seq_file *m, unsigned long ip,
struct ftrace_probe_ops *ops, void *data)
{
- char str[KSYM_SYMBOL_LEN];
long count = (long)data;
- kallsyms_lookup(ip, NULL, NULL, NULL, str);
- seq_printf(m, "%s:", str);
+ seq_printf(m, "%pf:", (void *)ip);
if (ops == &traceon_probe_ops)
seq_printf(m, "traceon");