aboutsummaryrefslogtreecommitdiffstats
path: root/tools/perf/bench
diff options
context:
space:
mode:
authorHitoshi Mitake <mitake@dcl.info.waseda.ac.jp>2009-11-09 18:19:59 -0500
committerIngo Molnar <mingo@elte.hu>2009-11-09 22:53:48 -0500
commit242aa14a67f4e19453fc8a51cffc5ac5ee5bcbd1 (patch)
tree12dbcf1ca040023a098d827c49a5b0e1e17849ae /tools/perf/bench
parent5ff0cfc67f00fe0feaa1da0b2359232ea4aa0ee7 (diff)
perf bench: Add format constants to bench.h for unified output formatting
This patch adds some constants and extern declaration to bench.h. These are used for unified output formatting of 'perf bench'. Signed-off-by: Hitoshi Mitake <mitake@dcl.info.waseda.ac.jp> Cc: Peter Zijlstra <a.p.zijlstra@chello.nl> Cc: Paul Mackerras <paulus@samba.org> LKML-Reference: <1257808802-9420-2-git-send-email-mitake@dcl.info.waseda.ac.jp> Signed-off-by: Ingo Molnar <mingo@elte.hu>
Diffstat (limited to 'tools/perf/bench')
-rw-r--r--tools/perf/bench/bench.h9
1 files changed, 9 insertions, 0 deletions
diff --git a/tools/perf/bench/bench.h b/tools/perf/bench/bench.h
index 59adb279cd7a..42167ea41944 100644
--- a/tools/perf/bench/bench.h
+++ b/tools/perf/bench/bench.h
@@ -6,4 +6,13 @@ extern int bench_sched_messaging(int argc, const char **argv,
6extern int bench_sched_pipe(int argc, const char **argv, 6extern int bench_sched_pipe(int argc, const char **argv,
7 const char *prefix); 7 const char *prefix);
8 8
9#define BENCH_FORMAT_DEFAULT_STR "default"
10#define BENCH_FORMAT_DEFAULT 0
11#define BENCH_FORMAT_SIMPLE_STR "simple"
12#define BENCH_FORMAT_SIMPLE 1
13
14#define BENCH_FORMAT_UNKNOWN -1
15
16extern int bench_format;
17
9#endif 18#endif