Skip to content

Commit

Permalink
perf tests: Compensate lower sample freq with longer test loop
Browse files Browse the repository at this point in the history
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 <[email protected]>
Cc: David Ahern <[email protected]>
Cc: Frederic Weisbecker <[email protected]>
Cc: Jiri Olsa <[email protected]>
Cc: Mike Galbraith <[email protected]>
Cc: Namhyung Kim <[email protected]>
Cc: Paul Mackerras <[email protected]>
Cc: Peter Zijlstra <[email protected]>
Cc: Stephane Eranian <[email protected]>
Link: http://lkml.kernel.org/r/[email protected]
Signed-off-by: Arnaldo Carvalho de Melo <[email protected]>
  • Loading branch information
ahunter6 authored and acmel committed Nov 12, 2013
1 parent 003824e commit 3fe2130
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tools/perf/tests/sw-clock.c
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 3fe2130

Please sign in to comment.