Skip to content

Commit

Permalink
perf bench: Clean up bench/bench.h
Browse files Browse the repository at this point in the history
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@elte.hu>
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: <1257853855-28934-2-git-send-email-mitake@dcl.info.waseda.ac.jp>
  • Loading branch information
Ingo Molnar committed Nov 10, 2009
1 parent 158ba82 commit 606bc1e
Showing 1 changed file with 7 additions and 9 deletions.
16 changes: 7 additions & 9 deletions tools/perf/bench/bench.h
Original file line number Diff line number Diff line change
@@ -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;

Expand Down

0 comments on commit 606bc1e

Please sign in to comment.