diff options
author | Steven Rostedt <rostedt@goodmis.org> | 2008-11-12 17:52:37 -0500 |
---|---|---|
committer | Ingo Molnar <mingo@elte.hu> | 2008-11-13 03:49:23 -0500 |
commit | ee6bce52276c0717ed3e63296e5d9465d339e923 (patch) | |
tree | c1bb4ca81eda3bc372c121d72bb2ef6c27cdeeda /kernel/trace/trace.c | |
parent | 1696b2b0f44a8d42f3e6b1ea90c21790871c04d9 (diff) |
ftrace: rename iter_ctrl to trace_options
Impact: rename file /debug/tracing/iter_ctrl to /debug/tracing/trace_options
The original ftrace had a file called "iter_ctrl" that would control
the way the output was iterated. But this file grew into a catch all
for different trace options. This patch renames the file from iter_ctrl
to trace_options to reflect this change.
Signed-off-by: Steven Rostedt <srostedt@redhat.com>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
Diffstat (limited to 'kernel/trace/trace.c')
-rw-r--r-- | kernel/trace/trace.c | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/kernel/trace/trace.c b/kernel/trace/trace.c index d664aae2e10a..240423a9d1af 100644 --- a/kernel/trace/trace.c +++ b/kernel/trace/trace.c | |||
@@ -204,7 +204,7 @@ static DEFINE_MUTEX(trace_types_lock); | |||
204 | /* trace_wait is a waitqueue for tasks blocked on trace_poll */ | 204 | /* trace_wait is a waitqueue for tasks blocked on trace_poll */ |
205 | static DECLARE_WAIT_QUEUE_HEAD(trace_wait); | 205 | static DECLARE_WAIT_QUEUE_HEAD(trace_wait); |
206 | 206 | ||
207 | /* trace_flags holds iter_ctrl options */ | 207 | /* trace_flags holds trace_options default values */ |
208 | unsigned long trace_flags = TRACE_ITER_PRINT_PARENT | TRACE_ITER_PRINTK; | 208 | unsigned long trace_flags = TRACE_ITER_PRINT_PARENT | TRACE_ITER_PRINTK; |
209 | 209 | ||
210 | /** | 210 | /** |
@@ -2411,7 +2411,7 @@ static struct file_operations tracing_cpumask_fops = { | |||
2411 | }; | 2411 | }; |
2412 | 2412 | ||
2413 | static ssize_t | 2413 | static ssize_t |
2414 | tracing_iter_ctrl_read(struct file *filp, char __user *ubuf, | 2414 | tracing_trace_options_read(struct file *filp, char __user *ubuf, |
2415 | size_t cnt, loff_t *ppos) | 2415 | size_t cnt, loff_t *ppos) |
2416 | { | 2416 | { |
2417 | char *buf; | 2417 | char *buf; |
@@ -2448,7 +2448,7 @@ tracing_iter_ctrl_read(struct file *filp, char __user *ubuf, | |||
2448 | } | 2448 | } |
2449 | 2449 | ||
2450 | static ssize_t | 2450 | static ssize_t |
2451 | tracing_iter_ctrl_write(struct file *filp, const char __user *ubuf, | 2451 | tracing_trace_options_write(struct file *filp, const char __user *ubuf, |
2452 | size_t cnt, loff_t *ppos) | 2452 | size_t cnt, loff_t *ppos) |
2453 | { | 2453 | { |
2454 | char buf[64]; | 2454 | char buf[64]; |
@@ -2493,8 +2493,8 @@ tracing_iter_ctrl_write(struct file *filp, const char __user *ubuf, | |||
2493 | 2493 | ||
2494 | static struct file_operations tracing_iter_fops = { | 2494 | static struct file_operations tracing_iter_fops = { |
2495 | .open = tracing_open_generic, | 2495 | .open = tracing_open_generic, |
2496 | .read = tracing_iter_ctrl_read, | 2496 | .read = tracing_trace_options_read, |
2497 | .write = tracing_iter_ctrl_write, | 2497 | .write = tracing_trace_options_write, |
2498 | }; | 2498 | }; |
2499 | 2499 | ||
2500 | static const char readme_msg[] = | 2500 | static const char readme_msg[] = |
@@ -2508,9 +2508,9 @@ static const char readme_msg[] = | |||
2508 | "# echo sched_switch > /debug/tracing/current_tracer\n" | 2508 | "# echo sched_switch > /debug/tracing/current_tracer\n" |
2509 | "# cat /debug/tracing/current_tracer\n" | 2509 | "# cat /debug/tracing/current_tracer\n" |
2510 | "sched_switch\n" | 2510 | "sched_switch\n" |
2511 | "# cat /debug/tracing/iter_ctrl\n" | 2511 | "# cat /debug/tracing/trace_options\n" |
2512 | "noprint-parent nosym-offset nosym-addr noverbose\n" | 2512 | "noprint-parent nosym-offset nosym-addr noverbose\n" |
2513 | "# echo print-parent > /debug/tracing/iter_ctrl\n" | 2513 | "# echo print-parent > /debug/tracing/trace_options\n" |
2514 | "# echo 1 > /debug/tracing/tracing_enabled\n" | 2514 | "# echo 1 > /debug/tracing/tracing_enabled\n" |
2515 | "# cat /debug/tracing/trace > /tmp/trace.txt\n" | 2515 | "# cat /debug/tracing/trace > /tmp/trace.txt\n" |
2516 | "echo 0 > /debug/tracing/tracing_enabled\n" | 2516 | "echo 0 > /debug/tracing/tracing_enabled\n" |
@@ -3148,10 +3148,10 @@ static __init int tracer_init_debugfs(void) | |||
3148 | if (!entry) | 3148 | if (!entry) |
3149 | pr_warning("Could not create debugfs 'tracing_enabled' entry\n"); | 3149 | pr_warning("Could not create debugfs 'tracing_enabled' entry\n"); |
3150 | 3150 | ||
3151 | entry = debugfs_create_file("iter_ctrl", 0644, d_tracer, | 3151 | entry = debugfs_create_file("trace_options", 0644, d_tracer, |
3152 | NULL, &tracing_iter_fops); | 3152 | NULL, &tracing_iter_fops); |
3153 | if (!entry) | 3153 | if (!entry) |
3154 | pr_warning("Could not create debugfs 'iter_ctrl' entry\n"); | 3154 | pr_warning("Could not create debugfs 'trace_options' entry\n"); |
3155 | 3155 | ||
3156 | entry = debugfs_create_file("tracing_cpumask", 0644, d_tracer, | 3156 | entry = debugfs_create_file("tracing_cpumask", 0644, d_tracer, |
3157 | NULL, &tracing_cpumask_fops); | 3157 | NULL, &tracing_cpumask_fops); |