aboutsummaryrefslogtreecommitdiff
path: root/Documentation/perf_counter/util/parse-events.h
diff options
context:
space:
mode:
authorIngo Molnar <mingo@elte.hu>2009-05-26 11:10:09 +0200
committerIngo Molnar <mingo@elte.hu>2009-05-26 11:26:34 +0200
commit8ad8db3788fd9a449941fb2392ca85af4ee1cde1 (patch)
tree8c88edd7cdd4ecce57cda2c46b6dd544d00f97df /Documentation/perf_counter/util/parse-events.h
parent0e9b20b8a1cab6c6ab4f98f917a2d98783103969 (diff)
perf_counter tools: Librarize event string parsing
Extract the event string parser from builtin-record.c, and librarize it - to be reused in other commands. 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>
Diffstat (limited to 'Documentation/perf_counter/util/parse-events.h')
-rw-r--r--Documentation/perf_counter/util/parse-events.h10
1 files changed, 10 insertions, 0 deletions
diff --git a/Documentation/perf_counter/util/parse-events.h b/Documentation/perf_counter/util/parse-events.h
new file mode 100644
index 00000000000..6e2ebe5ff7d
--- /dev/null
+++ b/Documentation/perf_counter/util/parse-events.h
@@ -0,0 +1,10 @@
+
+extern int nr_counters;
+extern __u64 event_id[MAX_COUNTERS];
+
+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);
+