[PATCH 4/4] perf tool: Adding formula.conf file for testing

From: Jiri Olsa
Date: Tue Jan 15 2013 - 09:16:25 EST


Signed-off-by: Jiri Olsa <jolsa@xxxxxxxxxx>
Cc: Arnaldo Carvalho de Melo <acme@xxxxxxxxxx>
Cc: Namhyung Kim <namhyung@xxxxxxxxxx>
Cc: Corey Ashford <cjashfor@xxxxxxxxxxxxxxxxxx>
Cc: Frederic Weisbecker <fweisbec@xxxxxxxxx>
Cc: Ingo Molnar <mingo@xxxxxxx>
Cc: Namhyung Kim <namhyung@xxxxxxxxxx>
Cc: Paul Mackerras <paulus@xxxxxxxxx>
Cc: Peter Zijlstra <a.p.zijlstra@xxxxxxxxx>
Cc: Andi Kleen <andi@xxxxxxxxxxxxxx>
Cc: David Ahern <dsahern@xxxxxxxxx>
Cc: Ulrich Drepper <drepper@xxxxxxxxx>
---
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 majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/