5242519b02
Remove getopt usage and use Git's much more advanced and more compact command option library. Extend the event parser library with the extensions that were in perf-stat before. Cc: Peter Zijlstra <a.p.zijlstra@chello.nl> Cc: Mike Galbraith <efault@gmx.de> Cc: Paul Mackerras <paulus@samba.org> Cc: Corey Ashford <cjashfor@linux.vnet.ibm.com> Cc: Marcelo Tosatti <mtosatti@redhat.com> Cc: Arnaldo Carvalho de Melo <acme@redhat.com> Cc: John Kacur <jkacur@redhat.com> LKML-Reference: <new-submission> Signed-off-by: Ingo Molnar <mingo@elte.hu>
20 lines
422 B
C
20 lines
422 B
C
|
|
/*
|
|
* Parse symbolic events/counts passed in as options:
|
|
*/
|
|
|
|
extern int nr_counters;
|
|
extern __u64 event_id[MAX_COUNTERS];
|
|
extern int event_mask[MAX_COUNTERS];
|
|
|
|
#define EVENT_MASK_KERNEL 1
|
|
#define EVENT_MASK_USER 2
|
|
|
|
extern char *event_name(int ctr);
|
|
|
|
extern int parse_events(const struct option *opt, const char *str, int unset);
|
|
|
|
#define EVENTS_HELP_MAX (128*1024)
|
|
|
|
extern void create_events_help(char *help_msg);
|
|
|