diff options
author | Jiri Olsa <jolsa@redhat.com> | 2012-05-21 03:12:49 -0400 |
---|---|---|
committer | Arnaldo Carvalho de Melo <acme@redhat.com> | 2012-05-22 10:19:16 -0400 |
commit | f50246e2e2e33aacc68ac3ec41cf2d6a08860bc4 (patch) | |
tree | 68421df5c4808a0163d59a47c91e8fe4fe09f894 /tools/perf/util/parse-events.h | |
parent | 73787190d04a34e6da745da893b3ae8bedde418f (diff) |
perf test: Move parse event automated tests to separated object
Moving event parsing specific tests into separated file:
util/parse-events-test.c
Also changing the code a bit to ease running separate tests.
Signed-off-by: Jiri Olsa <jolsa@redhat.com>
Cc: Corey Ashford <cjashfor@linux.vnet.ibm.com>
Cc: Frederic Weisbecker <fweisbec@gmail.com>
Cc: Ingo Molnar <mingo@elte.hu>
Cc: Paul Mackerras <paulus@samba.org>
Cc: Peter Zijlstra <a.p.zijlstra@chello.nl>
Link: http://lkml.kernel.org/r/1337584373-2741-2-git-send-email-jolsa@redhat.com
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
Diffstat (limited to 'tools/perf/util/parse-events.h')
-rw-r--r-- | tools/perf/util/parse-events.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/tools/perf/util/parse-events.h b/tools/perf/util/parse-events.h index 3fddd610d350..d287adc2bb61 100644 --- a/tools/perf/util/parse-events.h +++ b/tools/perf/util/parse-events.h | |||
@@ -4,7 +4,9 @@ | |||
4 | * Parse symbolic events/counts passed in as options: | 4 | * Parse symbolic events/counts passed in as options: |
5 | */ | 5 | */ |
6 | 6 | ||
7 | #include <linux/list.h> | ||
7 | #include <stdbool.h> | 8 | #include <stdbool.h> |
9 | #include "types.h" | ||
8 | #include "../../../include/linux/perf_event.h" | 10 | #include "../../../include/linux/perf_event.h" |
9 | #include "types.h" | 11 | #include "types.h" |
10 | 12 | ||
@@ -86,6 +88,7 @@ void parse_events_update_lists(struct list_head *list_event, | |||
86 | void parse_events_error(struct list_head *list_all, | 88 | void parse_events_error(struct list_head *list_all, |
87 | struct list_head *list_event, | 89 | struct list_head *list_event, |
88 | int *idx, char const *msg); | 90 | int *idx, char const *msg); |
91 | int parse_events__test(void); | ||
89 | 92 | ||
90 | void print_events(const char *event_glob); | 93 | void print_events(const char *event_glob); |
91 | void print_events_type(u8 type); | 94 | void print_events_type(u8 type); |