diff options
author | Pekka Enberg <penberg@kernel.org> | 2013-11-12 09:10:10 -0500 |
---|---|---|
committer | Arnaldo Carvalho de Melo <acme@redhat.com> | 2013-11-12 11:00:38 -0500 |
commit | 7f7a4138c66e857cc5bbf6e248a47379765349b5 (patch) | |
tree | 7fcbab47e4162abf5e192af6fd8352949ff56d33 /tools/perf/builtin-trace.c | |
parent | 3fe2130523b2e098085eb4d38cd5b737a97cbee6 (diff) |
perf trace: Change syscall summary duration order
Switch duration order to minimum, average, maximum for the '--summary'
command line option because it's more natural to read.
Signed-off-by: Pekka Enberg <penberg@kernel.org>
Acked-by: David Ahern <dsahern@gmail.com>
Cc: David Ahern <dsahern@gmail.com>
Cc: Ingo Molnar <mingo@redhat.com>
Link: http://lkml.kernel.org/r/1384265410-12344-1-git-send-email-penberg@kernel.org
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
Diffstat (limited to 'tools/perf/builtin-trace.c')
-rw-r--r-- | tools/perf/builtin-trace.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/tools/perf/builtin-trace.c b/tools/perf/builtin-trace.c index 8d6ea8fbf476..8990fbeb8b41 100644 --- a/tools/perf/builtin-trace.c +++ b/tools/perf/builtin-trace.c | |||
@@ -2093,7 +2093,7 @@ static size_t trace__fprintf_threads_header(FILE *fp) | |||
2093 | printed = fprintf(fp, "\n _____________________________________________________________________________\n"); | 2093 | printed = fprintf(fp, "\n _____________________________________________________________________________\n"); |
2094 | printed += fprintf(fp, " __) Summary of events (__\n\n"); | 2094 | printed += fprintf(fp, " __) Summary of events (__\n\n"); |
2095 | printed += fprintf(fp, " [ task - pid ] [ events ] [ ratio ] [ runtime ]\n"); | 2095 | printed += fprintf(fp, " [ task - pid ] [ events ] [ ratio ] [ runtime ]\n"); |
2096 | printed += fprintf(fp, " syscall count min max avg stddev\n"); | 2096 | printed += fprintf(fp, " syscall count min avg max stddev\n"); |
2097 | printed += fprintf(fp, " msec msec msec %%\n"); | 2097 | printed += fprintf(fp, " msec msec msec %%\n"); |
2098 | printed += fprintf(fp, " _____________________________________________________________________________\n\n"); | 2098 | printed += fprintf(fp, " _____________________________________________________________________________\n\n"); |
2099 | 2099 | ||
@@ -2129,8 +2129,8 @@ static size_t thread__dump_stats(struct thread_trace *ttrace, | |||
2129 | sc = &trace->syscalls.table[inode->i]; | 2129 | sc = &trace->syscalls.table[inode->i]; |
2130 | printed += fprintf(fp, "%24s %14s : ", "", sc->name); | 2130 | printed += fprintf(fp, "%24s %14s : ", "", sc->name); |
2131 | printed += fprintf(fp, "%5" PRIu64 " %8.3f %8.3f", | 2131 | printed += fprintf(fp, "%5" PRIu64 " %8.3f %8.3f", |
2132 | n, min, max); | 2132 | n, min, avg); |
2133 | printed += fprintf(fp, " %8.3f %6.2f\n", avg, pct); | 2133 | printed += fprintf(fp, " %8.3f %6.2f\n", max, pct); |
2134 | } | 2134 | } |
2135 | 2135 | ||
2136 | inode = intlist__next(inode); | 2136 | inode = intlist__next(inode); |