diff options
author | Chunyan Zhang <zhang.chunyan@linaro.org> | 2015-09-30 03:54:10 -0400 |
---|---|---|
committer | Steven Rostedt <rostedt@goodmis.org> | 2015-11-02 14:09:15 -0500 |
commit | 67aedeb857fb10b34cd125f962b109ed440b3833 (patch) | |
tree | 6ff752a74d32fa6811d5803e5f79d824ab65986f | |
parent | 681a4a2f4529517422835b7395df07404dfe2278 (diff) |
Sample: Trace_event: Correct the comments
The commit 889204278ccf ("tracing: Update trace-event-sample with
TRACE_SYSTEM_VAR documentation") changed TRACE_SYSTEM to 'sample-trace',
but didn't make the according change of its name in the comments.
Link: http://lkml.kernel.org/r/1443599650-23680-1-git-send-email-zhang.chunyan@linaro.org
Signed-off-by: Chunyan Zhang <zhang.chunyan@linaro.org>
Signed-off-by: Steven Rostedt <rostedt@goodmis.org>
-rw-r--r-- | samples/trace_events/trace-events-sample.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/samples/trace_events/trace-events-sample.h b/samples/trace_events/trace-events-sample.h index 125d6402f64f..d6b75bb495b3 100644 --- a/samples/trace_events/trace-events-sample.h +++ b/samples/trace_events/trace-events-sample.h | |||
@@ -4,14 +4,14 @@ | |||
4 | * | 4 | * |
5 | * The define_trace.h below will also look for a file name of | 5 | * The define_trace.h below will also look for a file name of |
6 | * TRACE_SYSTEM.h where TRACE_SYSTEM is what is defined here. | 6 | * TRACE_SYSTEM.h where TRACE_SYSTEM is what is defined here. |
7 | * In this case, it would look for sample.h | 7 | * In this case, it would look for sample-trace.h |
8 | * | 8 | * |
9 | * If the header name will be different than the system name | 9 | * If the header name will be different than the system name |
10 | * (as in this case), then you can override the header name that | 10 | * (as in this case), then you can override the header name that |
11 | * define_trace.h will look up by defining TRACE_INCLUDE_FILE | 11 | * define_trace.h will look up by defining TRACE_INCLUDE_FILE |
12 | * | 12 | * |
13 | * This file is called trace-events-sample.h but we want the system | 13 | * This file is called trace-events-sample.h but we want the system |
14 | * to be called "sample". Therefore we must define the name of this | 14 | * to be called "sample-trace". Therefore we must define the name of this |
15 | * file: | 15 | * file: |
16 | * | 16 | * |
17 | * #define TRACE_INCLUDE_FILE trace-events-sample | 17 | * #define TRACE_INCLUDE_FILE trace-events-sample |
@@ -106,7 +106,7 @@ | |||
106 | * | 106 | * |
107 | * memcpy(__entry->foo, bar, 10); | 107 | * memcpy(__entry->foo, bar, 10); |
108 | * | 108 | * |
109 | * __dynamic_array: This is similar to array, but can vary is size from | 109 | * __dynamic_array: This is similar to array, but can vary its size from |
110 | * instance to instance of the tracepoint being called. | 110 | * instance to instance of the tracepoint being called. |
111 | * Like __array, this too has three elements (type, name, size); | 111 | * Like __array, this too has three elements (type, name, size); |
112 | * type is the type of the element, name is the name of the array. | 112 | * type is the type of the element, name is the name of the array. |