diff options
author | Hitoshi Mitake <mitake@dcl.info.waseda.ac.jp> | 2009-11-10 10:04:00 -0500 |
---|---|---|
committer | Ingo Molnar <mingo@elte.hu> | 2009-11-10 13:56:44 -0500 |
commit | 79e295d4bd0f524257299e7c4e42f643f21abcc2 (patch) | |
tree | baa952c33498ea78e46a8b57cf135af318ebc460 /tools/perf/builtin-bench.c | |
parent | 8d8d61aadb9d8cce07f7dcdb77a4c20a25d36d07 (diff) |
perf bench: Improve builtin-bench.c for more friendly output
This patch makes output of perf bench more friendly.
Current style of putput, keeping user wait
and printing everything suddenly when we finish,
may confuse users.
So I improved it:
| % perf bench sched messaging
| # Running sched/messaging benchmark... <- printed right after invocation
| # 20 sender and receiver processes per group
| # 10 groups == 400 processes run
|
| Total time: 1.476 [sec]
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: <1257865442-20252-2-git-send-email-mitake@dcl.info.waseda.ac.jp>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
Diffstat (limited to 'tools/perf/builtin-bench.c')
-rw-r--r-- | tools/perf/builtin-bench.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/tools/perf/builtin-bench.c b/tools/perf/builtin-bench.c index c7505eaff84b..90c39baae0de 100644 --- a/tools/perf/builtin-bench.c +++ b/tools/perf/builtin-bench.c | |||
@@ -156,6 +156,10 @@ int cmd_bench(int argc, const char **argv, const char *prefix __used) | |||
156 | if (strcmp(subsystems[i].suites[j].name, argv[1])) | 156 | if (strcmp(subsystems[i].suites[j].name, argv[1])) |
157 | continue; | 157 | continue; |
158 | 158 | ||
159 | if (bench_format == BENCH_FORMAT_DEFAULT) | ||
160 | printf("# Running %s/%s benchmark...\n", | ||
161 | subsystems[i].name, | ||
162 | subsystems[i].suites[j].name); | ||
159 | status = subsystems[i].suites[j].fn(argc - 1, | 163 | status = subsystems[i].suites[j].fn(argc - 1, |
160 | argv + 1, prefix); | 164 | argv + 1, prefix); |
161 | goto end; | 165 | goto end; |