diff options
author | Adrian Hunter <adrian.hunter@intel.com> | 2013-11-12 11:45:21 -0300 |
---|---|---|
committer | Arnaldo Carvalho de Melo <acme@redhat.com> | 2013-11-12 13:00:37 -0300 |
commit | 3fe2130523b2e098085eb4d38cd5b737a97cbee6 (patch) | |
tree | 4d76738c18f14ed8f121f4ef11a726b9ef8fc8a7 /tools | |
parent | 003824e8c27eeb8d3eec54cfab5845ec01ab532e (diff) | |
download | linux-3fe2130523b2e098085eb4d38cd5b737a97cbee6.tar.gz linux-3fe2130523b2e098085eb4d38cd5b737a97cbee6.tar.bz2 linux-3fe2130523b2e098085eb4d38cd5b737a97cbee6.zip |
perf tests: Compensate lower sample freq with longer test loop
Doesn't work for me:
./perf test -v 19
19: Test software clock events have valid period values :
--- start ---
mmap size 528384B
mmap size 528384B
All (0) samples have period value of 1!
---- end ----
Test software clock events have valid period values: FAILED!
Compensate the lower freq introduced in 67c1e4a53b17 with a longer loop,
Signed-off-by: Adrian Hunter <adrian.hunter@intel.com>
Cc: David Ahern <dsahern@gmail.com>
Cc: Frederic Weisbecker <fweisbec@gmail.com>
Cc: Jiri Olsa <jolsa@redhat.com>
Cc: Mike Galbraith <efault@gmx.de>
Cc: Namhyung Kim <namhyung@kernel.org>
Cc: Paul Mackerras <paulus@samba.org>
Cc: Peter Zijlstra <peterz@infradead.org>
Cc: Stephane Eranian <eranian@google.com>
Link: http://lkml.kernel.org/r/5281D3B8.2030104@intel.com
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
Diffstat (limited to 'tools')
-rw-r--r-- | tools/perf/tests/sw-clock.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/perf/tests/sw-clock.c b/tools/perf/tests/sw-clock.c index 93a7139ff5f7..6664a7cd828c 100644 --- a/tools/perf/tests/sw-clock.c +++ b/tools/perf/tests/sw-clock.c @@ -9,7 +9,7 @@ #include "util/cpumap.h" #include "util/thread_map.h" -#define NR_LOOPS 1000000 +#define NR_LOOPS 10000000 /* * This test will open software clock events (cpu-clock, task-clock) |