Messages in this thread Patch in this message | | | From | Jiri Olsa <> | Subject | [PATCH 4/4] perf tool: Adding formula.conf file for testing | Date | Tue, 15 Jan 2013 14:39:54 +0100 |
| |
Signed-off-by: Jiri Olsa <jolsa@redhat.com> Cc: Arnaldo Carvalho de Melo <acme@redhat.com> Cc: Namhyung Kim <namhyung@kernel.org> Cc: Corey Ashford <cjashfor@linux.vnet.ibm.com> Cc: Frederic Weisbecker <fweisbec@gmail.com> Cc: Ingo Molnar <mingo@elte.hu> Cc: Namhyung Kim <namhyung@kernel.org> Cc: Paul Mackerras <paulus@samba.org> Cc: Peter Zijlstra <a.p.zijlstra@chello.nl> Cc: Andi Kleen <andi@firstfloor.org> Cc: David Ahern <dsahern@gmail.com> Cc: Ulrich Drepper <drepper@gmail.com> --- tools/perf/formula.conf | 28 ++++++++++++++++++++++++++++ 1 file changed, 28 insertions(+) create mode 100644 tools/perf/formula.conf
diff --git a/tools/perf/formula.conf b/tools/perf/formula.conf new file mode 100644 index 0000000..852cb9a --- /dev/null +++ b/tools/perf/formula.conf @@ -0,0 +1,28 @@ + +cpi { + events = {cycles,instructions}:u + + CPI { + formula = cycles / instructions + desc = cycles per instruction + } +} + +branch { + events = {instructions,branch-instructions,branch-misses}:u + + branch-rate { + formula = branch-instructions / instructions + desc = branch rate + } + + branch-miss-rate { + formula = branch-misses / instructions + desc = branch misprediction rate + } + + branch-miss-ratio{ + formula = branch-misses / branch-instructions + desc = branch misprediction ratio + } +} -- 1.7.11.7
| |