aboutsummaryrefslogtreecommitdiffstats
path: root/tools/perf/util/parse-events.c
diff options
context:
space:
mode:
authorIngo Molnar <mingo@elte.hu>2011-04-29 08:41:28 -0400
committerIngo Molnar <mingo@elte.hu>2011-04-29 08:35:49 -0400
commit129c04cb8ce2e4bf3f17223f58ef16aa8a2cb3b8 (patch)
treedd6bacbcefee60d18e0f962df5650d2b48febcf8 /tools/perf/util/parse-events.c
parent91fc4cc00099986bc1ba50e1f421c3548cffae42 (diff)
perf tools: Add front-end and back-end stalled cycles support
Update perf tooling to deal with front-end and back-end stalled cycles events. Add both the default 'perf stat' output. Cc: Peter Zijlstra <a.p.zijlstra@chello.nl> Cc: Arnaldo Carvalho de Melo <acme@redhat.com> Cc: Frederic Weisbecker <fweisbec@gmail.com> Link: http://lkml.kernel.org/n/tip-7y40wib8n002io7hjpn1dsrm@git.kernel.org Signed-off-by: Ingo Molnar <mingo@elte.hu>
Diffstat (limited to 'tools/perf/util/parse-events.c')
-rw-r--r--tools/perf/util/parse-events.c37
1 files changed, 19 insertions, 18 deletions
diff --git a/tools/perf/util/parse-events.c b/tools/perf/util/parse-events.c
index bbbb735268ef..04d2f0a96674 100644
--- a/tools/perf/util/parse-events.c
+++ b/tools/perf/util/parse-events.c
@@ -31,24 +31,25 @@ char debugfs_path[MAXPATHLEN];
31#define CSW(x) .type = PERF_TYPE_SOFTWARE, .config = PERF_COUNT_SW_##x 31#define CSW(x) .type = PERF_TYPE_SOFTWARE, .config = PERF_COUNT_SW_##x
32 32
33static struct event_symbol event_symbols[] = { 33static struct event_symbol event_symbols[] = {
34 { CHW(CPU_CYCLES), "cpu-cycles", "cycles" }, 34 { CHW(CPU_CYCLES), "cpu-cycles", "cycles" },
35 { CHW(STALLED_CYCLES), "stalled-cycles", "idle-cycles" }, 35 { CHW(STALLED_CYCLES_FRONTEND), "stalled-cycles-frontend", "idle-cycles-frontend" },
36 { CHW(INSTRUCTIONS), "instructions", "" }, 36 { CHW(STALLED_CYCLES_BACKEND), "stalled-cycles-backend", "idle-cycles-backend" },
37 { CHW(CACHE_REFERENCES), "cache-references", "" }, 37 { CHW(INSTRUCTIONS), "instructions", "" },
38 { CHW(CACHE_MISSES), "cache-misses", "" }, 38 { CHW(CACHE_REFERENCES), "cache-references", "" },
39 { CHW(BRANCH_INSTRUCTIONS), "branch-instructions", "branches" }, 39 { CHW(CACHE_MISSES), "cache-misses", "" },
40 { CHW(BRANCH_MISSES), "branch-misses", "" }, 40 { CHW(BRANCH_INSTRUCTIONS), "branch-instructions", "branches" },
41 { CHW(BUS_CYCLES), "bus-cycles", "" }, 41 { CHW(BRANCH_MISSES), "branch-misses", "" },
42 42 { CHW(BUS_CYCLES), "bus-cycles", "" },
43 { CSW(CPU_CLOCK), "cpu-clock", "" }, 43
44 { CSW(TASK_CLOCK), "task-clock", "" }, 44 { CSW(CPU_CLOCK), "cpu-clock", "" },
45 { CSW(PAGE_FAULTS), "page-faults", "faults" }, 45 { CSW(TASK_CLOCK), "task-clock", "" },
46 { CSW(PAGE_FAULTS_MIN), "minor-faults", "" }, 46 { CSW(PAGE_FAULTS), "page-faults", "faults" },
47 { CSW(PAGE_FAULTS_MAJ), "major-faults", "" }, 47 { CSW(PAGE_FAULTS_MIN), "minor-faults", "" },
48 { CSW(CONTEXT_SWITCHES), "context-switches", "cs" }, 48 { CSW(PAGE_FAULTS_MAJ), "major-faults", "" },
49 { CSW(CPU_MIGRATIONS), "cpu-migrations", "migrations" }, 49 { CSW(CONTEXT_SWITCHES), "context-switches", "cs" },
50 { CSW(ALIGNMENT_FAULTS), "alignment-faults", "" }, 50 { CSW(CPU_MIGRATIONS), "cpu-migrations", "migrations" },
51 { CSW(EMULATION_FAULTS), "emulation-faults", "" }, 51 { CSW(ALIGNMENT_FAULTS), "alignment-faults", "" },
52 { CSW(EMULATION_FAULTS), "emulation-faults", "" },
52}; 53};
53 54
54#define __PERF_EVENT_FIELD(config, name) \ 55#define __PERF_EVENT_FIELD(config, name) \