aboutsummaryrefslogtreecommitdiffstats
path: root/tools/perf/bench/numa.c
diff options
context:
space:
mode:
authorAdrian Hunter <adrian.hunter@intel.com>2013-10-18 08:29:09 -0400
committerArnaldo Carvalho de Melo <acme@redhat.com>2013-10-21 10:19:42 -0400
commit2100f778d44b9c25bd13d38c24a999e2caf1ae3d (patch)
tree7af7566ff46b45db9ac360aab0eb189c0a6f92af /tools/perf/bench/numa.c
parent9402802a416c96b48b2bd9331c070ba2d7550b36 (diff)
perf tools: Fix bench/numa.c for 32-bit build
bench/numa.c: In function 'worker_thread': bench/numa.c:1123:20: error: comparison between signed and unsigned integer expressions [-Werror=sign-compare] bench/numa.c:1171:6: error: format '%lx' expects argument of type 'long unsigned int', but argument 5 has type 'u64' [-Werror=format] cc1: all warnings being treated as errors Signed-off-by: Adrian Hunter <adrian.hunter@intel.com> Cc: David Ahern <dsahern@gmail.com> Cc: Frederic Weisbecker <fweisbec@gmail.com> Cc: Ingo Molnar <mingo@redhat.com> Cc: Jiri Olsa <jolsa@redhat.com> Cc: Mike Galbraith <efault@gmx.de> Cc: Namhyung Kim <namhyung@gmail.com> Cc: Paul Mackerras <paulus@samba.org> Cc: Peter Zijlstra <a.p.zijlstra@chello.nl> Cc: Stephane Eranian <eranian@google.com> Link: http://lkml.kernel.org/r/1382099356-4918-13-git-send-email-adrian.hunter@intel.com Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
Diffstat (limited to 'tools/perf/bench/numa.c')
-rw-r--r--tools/perf/bench/numa.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/tools/perf/bench/numa.c b/tools/perf/bench/numa.c
index 64fa01cfc34d..d4c83c60b9b2 100644
--- a/tools/perf/bench/numa.c
+++ b/tools/perf/bench/numa.c
@@ -1120,7 +1120,7 @@ static void *worker_thread(void *__tdata)
1120 /* Check whether our max runtime timed out: */ 1120 /* Check whether our max runtime timed out: */
1121 if (g->p.nr_secs) { 1121 if (g->p.nr_secs) {
1122 timersub(&stop, &start0, &diff); 1122 timersub(&stop, &start0, &diff);
1123 if (diff.tv_sec >= g->p.nr_secs) { 1123 if ((u32)diff.tv_sec >= g->p.nr_secs) {
1124 g->stop_work = true; 1124 g->stop_work = true;
1125 break; 1125 break;
1126 } 1126 }
@@ -1167,7 +1167,7 @@ static void *worker_thread(void *__tdata)
1167 runtime_ns_max += diff.tv_usec * 1000; 1167 runtime_ns_max += diff.tv_usec * 1000;
1168 1168
1169 if (details >= 0) { 1169 if (details >= 0) {
1170 printf(" #%2d / %2d: %14.2lf nsecs/op [val: %016lx]\n", 1170 printf(" #%2d / %2d: %14.2lf nsecs/op [val: %016"PRIx64"]\n",
1171 process_nr, thread_nr, runtime_ns_max / bytes_done, val); 1171 process_nr, thread_nr, runtime_ns_max / bytes_done, val);
1172 } 1172 }
1173 fflush(stdout); 1173 fflush(stdout);