diff options
author | Frederic Weisbecker <fweisbec@gmail.com> | 2009-08-16 13:56:54 -0400 |
---|---|---|
committer | Ingo Molnar <mingo@elte.hu> | 2009-08-16 13:59:13 -0400 |
commit | 0f25bfc8d8b31a4ac8e4ff6cbc3911fb7092a4a7 (patch) | |
tree | f37cc9878d68ec96b2f8d25389ceadbb69c183d4 /tools/perf/util/event.h | |
parent | 2cec19d9d0716f8d68f1c5a87667d0387d4d252d (diff) |
perf tools: Put the show mode into the event headers files
Annotate and report share the same flags to filter events
considering their context (kernel, user, hypervisor).
Both tools have their own definitions of these flags. Factorize
them out into the event headers file.
Signed-off-by: Frederic Weisbecker <fweisbec@gmail.com>
Cc: Frederic Weisbecker <fweisbec@gmail.com>
Cc: Peter Zijlstra <peterz@infradead.org>
Cc: Arnaldo Carvalho de Melo <acme@redhat.com>
Cc: Mike Galbraith <efault@gmx.de>
LKML-Reference: <1250445414-29237-1-git-send-email-fweisbec@gmail.com>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
Diffstat (limited to 'tools/perf/util/event.h')
-rw-r--r-- | tools/perf/util/event.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/tools/perf/util/event.h b/tools/perf/util/event.h index fa7c50b654e1..fa2d4e91d329 100644 --- a/tools/perf/util/event.h +++ b/tools/perf/util/event.h | |||
@@ -4,6 +4,12 @@ | |||
4 | #include "util.h" | 4 | #include "util.h" |
5 | #include <linux/list.h> | 5 | #include <linux/list.h> |
6 | 6 | ||
7 | enum { | ||
8 | SHOW_KERNEL = 1, | ||
9 | SHOW_USER = 2, | ||
10 | SHOW_HV = 4, | ||
11 | }; | ||
12 | |||
7 | /* | 13 | /* |
8 | * PERF_SAMPLE_IP | PERF_SAMPLE_TID | * | 14 | * PERF_SAMPLE_IP | PERF_SAMPLE_TID | * |
9 | */ | 15 | */ |