2015-12-22 12:25:48

by Chunyu Hu

[permalink] [raw]
Subject: [PATCH] trace.h: correct typo in code comment

Signed-off-by: Chuyu Hu <[email protected]>
---
kernel/trace/trace.h | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/kernel/trace/trace.h b/kernel/trace/trace.h
index 919d9d0..c71d54b 100644
--- a/kernel/trace/trace.h
+++ b/kernel/trace/trace.h
@@ -363,8 +363,8 @@ struct trace_option_dentry {
* @name: the name chosen to select it on the available_tracers file
* @init: called when one switches to this tracer (echo name > current_tracer)
* @reset: called when one switches to another tracer
- * @start: called when tracing is unpaused (echo 1 > tracing_enabled)
- * @stop: called when tracing is paused (echo 0 > tracing_enabled)
+ * @start: called when tracing is unpaused (echo 1 > tracing_on)
+ * @stop: called when tracing is paused (echo 0 > tracing_on)
* @update_thresh: called when tracing_thresh is updated
* @open: called when the trace file is opened
* @pipe_open: called when the trace_pipe file is opened
--
1.8.3.1


2015-12-22 19:29:30

by Steven Rostedt

[permalink] [raw]
Subject: Re: [PATCH] trace.h: correct typo in code comment

On Tue, 22 Dec 2015 09:44:33 -0500
Chuyu Hu <[email protected]> wrote:

Thanks, I'll add this. But it's not a typo. It's just outdated.

I'll fix up the subject too.

-- Steve


> Signed-off-by: Chuyu Hu <[email protected]>
> ---
> kernel/trace/trace.h | 4 ++--
> 1 file changed, 2 insertions(+), 2 deletions(-)
>
> diff --git a/kernel/trace/trace.h b/kernel/trace/trace.h
> index 919d9d0..c71d54b 100644
> --- a/kernel/trace/trace.h
> +++ b/kernel/trace/trace.h
> @@ -363,8 +363,8 @@ struct trace_option_dentry {
> * @name: the name chosen to select it on the available_tracers file
> * @init: called when one switches to this tracer (echo name > current_tracer)
> * @reset: called when one switches to another tracer
> - * @start: called when tracing is unpaused (echo 1 > tracing_enabled)
> - * @stop: called when tracing is paused (echo 0 > tracing_enabled)
> + * @start: called when tracing is unpaused (echo 1 > tracing_on)
> + * @stop: called when tracing is paused (echo 0 > tracing_on)
> * @update_thresh: called when tracing_thresh is updated
> * @open: called when the trace file is opened
> * @pipe_open: called when the trace_pipe file is opened