lkml.org 
[lkml]   [2009]   [Jul]   [22]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
Patch in this message
/
Date
From
Subject[PATCH -tip 1/2] function-graph: fix the output of set_graph_function
It always shows "ftrace_graph_funcs":

# echo 'sys_open' > set_graph_function
# cat set_graph_function
ftrace_graph_funcs

Signed-off-by: Li Zefan <lizf@cn.fujitsu.com>
---
kernel/trace/ftrace.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/kernel/trace/ftrace.c b/kernel/trace/ftrace.c
index 24e3ff5..c6c0c07 100644
--- a/kernel/trace/ftrace.c
+++ b/kernel/trace/ftrace.c
@@ -2505,7 +2505,7 @@ static int g_show(struct seq_file *m, void *v)
return 0;
}

- seq_printf(m, "%pf\n", v);
+ seq_printf(m, "%pf\n", (void *)*ptr);

return 0;
}
--
1.6.3


\
 
 \ /
  Last update: 2009-07-22 10:43    [W:0.055 / U:0.436 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site