aboutsummaryrefslogtreecommitdiffstats
path: root/tools/lib/traceevent/event-parse.c
diff options
context:
space:
mode:
authorIngo Molnar <mingo@kernel.org>2018-12-03 05:22:00 -0500
committerArnaldo Carvalho de Melo <acme@redhat.com>2018-12-17 12:56:34 -0500
commit3e449f7c36c3ac49f140b5dc3c40693e551f47d2 (patch)
tree27799927b2cef66e686f3cc3a8e13bd691f1e2a5 /tools/lib/traceevent/event-parse.c
parentb1d6f155e1bbb67778c17aba661fb4ea4e1a3641 (diff)
tools lib traceevent: Fix diverse typos in comments
Go over the tools/ files that are maintained in Arnaldo's tree and fix common typos: half of them were in comments, the other half in JSON files. No change in functionality intended. Committer notes: This was split from a larger patch as there are code that is, additionally, maintained outside the kernel tree, so to ease cherry picking and/or backporting, split this into multiple patches. Signed-off-by: Ingo Molnar <mingo@kernel.org> Cc: Jiri Olsa <jolsa@redhat.com> Cc: Namhyung Kim <namhyung@kernel.org> Cc: Peter Zijlstra <peterz@infradead.org> Cc: Steven Rostedt (VMware) <rostedt@goodmis.org> Cc: Tzvetomir Stoyanov <tstoyanov@vmware.com> Link: http://lkml.kernel.org/r/20181203102200.GA104797@gmail.com Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
Diffstat (limited to 'tools/lib/traceevent/event-parse.c')
-rw-r--r--tools/lib/traceevent/event-parse.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/tools/lib/traceevent/event-parse.c b/tools/lib/traceevent/event-parse.c
index ffa656b868a9..a5ed291b8a9f 100644
--- a/tools/lib/traceevent/event-parse.c
+++ b/tools/lib/traceevent/event-parse.c
@@ -1145,7 +1145,7 @@ static enum tep_event_type read_token(char **tok)
1145} 1145}
1146 1146
1147/** 1147/**
1148 * tep_read_token - access to utilites to use the pevent parser 1148 * tep_read_token - access to utilities to use the pevent parser
1149 * @tok: The token to return 1149 * @tok: The token to return
1150 * 1150 *
1151 * This will parse tokens from the string given by 1151 * This will parse tokens from the string given by
@@ -3258,7 +3258,7 @@ static int event_read_print(struct tep_event *event)
3258 * @name: the name of the common field to return 3258 * @name: the name of the common field to return
3259 * 3259 *
3260 * Returns a common field from the event by the given @name. 3260 * Returns a common field from the event by the given @name.
3261 * This only searchs the common fields and not all field. 3261 * This only searches the common fields and not all field.
3262 */ 3262 */
3263struct tep_format_field * 3263struct tep_format_field *
3264tep_find_common_field(struct tep_event *event, const char *name) 3264tep_find_common_field(struct tep_event *event, const char *name)
@@ -3302,7 +3302,7 @@ tep_find_field(struct tep_event *event, const char *name)
3302 * @name: the name of the field 3302 * @name: the name of the field
3303 * 3303 *
3304 * Returns a field by the given @name. 3304 * Returns a field by the given @name.
3305 * This searchs the common field names first, then 3305 * This searches the common field names first, then
3306 * the non-common ones if a common one was not found. 3306 * the non-common ones if a common one was not found.
3307 */ 3307 */
3308struct tep_format_field * 3308struct tep_format_field *
@@ -3841,7 +3841,7 @@ static void print_bitmask_to_seq(struct tep_handle *pevent,
3841 /* 3841 /*
3842 * data points to a bit mask of size bytes. 3842 * data points to a bit mask of size bytes.
3843 * In the kernel, this is an array of long words, thus 3843 * In the kernel, this is an array of long words, thus
3844 * endianess is very important. 3844 * endianness is very important.
3845 */ 3845 */
3846 if (pevent->file_bigendian) 3846 if (pevent->file_bigendian)
3847 index = size - (len + 1); 3847 index = size - (len + 1);
@@ -5316,9 +5316,9 @@ pid_from_cmdlist(struct tep_handle *pevent, const char *comm, struct cmdline *ne
5316 * This returns the cmdline structure that holds a pid for a given 5316 * This returns the cmdline structure that holds a pid for a given
5317 * comm, or NULL if none found. As there may be more than one pid for 5317 * comm, or NULL if none found. As there may be more than one pid for
5318 * a given comm, the result of this call can be passed back into 5318 * a given comm, the result of this call can be passed back into
5319 * a recurring call in the @next paramater, and then it will find the 5319 * a recurring call in the @next parameter, and then it will find the
5320 * next pid. 5320 * next pid.
5321 * Also, it does a linear seach, so it may be slow. 5321 * Also, it does a linear search, so it may be slow.
5322 */ 5322 */
5323struct cmdline *tep_data_pid_from_comm(struct tep_handle *pevent, const char *comm, 5323struct cmdline *tep_data_pid_from_comm(struct tep_handle *pevent, const char *comm,
5324 struct cmdline *next) 5324 struct cmdline *next)