diff options
author | Tzvetomir Stoyanov (VMware) <tz.stoyanov@gmail.com> | 2018-09-19 14:56:47 -0400 |
---|---|---|
committer | Arnaldo Carvalho de Melo <acme@redhat.com> | 2018-09-19 16:14:58 -0400 |
commit | f25d9e09e9354bded677d21b51a7b1879cfa02a8 (patch) | |
tree | df1f68c0740d7071887f7c1ac12c6836a640d3eb /tools/lib/traceevent/event-parse.h | |
parent | bb39ccb204cc2e8135660b9cb768ffcf242bf33e (diff) |
tools lib traceevent: Rename enum event_{sort_}type to enum tep_event_{sort_}type
In order to make libtraceevent into a proper library, variables, data
structures and functions require a unique prefix to prevent name space
conflicts. That prefix will be "tep_". This renames enum event_type to
enum tep_event_type, enum event_sort_type to enum tep_event_sort_type
and add prefix TEP_ to all enum's members
Signed-off-by: Tzvetomir Stoyanov (VMware) <tz.stoyanov@gmail.com>
Cc: Andrew Morton <akpm@linux-foundation.org>
Cc: Jiri Olsa <jolsa@redhat.com>
Cc: Namhyung Kim <namhyung@kernel.org>
Cc: Tzvetomir Stoyanov (VMware) <tz.stoyanov@gmail.com>
Cc: linux-trace-devel@vger.kernel.org
Link: http://lkml.kernel.org/r/20180919185722.961022207@goodmis.org
Signed-off-by: Steven Rostedt (VMware) <rostedt@goodmis.org>
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
Diffstat (limited to 'tools/lib/traceevent/event-parse.h')
-rw-r--r-- | tools/lib/traceevent/event-parse.h | 34 |
1 files changed, 17 insertions, 17 deletions
diff --git a/tools/lib/traceevent/event-parse.h b/tools/lib/traceevent/event-parse.h index f1e1baee8cbd..10aaeda34c6b 100644 --- a/tools/lib/traceevent/event-parse.h +++ b/tools/lib/traceevent/event-parse.h | |||
@@ -301,22 +301,22 @@ enum { | |||
301 | EVENT_FL_FAILED = 0x80000000 | 301 | EVENT_FL_FAILED = 0x80000000 |
302 | }; | 302 | }; |
303 | 303 | ||
304 | enum event_sort_type { | 304 | enum tep_event_sort_type { |
305 | EVENT_SORT_ID, | 305 | TEP_EVENT_SORT_ID, |
306 | EVENT_SORT_NAME, | 306 | TEP_EVENT_SORT_NAME, |
307 | EVENT_SORT_SYSTEM, | 307 | TEP_EVENT_SORT_SYSTEM, |
308 | }; | 308 | }; |
309 | 309 | ||
310 | enum event_type { | 310 | enum tep_event_type { |
311 | EVENT_ERROR, | 311 | TEP_EVENT_ERROR, |
312 | EVENT_NONE, | 312 | TEP_EVENT_NONE, |
313 | EVENT_SPACE, | 313 | TEP_EVENT_SPACE, |
314 | EVENT_NEWLINE, | 314 | TEP_EVENT_NEWLINE, |
315 | EVENT_OP, | 315 | TEP_EVENT_OP, |
316 | EVENT_DELIM, | 316 | TEP_EVENT_DELIM, |
317 | EVENT_ITEM, | 317 | TEP_EVENT_ITEM, |
318 | EVENT_DQUOTE, | 318 | TEP_EVENT_DQUOTE, |
319 | EVENT_SQUOTE, | 319 | TEP_EVENT_SQUOTE, |
320 | }; | 320 | }; |
321 | 321 | ||
322 | typedef unsigned long long (*tep_func_handler)(struct trace_seq *s, | 322 | typedef unsigned long long (*tep_func_handler)(struct trace_seq *s, |
@@ -454,7 +454,7 @@ struct tep_handle { | |||
454 | struct tep_event_format **events; | 454 | struct tep_event_format **events; |
455 | int nr_events; | 455 | int nr_events; |
456 | struct tep_event_format **sort_events; | 456 | struct tep_event_format **sort_events; |
457 | enum event_sort_type last_type; | 457 | enum tep_event_sort_type last_type; |
458 | 458 | ||
459 | int type_offset; | 459 | int type_offset; |
460 | int type_size; | 460 | int type_size; |
@@ -685,7 +685,7 @@ void tep_event_info(struct trace_seq *s, struct tep_event_format *event, | |||
685 | int tep_strerror(struct tep_handle *pevent, enum tep_errno errnum, | 685 | int tep_strerror(struct tep_handle *pevent, enum tep_errno errnum, |
686 | char *buf, size_t buflen); | 686 | char *buf, size_t buflen); |
687 | 687 | ||
688 | struct tep_event_format **tep_list_events(struct tep_handle *pevent, enum event_sort_type); | 688 | struct tep_event_format **tep_list_events(struct tep_handle *pevent, enum tep_event_sort_type); |
689 | struct tep_format_field **tep_event_common_fields(struct tep_event_format *event); | 689 | struct tep_format_field **tep_event_common_fields(struct tep_event_format *event); |
690 | struct tep_format_field **tep_event_fields(struct tep_event_format *event); | 690 | struct tep_format_field **tep_event_fields(struct tep_event_format *event); |
691 | 691 | ||
@@ -756,7 +756,7 @@ void tep_unref(struct tep_handle *pevent); | |||
756 | 756 | ||
757 | /* access to the internal parser */ | 757 | /* access to the internal parser */ |
758 | void tep_buffer_init(const char *buf, unsigned long long size); | 758 | void tep_buffer_init(const char *buf, unsigned long long size); |
759 | enum event_type tep_read_token(char **tok); | 759 | enum tep_event_type tep_read_token(char **tok); |
760 | void tep_free_token(char *token); | 760 | void tep_free_token(char *token); |
761 | int tep_peek_char(void); | 761 | int tep_peek_char(void); |
762 | const char *tep_get_input_buf(void); | 762 | const char *tep_get_input_buf(void); |