Signed-off-by: Jiri Olsa <jo...@redhat.com> Cc: Arnaldo Carvalho de Melo <a...@redhat.com> Cc: Namhyung Kim <namhy...@kernel.org> Cc: Corey Ashford <cjash...@linux.vnet.ibm.com> Cc: Frederic Weisbecker <fweis...@gmail.com> Cc: Ingo Molnar <mi...@elte.hu> Cc: Namhyung Kim <namhy...@kernel.org> Cc: Paul Mackerras <pau...@samba.org> Cc: Peter Zijlstra <a.p.zijls...@chello.nl> Cc: Andi Kleen <a...@firstfloor.org> Cc: David Ahern <dsah...@gmail.com> Cc: Ulrich Drepper <drep...@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 -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majord...@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/