diff options
author | Namhyung Kim <namhyung@kernel.org> | 2014-06-12 12:23:51 -0400 |
---|---|---|
committer | Steven Rostedt <rostedt@goodmis.org> | 2014-07-01 07:13:44 -0400 |
commit | 280d1429b6a67432ead24fb68a504b4c90c3d96d (patch) | |
tree | 495ad86b5d1ce1fbc4cf00d4d60afc5d472d3d6b /kernel/trace/ftrace.c | |
parent | 0d7d9a16ce112687487fadb2b490519b45f6c70e (diff) |
tracing: Improve message of empty set_graph_notrace file
When there's no entry in set_graph_notrace, it'll print below message
#### all functions enabled ####
While this is technically correct, it's better to print like below:
#### no functions disabled ####
Link: http://lkml.kernel.org/p/1402590233-22321-3-git-send-email-namhyung@kernel.org
Reported-by: Naoya Horiguchi <n-horiguchi@ah.jp.nec.com>
Signed-off-by: Namhyung Kim <namhyung@kernel.org>
Signed-off-by: Steven Rostedt <rostedt@goodmis.org>
Diffstat (limited to 'kernel/trace/ftrace.c')
-rw-r--r-- | kernel/trace/ftrace.c | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/kernel/trace/ftrace.c b/kernel/trace/ftrace.c index 17885a27281c..ee245c0659a6 100644 --- a/kernel/trace/ftrace.c +++ b/kernel/trace/ftrace.c | |||
@@ -4089,7 +4089,12 @@ static int g_show(struct seq_file *m, void *v) | |||
4089 | return 0; | 4089 | return 0; |
4090 | 4090 | ||
4091 | if (ptr == (unsigned long *)1) { | 4091 | if (ptr == (unsigned long *)1) { |
4092 | seq_printf(m, "#### all functions enabled ####\n"); | 4092 | struct ftrace_graph_data *fgd = m->private; |
4093 | |||
4094 | if (fgd->table == ftrace_graph_funcs) | ||
4095 | seq_printf(m, "#### all functions enabled ####\n"); | ||
4096 | else | ||
4097 | seq_printf(m, "#### no functions disabled ####\n"); | ||
4093 | return 0; | 4098 | return 0; |
4094 | } | 4099 | } |
4095 | 4100 | ||