[tip:perf/bench] perf bench: Clean up bench/bench.h

From: tip-bot for Ingo Molnar
Date: Tue Nov 10 2009 - 08:26:05 EST


Commit-ID: 606bc1e18d346fc7d7fb333909cc95b06b1ca5b1
Gitweb: http://git.kernel.org/tip/606bc1e18d346fc7d7fb333909cc95b06b1ca5b1
Author: Ingo Molnar <mingo@xxxxxxx>
AuthorDate: Tue, 10 Nov 2009 20:50:53 +0900
Committer: Ingo Molnar <mingo@xxxxxxx>
CommitDate: Tue, 10 Nov 2009 14:14:35 +0100

perf bench: Clean up bench/bench.h

Clean up initializers in bench.h:

- No need to break the line for function prototypes, they are more
readable in a single line. (even if checkpatch complains about it

- We try to align definitions / structure fields vertically,
to make it all a bit more readable.

Signed-off-by: Ingo Molnar <mingo@xxxxxxx>
Signed-off-by: Hitoshi Mitake <mitake@xxxxxxxxxxxxxxxxxxxxx>
Cc: Peter Zijlstra <a.p.zijlstra@xxxxxxxxx>
Cc: Paul Mackerras <paulus@xxxxxxxxx>
LKML-Reference: <1257853855-28934-2-git-send-email-mitake@xxxxxxxxxxxxxxxxxxxxx>
---
tools/perf/bench/bench.h | 16 +++++++---------
1 files changed, 7 insertions(+), 9 deletions(-)

diff --git a/tools/perf/bench/bench.h b/tools/perf/bench/bench.h
index 42167ea..9fbd8d7 100644
--- a/tools/perf/bench/bench.h
+++ b/tools/perf/bench/bench.h
@@ -1,17 +1,15 @@
#ifndef BENCH_H
#define BENCH_H

-extern int bench_sched_messaging(int argc, const char **argv,
- const char *prefix);
-extern int bench_sched_pipe(int argc, const char **argv,
- const char *prefix);
+extern int bench_sched_messaging(int argc, const char **argv, const char *prefix);
+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_DEFAULT_STR "default"
+#define BENCH_FORMAT_DEFAULT 0
+#define BENCH_FORMAT_SIMPLE_STR "simple"
+#define BENCH_FORMAT_SIMPLE 1

-#define BENCH_FORMAT_UNKNOWN -1
+#define BENCH_FORMAT_UNKNOWN -1

extern int bench_format;

--
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/