diff options
Diffstat (limited to 'kernel')
| -rw-r--r-- | kernel/trace/trace.c | 26 |
1 files changed, 5 insertions, 21 deletions
diff --git a/kernel/trace/trace.c b/kernel/trace/trace.c index dbb077d8a172..efe3202c0209 100644 --- a/kernel/trace/trace.c +++ b/kernel/trace/trace.c | |||
| @@ -3543,6 +3543,11 @@ static void tracing_init_debugfs_percpu(long cpu) | |||
| 3543 | (void *) cpu, &tracing_fops); | 3543 | (void *) cpu, &tracing_fops); |
| 3544 | if (!entry) | 3544 | if (!entry) |
| 3545 | pr_warning("Could not create debugfs 'trace' entry\n"); | 3545 | pr_warning("Could not create debugfs 'trace' entry\n"); |
| 3546 | |||
| 3547 | entry = debugfs_create_file("trace_pipe_raw", 0444, d_cpu, | ||
| 3548 | (void *) cpu, &tracing_buffers_fops); | ||
| 3549 | if (!entry) | ||
| 3550 | pr_warning("Could not create debugfs 'trace_pipe_raw' entry\n"); | ||
| 3546 | } | 3551 | } |
| 3547 | 3552 | ||
| 3548 | #ifdef CONFIG_FTRACE_SELFTEST | 3553 | #ifdef CONFIG_FTRACE_SELFTEST |
| @@ -3826,7 +3831,6 @@ static __init void create_trace_options_dir(void) | |||
| 3826 | static __init int tracer_init_debugfs(void) | 3831 | static __init int tracer_init_debugfs(void) |
| 3827 | { | 3832 | { |
| 3828 | struct dentry *d_tracer; | 3833 | struct dentry *d_tracer; |
| 3829 | struct dentry *buffers; | ||
| 3830 | struct dentry *entry; | 3834 | struct dentry *entry; |
| 3831 | int cpu; | 3835 | int cpu; |
| 3832 | 3836 | ||
| @@ -3899,26 +3903,6 @@ static __init int tracer_init_debugfs(void) | |||
| 3899 | pr_warning("Could not create debugfs " | 3903 | pr_warning("Could not create debugfs " |
| 3900 | "'trace_marker' entry\n"); | 3904 | "'trace_marker' entry\n"); |
| 3901 | 3905 | ||
| 3902 | buffers = debugfs_create_dir("binary_buffers", d_tracer); | ||
| 3903 | |||
| 3904 | if (!buffers) | ||
| 3905 | pr_warning("Could not create buffers directory\n"); | ||
| 3906 | else { | ||
| 3907 | int cpu; | ||
| 3908 | char buf[64]; | ||
| 3909 | |||
| 3910 | for_each_tracing_cpu(cpu) { | ||
| 3911 | sprintf(buf, "%d", cpu); | ||
| 3912 | |||
| 3913 | entry = debugfs_create_file(buf, 0444, buffers, | ||
| 3914 | (void *)(long)cpu, | ||
| 3915 | &tracing_buffers_fops); | ||
| 3916 | if (!entry) | ||
| 3917 | pr_warning("Could not create debugfs buffers " | ||
| 3918 | "'%s' entry\n", buf); | ||
| 3919 | } | ||
| 3920 | } | ||
| 3921 | |||
| 3922 | #ifdef CONFIG_DYNAMIC_FTRACE | 3906 | #ifdef CONFIG_DYNAMIC_FTRACE |
| 3923 | entry = debugfs_create_file("dyn_ftrace_total_info", 0444, d_tracer, | 3907 | entry = debugfs_create_file("dyn_ftrace_total_info", 0444, d_tracer, |
| 3924 | &ftrace_update_tot_cnt, | 3908 | &ftrace_update_tot_cnt, |
