diff options
| author | Arnaldo Carvalho de Melo <[email protected]> | 2016-01-07 19:51:58 +0000 |
|---|---|---|
| committer | Arnaldo Carvalho de Melo <[email protected]> | 2016-01-07 19:51:58 +0000 |
| commit | 239849dde350c9f7356974ca4f62171f50a2c86e (patch) | |
| tree | aa84ef9498905b4669681e86dd411cbc55bdf216 /tools/lib/util/find_next_bit.c | |
| parent | perf python: Add missing files to binding link list (diff) | |
| download | kernel-239849dde350c9f7356974ca4f62171f50a2c86e.tar.gz kernel-239849dde350c9f7356974ca4f62171f50a2c86e.zip | |
perf tests: No need to set attr.sample_freq for tracking !PERF_RECORD_SAMPLE
We were asking for a 4kHz sample_freq, making the test fail needlessly
when the system reduced /proc/sys/kernel/perf_event_max_sample_rate
below that.
Before:
# perf test -vv dummy
23: Test using a dummy software event to keep tracking :
--- start ---
test child forked, pid 32421
------------------------------------------------------------
perf_event_attr:
type 1
size 112
config 0x9
{ sample_period, sample_freq } 4000
sample_type IP|TID|ID|PERIOD
<SNIP>
sys_perf_event_open failed, error -22
Unable to open dummy and cycles event
test child finished with -2
---- end ----
Test using a dummy software event to keep tracking: Skip
#
[root@zoo ~]# cat /proc/sys/kernel/perf_event_max_sample_rate
1000
After:
[root@zoo ~]# perf test dummy
23: Test using a dummy software event to keep tracking : Ok
Cc: Adrian Hunter <[email protected]>
Cc: David Ahern <[email protected]>
Cc: Jiri Olsa <[email protected]>
Cc: Namhyung Kim <[email protected]>
Cc: Wang Nan <[email protected]>
Link: http://lkml.kernel.org/n/[email protected]
Signed-off-by: Arnaldo Carvalho de Melo <[email protected]>
Diffstat (limited to 'tools/lib/util/find_next_bit.c')
0 files changed, 0 insertions, 0 deletions
