aboutsummaryrefslogtreecommitdiffstats
path: root/kernel/trace/trace.h
diff options
context:
space:
mode:
authorFrederic Weisbecker <fweisbec@gmail.com>2009-03-26 19:25:38 -0400
committerIngo Molnar <mingo@elte.hu>2009-04-07 08:43:07 -0400
commit5452af664f6fba26b80eb2c8c4ceae2999d5cf56 (patch)
tree08fb64bfc3242ad96b65719a55424db729585f17 /kernel/trace/trace.h
parenta5dec5573f3c7e63f2f9b5852b9759ea342a5ff9 (diff)
tracing/ftrace: factorize the tracing files creation
Impact: cleanup Most of the tracing files creation follow the same pattern: ret = debugfs_create_file(...) if (!ret) pr_warning("Couldn't create ... entry\n") Unify it! Reported-by: Ingo Molnar <mingo@elte.hu> Signed-off-by: Frederic Weisbecker <fweisbec@gmail.com> LKML-Reference: <1238109938-11840-1-git-send-email-fweisbec@gmail.com> Signed-off-by: Steven Rostedt <rostedt@goodmis.org>
Diffstat (limited to 'kernel/trace/trace.h')
-rw-r--r--kernel/trace/trace.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/kernel/trace/trace.h b/kernel/trace/trace.h
index 47aa6d0c97a0..f76a8f8689d4 100644
--- a/kernel/trace/trace.h
+++ b/kernel/trace/trace.h
@@ -470,6 +470,12 @@ void trace_wake_up(void);
470void tracing_reset(struct trace_array *tr, int cpu); 470void tracing_reset(struct trace_array *tr, int cpu);
471void tracing_reset_online_cpus(struct trace_array *tr); 471void tracing_reset_online_cpus(struct trace_array *tr);
472int tracing_open_generic(struct inode *inode, struct file *filp); 472int tracing_open_generic(struct inode *inode, struct file *filp);
473struct dentry *trace_create_file(const char *name,
474 mode_t mode,
475 struct dentry *parent,
476 void *data,
477 const struct file_operations *fops);
478
473struct dentry *tracing_init_dentry(void); 479struct dentry *tracing_init_dentry(void);
474void init_tracer_sysprof_debugfs(struct dentry *d_tracer); 480void init_tracer_sysprof_debugfs(struct dentry *d_tracer);
475 481