|
@@ -3776,7 +3776,6 @@ static const struct file_operations ftrace_notrace_fops = {
|
|
|
static DEFINE_MUTEX(graph_lock);
|
|
|
|
|
|
int ftrace_graph_count;
|
|
|
-int ftrace_graph_filter_enabled;
|
|
|
unsigned long ftrace_graph_funcs[FTRACE_GRAPH_MAX_FUNCS] __read_mostly;
|
|
|
|
|
|
static void *
|
|
@@ -3799,7 +3798,7 @@ static void *g_start(struct seq_file *m, loff_t *pos)
|
|
|
mutex_lock(&graph_lock);
|
|
|
|
|
|
/* Nothing, tell g_show to print all functions are enabled */
|
|
|
- if (!ftrace_graph_filter_enabled && !*pos)
|
|
|
+ if (!ftrace_graph_count && !*pos)
|
|
|
return (void *)1;
|
|
|
|
|
|
return __g_next(m, pos);
|
|
@@ -3845,7 +3844,6 @@ ftrace_graph_open(struct inode *inode, struct file *file)
|
|
|
mutex_lock(&graph_lock);
|
|
|
if ((file->f_mode & FMODE_WRITE) &&
|
|
|
(file->f_flags & O_TRUNC)) {
|
|
|
- ftrace_graph_filter_enabled = 0;
|
|
|
ftrace_graph_count = 0;
|
|
|
memset(ftrace_graph_funcs, 0, sizeof(ftrace_graph_funcs));
|
|
|
}
|
|
@@ -3925,8 +3923,6 @@ out:
|
|
|
if (fail)
|
|
|
return -EINVAL;
|
|
|
|
|
|
- ftrace_graph_filter_enabled = !!(*idx);
|
|
|
-
|
|
|
return 0;
|
|
|
}
|
|
|
|