diff options
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 1330fca2da1e..1abf15882460 100644 --- a/tools/lib/traceevent/event-parse.h +++ b/tools/lib/traceevent/event-parse.h | |||
| @@ -882,7 +882,7 @@ struct tep_filter_arg { | |||
| 882 | }; | 882 | }; |
| 883 | }; | 883 | }; |
| 884 | 884 | ||
| 885 | struct filter_type { | 885 | struct tep_filter_type { |
| 886 | int event_id; | 886 | int event_id; |
| 887 | struct tep_event_format *event; | 887 | struct tep_event_format *event; |
| 888 | struct tep_filter_arg *filter; | 888 | struct tep_filter_arg *filter; |
| @@ -890,14 +890,14 @@ struct filter_type { | |||
| 890 | 890 | ||
| 891 | #define TEP_FILTER_ERROR_BUFSZ 1024 | 891 | #define TEP_FILTER_ERROR_BUFSZ 1024 |
| 892 | 892 | ||
| 893 | struct event_filter { | 893 | struct tep_event_filter { |
| 894 | struct tep_handle *pevent; | 894 | struct tep_handle *pevent; |
| 895 | int filters; | 895 | int filters; |
| 896 | struct filter_type *event_filters; | 896 | struct tep_filter_type *event_filters; |
| 897 | char error_buffer[TEP_FILTER_ERROR_BUFSZ]; | 897 | char error_buffer[TEP_FILTER_ERROR_BUFSZ]; |
| 898 | }; | 898 | }; |
| 899 | 899 | ||
| 900 | struct event_filter *tep_filter_alloc(struct tep_handle *pevent); | 900 | struct tep_event_filter *tep_filter_alloc(struct tep_handle *pevent); |
| 901 | 901 | ||
| 902 | /* for backward compatibility */ | 902 | /* for backward compatibility */ |
| 903 | #define FILTER_NONE TEP_ERRNO__NO_FILTER | 903 | #define FILTER_NONE TEP_ERRNO__NO_FILTER |
| @@ -911,39 +911,39 @@ enum filter_trivial_type { | |||
| 911 | FILTER_TRIVIAL_BOTH, | 911 | FILTER_TRIVIAL_BOTH, |
| 912 | }; | 912 | }; |
| 913 | 913 | ||
| 914 | enum tep_errno tep_filter_add_filter_str(struct event_filter *filter, | 914 | enum tep_errno tep_filter_add_filter_str(struct tep_event_filter *filter, |
| 915 | const char *filter_str); | 915 | const char *filter_str); |
| 916 | 916 | ||
| 917 | enum tep_errno tep_filter_match(struct event_filter *filter, | 917 | enum tep_errno tep_filter_match(struct tep_event_filter *filter, |
| 918 | struct tep_record *record); | 918 | struct tep_record *record); |
| 919 | 919 | ||
| 920 | int tep_filter_strerror(struct event_filter *filter, enum tep_errno err, | 920 | int tep_filter_strerror(struct tep_event_filter *filter, enum tep_errno err, |
| 921 | char *buf, size_t buflen); | 921 | char *buf, size_t buflen); |
| 922 | 922 | ||
| 923 | int tep_event_filtered(struct event_filter *filter, | 923 | int tep_event_filtered(struct tep_event_filter *filter, |
| 924 | int event_id); | 924 | int event_id); |
| 925 | 925 | ||
| 926 | void tep_filter_reset(struct event_filter *filter); | 926 | void tep_filter_reset(struct tep_event_filter *filter); |
| 927 | 927 | ||
| 928 | int tep_filter_clear_trivial(struct event_filter *filter, | 928 | int tep_filter_clear_trivial(struct tep_event_filter *filter, |
| 929 | enum filter_trivial_type type); | 929 | enum filter_trivial_type type); |
| 930 | 930 | ||
| 931 | void tep_filter_free(struct event_filter *filter); | 931 | void tep_filter_free(struct tep_event_filter *filter); |
| 932 | 932 | ||
| 933 | char *tep_filter_make_string(struct event_filter *filter, int event_id); | 933 | char *tep_filter_make_string(struct tep_event_filter *filter, int event_id); |
| 934 | 934 | ||
| 935 | int tep_filter_remove_event(struct event_filter *filter, | 935 | int tep_filter_remove_event(struct tep_event_filter *filter, |
| 936 | int event_id); | 936 | int event_id); |
| 937 | 937 | ||
| 938 | int tep_filter_event_has_trivial(struct event_filter *filter, | 938 | int tep_filter_event_has_trivial(struct tep_event_filter *filter, |
| 939 | int event_id, | 939 | int event_id, |
| 940 | enum filter_trivial_type type); | 940 | enum filter_trivial_type type); |
| 941 | 941 | ||
| 942 | int tep_filter_copy(struct event_filter *dest, struct event_filter *source); | 942 | int tep_filter_copy(struct tep_event_filter *dest, struct tep_event_filter *source); |
| 943 | 943 | ||
| 944 | int tep_update_trivial(struct event_filter *dest, struct event_filter *source, | 944 | int tep_update_trivial(struct tep_event_filter *dest, struct tep_event_filter *source, |
| 945 | enum filter_trivial_type type); | 945 | enum filter_trivial_type type); |
| 946 | 946 | ||
| 947 | int tep_filter_compare(struct event_filter *filter1, struct event_filter *filter2); | 947 | int tep_filter_compare(struct tep_event_filter *filter1, struct tep_event_filter *filter2); |
| 948 | 948 | ||
| 949 | #endif /* _PARSE_EVENTS_H */ | 949 | #endif /* _PARSE_EVENTS_H */ |
