diff options
author | Steven Rostedt <srostedt@redhat.com> | 2009-03-13 00:37:42 -0400 |
---|---|---|
committer | Steven Rostedt <srostedt@redhat.com> | 2009-03-13 00:37:42 -0400 |
commit | 7f96f93f02b7637491a1637dee12dcdcd40b9802 (patch) | |
tree | 4756faebe7ada4eabb4ca985b3b26e09ecbfec14 | |
parent | bdc067582b8b71c7771bab076bbc51569c594fb4 (diff) |
tracing: move binary buffers into per cpu directory
The binary_buffers directory in /debugfs/tracing held the files
to read the trace buffers in a binary format. This held one file
per CPU buffer. But we also have a per_cpu directory that holds
a way to read the pretty-print formats.
This patch moves the binary buffers into the per_cpu_directory:
# ls /debug/tracing/per_cpu/cpu1/
trace trace_pipe trace_pipe_raw
The new name is called "trace_pipe_raw". The binary buffers always
acted similar to trace_pipe, except that they produce raw data.
Requested-by: Ingo Molnar <mingo@elte.hu>
Signed-off-by: Steven Rostedt <srostedt@redhat.com>
-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, |