Skip to content

Commit 3fe2130

Browse files
ahunter6acmel
authored andcommitted
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 67c1e4a 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>
1 parent 003824e commit 3fe2130

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

‎tools/perf/tests/sw-clock.c‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
#include "util/cpumap.h"
1010
#include "util/thread_map.h"
1111

12-
#define NR_LOOPS 1000000
12+
#define NR_LOOPS 10000000
1313

1414
/*
1515
* This test will open software clock events (cpu-clock, task-clock)

0 commit comments

Comments
 (0)