aboutsummaryrefslogtreecommitdiffstats
path: root/tools/lib/traceevent/event-parse.h
diff options
context:
space:
mode:
Diffstat (limited to 'tools/lib/traceevent/event-parse.h')
-rw-r--r--tools/lib/traceevent/event-parse.h34
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
304enum event_sort_type { 304enum 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
310enum event_type { 310enum 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
322typedef unsigned long long (*tep_func_handler)(struct trace_seq *s, 322typedef 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,
685int tep_strerror(struct tep_handle *pevent, enum tep_errno errnum, 685int tep_strerror(struct tep_handle *pevent, enum tep_errno errnum,
686 char *buf, size_t buflen); 686 char *buf, size_t buflen);
687 687
688struct tep_event_format **tep_list_events(struct tep_handle *pevent, enum event_sort_type); 688struct tep_event_format **tep_list_events(struct tep_handle *pevent, enum tep_event_sort_type);
689struct tep_format_field **tep_event_common_fields(struct tep_event_format *event); 689struct tep_format_field **tep_event_common_fields(struct tep_event_format *event);
690struct tep_format_field **tep_event_fields(struct tep_event_format *event); 690struct 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 */
758void tep_buffer_init(const char *buf, unsigned long long size); 758void tep_buffer_init(const char *buf, unsigned long long size);
759enum event_type tep_read_token(char **tok); 759enum tep_event_type tep_read_token(char **tok);
760void tep_free_token(char *token); 760void tep_free_token(char *token);
761int tep_peek_char(void); 761int tep_peek_char(void);
762const char *tep_get_input_buf(void); 762const char *tep_get_input_buf(void);