diff options
author | Jiri Olsa <jolsa@redhat.com> | 2012-05-21 09:12:49 +0200 |
---|---|---|
committer | Arnaldo Carvalho de Melo <acme@redhat.com> | 2012-05-22 11:19:16 -0300 |
commit | f50246e2e2e33aacc68ac3ec41cf2d6a08860bc4 (patch) | |
tree | 68421df5c4808a0163d59a47c91e8fe4fe09f894 /tools/perf/util/parse-events.h | |
parent | 73787190d04a34e6da745da893b3ae8bedde418f (diff) | |
download | talos-obmc-linux-f50246e2e2e33aacc68ac3ec41cf2d6a08860bc4.tar.gz talos-obmc-linux-f50246e2e2e33aacc68ac3ec41cf2d6a08860bc4.zip |
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 @@ * Parse symbolic events/counts passed in as options: */ +#include <linux/list.h> #include <stdbool.h> +#include "types.h" #include "../../../include/linux/perf_event.h" #include "types.h" @@ -86,6 +88,7 @@ void parse_events_update_lists(struct list_head *list_event, void parse_events_error(struct list_head *list_all, struct list_head *list_event, int *idx, char const *msg); +int parse_events__test(void); void print_events(const char *event_glob); void print_events_type(u8 type); |