aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSteven Rostedt <rostedt@goodmis.org>2008-11-12 17:52:37 -0500
committerIngo Molnar <mingo@elte.hu>2008-11-13 03:49:23 -0500
commitee6bce52276c0717ed3e63296e5d9465d339e923 (patch)
treec1bb4ca81eda3bc372c121d72bb2ef6c27cdeeda
parent1696b2b0f44a8d42f3e6b1ea90c21790871c04d9 (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>
-rw-r--r--Documentation/ftrace.txt14
-rw-r--r--kernel/trace/trace.c18
2 files changed, 16 insertions, 16 deletions
diff --git a/Documentation/ftrace.txt b/Documentation/ftrace.txt
index 6d3fe4cdf921..753f4de4b175 100644
--- a/Documentation/ftrace.txt
+++ b/Documentation/ftrace.txt
@@ -82,7 +82,7 @@ of ftrace. Here is a list of some of the key files:
82 tracer is not adding more data, they will display 82 tracer is not adding more data, they will display
83 the same information every time they are read. 83 the same information every time they are read.
84 84
85 iter_ctrl: This file lets the user control the amount of data 85 trace_options: This file lets the user control the amount of data
86 that is displayed in one of the above output 86 that is displayed in one of the above output
87 files. 87 files.
88 88
@@ -316,23 +316,23 @@ The above is mostly meaningful for kernel developers.
316 The rest is the same as the 'trace' file. 316 The rest is the same as the 'trace' file.
317 317
318 318
319iter_ctrl 319trace_options
320--------- 320-------------
321 321
322The iter_ctrl file is used to control what gets printed in the trace 322The trace_options file is used to control what gets printed in the trace
323output. To see what is available, simply cat the file: 323output. To see what is available, simply cat the file:
324 324
325 cat /debug/tracing/iter_ctrl 325 cat /debug/tracing/trace_options
326 print-parent nosym-offset nosym-addr noverbose noraw nohex nobin \ 326 print-parent nosym-offset nosym-addr noverbose noraw nohex nobin \
327 noblock nostacktrace nosched-tree 327 noblock nostacktrace nosched-tree
328 328
329To disable one of the options, echo in the option prepended with "no". 329To disable one of the options, echo in the option prepended with "no".
330 330
331 echo noprint-parent > /debug/tracing/iter_ctrl 331 echo noprint-parent > /debug/tracing/trace_options
332 332
333To enable an option, leave off the "no". 333To enable an option, leave off the "no".
334 334
335 echo sym-offset > /debug/tracing/iter_ctrl 335 echo sym-offset > /debug/tracing/trace_options
336 336
337Here are the available options: 337Here are the available options:
338 338
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 */
205static DECLARE_WAIT_QUEUE_HEAD(trace_wait); 205static DECLARE_WAIT_QUEUE_HEAD(trace_wait);
206 206
207/* trace_flags holds iter_ctrl options */ 207/* trace_flags holds trace_options default values */
208unsigned long trace_flags = TRACE_ITER_PRINT_PARENT | TRACE_ITER_PRINTK; 208unsigned 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
2413static ssize_t 2413static ssize_t
2414tracing_iter_ctrl_read(struct file *filp, char __user *ubuf, 2414tracing_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
2450static ssize_t 2450static ssize_t
2451tracing_iter_ctrl_write(struct file *filp, const char __user *ubuf, 2451tracing_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
2494static struct file_operations tracing_iter_fops = { 2494static 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
2500static const char readme_msg[] = 2500static 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);