diff options
author | Linus Torvalds <torvalds@linux-foundation.org> | 2017-11-15 13:14:11 -0500 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2017-11-15 13:14:11 -0500 |
commit | 9682b3dea22190a6fd449d157e3175b0e748684d (patch) | |
tree | 1b4d01168142fbb006e16b40e669de9737eb69ee /samples/trace_events | |
parent | 20df15783a44a289aaa8c8f83b3f715f9040c9c2 (diff) | |
parent | 1972d6c0c86dd8620ff9f2811ce875135ffb5405 (diff) |
Merge branch 'for-linus' of ssh://gitolite.kernel.org/pub/scm/linux/kernel/git/jikos/trivial
Pull trivial tree updates from Jiri Kosina:
"The usual rocket-science from trivial tree for 4.15"
* 'for-linus' of ssh://gitolite.kernel.org/pub/scm/linux/kernel/git/jikos/trivial:
MAINTAINERS: relinquish kconfig
MAINTAINERS: Update my email address
treewide: Fix typos in Kconfig
kfifo: Fix comments
init/Kconfig: Fix module signing document location
misc: ibmasm: Return error on error path
HID: logitech-hidpp: fix mistake in printk, "feeback" -> "feedback"
MAINTAINERS: Correct path to uDraw PS3 driver
tracing: Fix doc mistakes in trace sample
tracing: Kconfig text fixes for CONFIG_HWLAT_TRACER
MIPS: Alchemy: Remove reverted CONFIG_NETLINK_MMAP from db1xxx_defconfig
mm/huge_memory.c: fixup grammar in comment
lib/xz: Add fall-through comments to a switch statement
Diffstat (limited to 'samples/trace_events')
-rw-r--r-- | samples/trace_events/trace-events-sample.h | 10 |
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 5bcd91455ec8..80b4a70315b6 100644 --- a/samples/trace_events/trace-events-sample.h +++ b/samples/trace_events/trace-events-sample.h | |||
@@ -96,7 +96,7 @@ | |||
96 | * __entry->bar.x = y; | 96 | * __entry->bar.x = y; |
97 | 97 | ||
98 | * __array: There are three fields (type, name, size). The type is the | 98 | * __array: There are three fields (type, name, size). The type is the |
99 | * type of elements in teh array, the name is the name of the array. | 99 | * type of elements in the array, the name is the name of the array. |
100 | * size is the number of items in the array (not the total size). | 100 | * size is the number of items in the array (not the total size). |
101 | * | 101 | * |
102 | * __array( char, foo, 10) is the same as saying: char foo[10]; | 102 | * __array( char, foo, 10) is the same as saying: char foo[10]; |
@@ -113,7 +113,7 @@ | |||
113 | * type is the type of the element, name is the name of the array. | 113 | * type is the type of the element, name is the name of the array. |
114 | * The size is different than __array. It is not a static number, | 114 | * The size is different than __array. It is not a static number, |
115 | * but the algorithm to figure out the length of the array for the | 115 | * but the algorithm to figure out the length of the array for the |
116 | * specific instance of tracepoint. Again, size is the numebr of | 116 | * specific instance of tracepoint. Again, size is the number of |
117 | * items in the array, not the total length in bytes. | 117 | * items in the array, not the total length in bytes. |
118 | * | 118 | * |
119 | * __dynamic_array( int, foo, bar) is similar to: int foo[bar]; | 119 | * __dynamic_array( int, foo, bar) is similar to: int foo[bar]; |
@@ -126,9 +126,9 @@ | |||
126 | * Notice, that "__entry" is not needed here. | 126 | * Notice, that "__entry" is not needed here. |
127 | * | 127 | * |
128 | * __string: This is a special kind of __dynamic_array. It expects to | 128 | * __string: This is a special kind of __dynamic_array. It expects to |
129 | * have a nul terminated character array passed to it (it allows | 129 | * have a null terminated character array passed to it (it allows |
130 | * for NULL too, which would be converted into "(null)"). __string | 130 | * for NULL too, which would be converted into "(null)"). __string |
131 | * takes two paramenter (name, src), where name is the name of | 131 | * takes two parameter (name, src), where name is the name of |
132 | * the string saved, and src is the string to copy into the | 132 | * the string saved, and src is the string to copy into the |
133 | * ring buffer. | 133 | * ring buffer. |
134 | * | 134 | * |
@@ -445,7 +445,7 @@ DECLARE_EVENT_CLASS(foo_template, | |||
445 | 445 | ||
446 | /* | 446 | /* |
447 | * Here's a better way for the previous samples (except, the first | 447 | * Here's a better way for the previous samples (except, the first |
448 | * exmaple had more fields and could not be used here). | 448 | * example had more fields and could not be used here). |
449 | */ | 449 | */ |
450 | DEFINE_EVENT(foo_template, foo_with_template_simple, | 450 | DEFINE_EVENT(foo_template, foo_with_template_simple, |
451 | TP_PROTO(const char *foo, int bar), | 451 | TP_PROTO(const char *foo, int bar), |