diff options
Diffstat (limited to 'tools/lib/traceevent/event-parse.h')
-rw-r--r-- | tools/lib/traceevent/event-parse.h | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/tools/lib/traceevent/event-parse.h b/tools/lib/traceevent/event-parse.h index 39f0c1dca915..c37b2026d04a 100644 --- a/tools/lib/traceevent/event-parse.h +++ b/tools/lib/traceevent/event-parse.h | |||
@@ -400,6 +400,7 @@ struct pevent { | |||
400 | 400 | ||
401 | int cpus; | 401 | int cpus; |
402 | int long_size; | 402 | int long_size; |
403 | int page_size; | ||
403 | 404 | ||
404 | struct cmdline *cmdlines; | 405 | struct cmdline *cmdlines; |
405 | struct cmdline_list *cmdlist; | 406 | struct cmdline_list *cmdlist; |
@@ -621,6 +622,16 @@ static inline void pevent_set_long_size(struct pevent *pevent, int long_size) | |||
621 | pevent->long_size = long_size; | 622 | pevent->long_size = long_size; |
622 | } | 623 | } |
623 | 624 | ||
625 | static inline int pevent_get_page_size(struct pevent *pevent) | ||
626 | { | ||
627 | return pevent->page_size; | ||
628 | } | ||
629 | |||
630 | static inline void pevent_set_page_size(struct pevent *pevent, int _page_size) | ||
631 | { | ||
632 | pevent->page_size = _page_size; | ||
633 | } | ||
634 | |||
624 | static inline int pevent_is_file_bigendian(struct pevent *pevent) | 635 | static inline int pevent_is_file_bigendian(struct pevent *pevent) |
625 | { | 636 | { |
626 | return pevent->file_bigendian; | 637 | return pevent->file_bigendian; |