diff options
Diffstat (limited to 'tools/lib/traceevent/event-parse.h')
-rw-r--r-- | tools/lib/traceevent/event-parse.h | 14 |
1 files changed, 12 insertions, 2 deletions
diff --git a/tools/lib/traceevent/event-parse.h b/tools/lib/traceevent/event-parse.h index c37b2026d04a..8d73d2594f65 100644 --- a/tools/lib/traceevent/event-parse.h +++ b/tools/lib/traceevent/event-parse.h | |||
@@ -20,6 +20,7 @@ | |||
20 | #ifndef _PARSE_EVENTS_H | 20 | #ifndef _PARSE_EVENTS_H |
21 | #define _PARSE_EVENTS_H | 21 | #define _PARSE_EVENTS_H |
22 | 22 | ||
23 | #include <stdbool.h> | ||
23 | #include <stdarg.h> | 24 | #include <stdarg.h> |
24 | #include <regex.h> | 25 | #include <regex.h> |
25 | 26 | ||
@@ -307,6 +308,8 @@ enum { | |||
307 | EVENT_FL_ISBPRINT = 0x04, | 308 | EVENT_FL_ISBPRINT = 0x04, |
308 | EVENT_FL_ISFUNCENT = 0x10, | 309 | EVENT_FL_ISFUNCENT = 0x10, |
309 | EVENT_FL_ISFUNCRET = 0x20, | 310 | EVENT_FL_ISFUNCRET = 0x20, |
311 | EVENT_FL_NOHANDLE = 0x40, | ||
312 | EVENT_FL_PRINTRAW = 0x80, | ||
310 | 313 | ||
311 | EVENT_FL_FAILED = 0x80000000 | 314 | EVENT_FL_FAILED = 0x80000000 |
312 | }; | 315 | }; |
@@ -450,6 +453,8 @@ struct pevent { | |||
450 | 453 | ||
451 | /* cache */ | 454 | /* cache */ |
452 | struct event_format *last_event; | 455 | struct event_format *last_event; |
456 | |||
457 | char *trace_clock; | ||
453 | }; | 458 | }; |
454 | 459 | ||
455 | static inline void pevent_set_flag(struct pevent *pevent, int flag) | 460 | static inline void pevent_set_flag(struct pevent *pevent, int flag) |
@@ -527,14 +532,15 @@ enum trace_flag_type { | |||
527 | }; | 532 | }; |
528 | 533 | ||
529 | int pevent_register_comm(struct pevent *pevent, const char *comm, int pid); | 534 | int pevent_register_comm(struct pevent *pevent, const char *comm, int pid); |
535 | void pevent_register_trace_clock(struct pevent *pevent, char *trace_clock); | ||
530 | int pevent_register_function(struct pevent *pevent, char *name, | 536 | int pevent_register_function(struct pevent *pevent, char *name, |
531 | unsigned long long addr, char *mod); | 537 | unsigned long long addr, char *mod); |
532 | int pevent_register_print_string(struct pevent *pevent, char *fmt, | 538 | int pevent_register_print_string(struct pevent *pevent, const char *fmt, |
533 | unsigned long long addr); | 539 | unsigned long long addr); |
534 | int pevent_pid_is_registered(struct pevent *pevent, int pid); | 540 | int pevent_pid_is_registered(struct pevent *pevent, int pid); |
535 | 541 | ||
536 | void pevent_print_event(struct pevent *pevent, struct trace_seq *s, | 542 | void pevent_print_event(struct pevent *pevent, struct trace_seq *s, |
537 | struct pevent_record *record); | 543 | struct pevent_record *record, bool use_trace_clock); |
538 | 544 | ||
539 | int pevent_parse_header_page(struct pevent *pevent, char *buf, unsigned long size, | 545 | int pevent_parse_header_page(struct pevent *pevent, char *buf, unsigned long size, |
540 | int long_size); | 546 | int long_size); |
@@ -563,6 +569,10 @@ int pevent_print_num_field(struct trace_seq *s, const char *fmt, | |||
563 | struct event_format *event, const char *name, | 569 | struct event_format *event, const char *name, |
564 | struct pevent_record *record, int err); | 570 | struct pevent_record *record, int err); |
565 | 571 | ||
572 | int pevent_print_func_field(struct trace_seq *s, const char *fmt, | ||
573 | struct event_format *event, const char *name, | ||
574 | struct pevent_record *record, int err); | ||
575 | |||
566 | int pevent_register_event_handler(struct pevent *pevent, int id, | 576 | int pevent_register_event_handler(struct pevent *pevent, int id, |
567 | const char *sys_name, const char *event_name, | 577 | const char *sys_name, const char *event_name, |
568 | pevent_event_handler_func func, void *context); | 578 | pevent_event_handler_func func, void *context); |