Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 140945
b: refs/heads/master
c: 7f96f93
h: refs/heads/master
i:
  140943: 9dd4656
v: v3
  • Loading branch information
Steven Rostedt committed Mar 13, 2009
1 parent 8116ad9 commit 72273fc
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 22 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: bdc067582b8b71c7771bab076bbc51569c594fb4
refs/heads/master: 7f96f93f02b7637491a1637dee12dcdcd40b9802
26 changes: 5 additions & 21 deletions trunk/kernel/trace/trace.c
Original file line number Diff line number Diff line change
Expand Up @@ -3543,6 +3543,11 @@ static void tracing_init_debugfs_percpu(long cpu)
(void *) cpu, &tracing_fops);
if (!entry)
pr_warning("Could not create debugfs 'trace' entry\n");

entry = debugfs_create_file("trace_pipe_raw", 0444, d_cpu,
(void *) cpu, &tracing_buffers_fops);
if (!entry)
pr_warning("Could not create debugfs 'trace_pipe_raw' entry\n");
}

#ifdef CONFIG_FTRACE_SELFTEST
Expand Down Expand Up @@ -3826,7 +3831,6 @@ static __init void create_trace_options_dir(void)
static __init int tracer_init_debugfs(void)
{
struct dentry *d_tracer;
struct dentry *buffers;
struct dentry *entry;
int cpu;

Expand Down Expand Up @@ -3899,26 +3903,6 @@ static __init int tracer_init_debugfs(void)
pr_warning("Could not create debugfs "
"'trace_marker' entry\n");

buffers = debugfs_create_dir("binary_buffers", d_tracer);

if (!buffers)
pr_warning("Could not create buffers directory\n");
else {
int cpu;
char buf[64];

for_each_tracing_cpu(cpu) {
sprintf(buf, "%d", cpu);

entry = debugfs_create_file(buf, 0444, buffers,
(void *)(long)cpu,
&tracing_buffers_fops);
if (!entry)
pr_warning("Could not create debugfs buffers "
"'%s' entry\n", buf);
}
}

#ifdef CONFIG_DYNAMIC_FTRACE
entry = debugfs_create_file("dyn_ftrace_total_info", 0444, d_tracer,
&ftrace_update_tot_cnt,
Expand Down

0 comments on commit 72273fc

Please sign in to comment.