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>
This commit is contained in:
committed by
Arnaldo Carvalho de Melo
parent
73787190d0
commit
f50246e2e2
@@ -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);
|
||||
|
Reference in New Issue
Block a user