perf bench: Add format constants to bench.h for unified output formatting
authorHitoshi Mitake <mitake@dcl.info.waseda.ac.jp>
Mon, 9 Nov 2009 23:19:59 +0000 (08:19 +0900)
committerIngo Molnar <mingo@elte.hu>
Tue, 10 Nov 2009 03:53:48 +0000 (04:53 +0100)
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>
tools/perf/bench/bench.h

index 59adb279cd7aeb426986d9c33c4c09a51a927b43..42167ea41944e981d0abedfd813197600d9d452a 100644 (file)
@@ -6,4 +6,13 @@ extern int bench_sched_messaging(int argc, const char **argv,
 extern int bench_sched_pipe(int argc, const char **argv,
                            const char *prefix);
 
+#define BENCH_FORMAT_DEFAULT_STR "default"
+#define BENCH_FORMAT_DEFAULT 0
+#define BENCH_FORMAT_SIMPLE_STR "simple"
+#define BENCH_FORMAT_SIMPLE 1
+
+#define BENCH_FORMAT_UNKNOWN -1
+
+extern int bench_format;
+
 #endif