diff options
-rw-r--r-- | tools/perf/bench/sched-messaging.c | 6 | ||||
-rw-r--r-- | tools/perf/bench/sched-pipe.c | 6 |
2 files changed, 8 insertions, 4 deletions
diff --git a/tools/perf/bench/sched-messaging.c b/tools/perf/bench/sched-messaging.c index e249eb22b43b..81cee78181fa 100644 --- a/tools/perf/bench/sched-messaging.c +++ b/tools/perf/bench/sched-messaging.c | |||
@@ -320,10 +320,12 @@ int bench_sched_messaging(int argc, const char **argv, | |||
320 | num_groups, num_groups * 2 * num_fds, | 320 | num_groups, num_groups * 2 * num_fds, |
321 | thread_mode ? "threads" : "processes"); | 321 | thread_mode ? "threads" : "processes"); |
322 | printf(" %14s: %lu.%03lu [sec]\n", "Total time", | 322 | printf(" %14s: %lu.%03lu [sec]\n", "Total time", |
323 | diff.tv_sec, diff.tv_usec/1000); | 323 | diff.tv_sec, |
324 | (unsigned long) (diff.tv_usec/1000)); | ||
324 | break; | 325 | break; |
325 | case BENCH_FORMAT_SIMPLE: | 326 | case BENCH_FORMAT_SIMPLE: |
326 | printf("%lu.%03lu\n", diff.tv_sec, diff.tv_usec/1000); | 327 | printf("%lu.%03lu\n", diff.tv_sec, |
328 | (unsigned long) (diff.tv_usec/1000)); | ||
327 | break; | 329 | break; |
328 | default: | 330 | default: |
329 | /* reaching here is something disaster */ | 331 | /* reaching here is something disaster */ |
diff --git a/tools/perf/bench/sched-pipe.c b/tools/perf/bench/sched-pipe.c index 2354f3830b1e..4f77c7c27640 100644 --- a/tools/perf/bench/sched-pipe.c +++ b/tools/perf/bench/sched-pipe.c | |||
@@ -100,7 +100,8 @@ int bench_sched_pipe(int argc, const char **argv, | |||
100 | result_usec += diff.tv_usec; | 100 | result_usec += diff.tv_usec; |
101 | 101 | ||
102 | printf(" %14s: %lu.%03lu [sec]\n\n", "Total time", | 102 | printf(" %14s: %lu.%03lu [sec]\n\n", "Total time", |
103 | diff.tv_sec, diff.tv_usec/1000); | 103 | diff.tv_sec, |
104 | (unsigned long) (diff.tv_usec/1000)); | ||
104 | 105 | ||
105 | printf(" %14lf usecs/op\n", | 106 | printf(" %14lf usecs/op\n", |
106 | (double)result_usec / (double)loops); | 107 | (double)result_usec / (double)loops); |
@@ -111,7 +112,8 @@ int bench_sched_pipe(int argc, const char **argv, | |||
111 | 112 | ||
112 | case BENCH_FORMAT_SIMPLE: | 113 | case BENCH_FORMAT_SIMPLE: |
113 | printf("%lu.%03lu\n", | 114 | printf("%lu.%03lu\n", |
114 | diff.tv_sec, diff.tv_usec / 1000); | 115 | diff.tv_sec, |
116 | (unsigned long) (diff.tv_usec / 1000)); | ||
115 | break; | 117 | break; |
116 | 118 | ||
117 | default: | 119 | default: |