aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJeremy Linton <jeremy.linton@arm.com>2017-06-16 13:07:35 -0400
committerJiri Kosina <jkosina@suse.cz>2017-10-12 09:29:53 -0400
commit27019975617864ce03d3b0c2a0c1fccc6b572509 (patch)
tree2559b687c9b454ebf67d50bf866874bb8bd0e436
parentc5c1ea75a352c3864c4891f36155287a2ed73928 (diff)
tracing: Fix doc mistakes in trace sample
The trace sample file has a couple mispellings, lets fix them. Signed-off-by: Jeremy Linton <jeremy.linton@arm.com> Signed-off-by: Jiri Kosina <jkosina@suse.cz>
-rw-r--r--samples/trace_events/trace-events-sample.h10
1 files changed, 5 insertions, 5 deletions
diff --git a/samples/trace_events/trace-events-sample.h b/samples/trace_events/trace-events-sample.h
index 76a75ab7a608..b3858143f1a9 100644
--- a/samples/trace_events/trace-events-sample.h
+++ b/samples/trace_events/trace-events-sample.h
@@ -95,7 +95,7 @@
95 * __entry->bar.x = y; 95 * __entry->bar.x = y;
96 96
97 * __array: There are three fields (type, name, size). The type is the 97 * __array: There are three fields (type, name, size). The type is the
98 * type of elements in teh array, the name is the name of the array. 98 * type of elements in the array, the name is the name of the array.
99 * size is the number of items in the array (not the total size). 99 * size is the number of items in the array (not the total size).
100 * 100 *
101 * __array( char, foo, 10) is the same as saying: char foo[10]; 101 * __array( char, foo, 10) is the same as saying: char foo[10];
@@ -112,7 +112,7 @@
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.
113 * The size is different than __array. It is not a static number, 113 * The size is different than __array. It is not a static number,
114 * but the algorithm to figure out the length of the array for the 114 * but the algorithm to figure out the length of the array for the
115 * specific instance of tracepoint. Again, size is the numebr of 115 * specific instance of tracepoint. Again, size is the number of
116 * items in the array, not the total length in bytes. 116 * items in the array, not the total length in bytes.
117 * 117 *
118 * __dynamic_array( int, foo, bar) is similar to: int foo[bar]; 118 * __dynamic_array( int, foo, bar) is similar to: int foo[bar];
@@ -125,9 +125,9 @@
125 * Notice, that "__entry" is not needed here. 125 * Notice, that "__entry" is not needed here.
126 * 126 *
127 * __string: This is a special kind of __dynamic_array. It expects to 127 * __string: This is a special kind of __dynamic_array. It expects to
128 * have a nul terminated character array passed to it (it allows 128 * have a null terminated character array passed to it (it allows
129 * for NULL too, which would be converted into "(null)"). __string 129 * for NULL too, which would be converted into "(null)"). __string
130 * takes two paramenter (name, src), where name is the name of 130 * takes two parameter (name, src), where name is the name of
131 * the string saved, and src is the string to copy into the 131 * the string saved, and src is the string to copy into the
132 * ring buffer. 132 * ring buffer.
133 * 133 *
@@ -444,7 +444,7 @@ DECLARE_EVENT_CLASS(foo_template,
444 444
445/* 445/*
446 * Here's a better way for the previous samples (except, the first 446 * Here's a better way for the previous samples (except, the first
447 * exmaple had more fields and could not be used here). 447 * example had more fields and could not be used here).
448 */ 448 */
449DEFINE_EVENT(foo_template, foo_with_template_simple, 449DEFINE_EVENT(foo_template, foo_with_template_simple,
450 TP_PROTO(const char *foo, int bar), 450 TP_PROTO(const char *foo, int bar),