linux/tools/perf/tests
Arnaldo Carvalho de Melo 5243ba76a5 perf test: Reduce the sample_freq for the 'object code reading' test
Using 4 kHz is not necessary and sometimes is more than what was
auto-tuned:

  # dmesg | grep max_sample_rate | tail -2
  [ 2499.144373] perf interrupt took too long (2501 > 2500), lowering kernel.perf_event_max_sample_rate to 50000
  [ 3592.413606] perf interrupt took too long (5069 > 5000), lowering kernel.perf_event_max_sample_rate to 25000

Simulating a auto-tune of 2000 we make the test fail, as reported
by Steven Noonan for one of his machines, so reduce it to 500 HZ,
it is enough to get a good number of samples for this test:

  # perf test -v 21 2>&1  | grep '^Reading object code for memory address' | tee /tmp/out | tail -5
  Reading object code for memory address: 0x479f40
  Reading object code for memory address: 0x7f29b7eea80d
  Reading object code for memory address: 0x7f29b7eea80d
  Reading object code for memory address: 0x7f29b7eea800
  Reading object code for memory address: 0xffffffff813b2f23
  [root@jouet ~]# wc -l /tmp/out
  40 /tmp/out
  [root@jouet ~]#

For systems that auto-tune below that, the previous patches will tell the
user what is happening so that he may either ignore the result of this test or
bump /proc/sys/kernel/perf_event_max_sample_rate.

Cc: Adrian Hunter <adrian.hunter@intel.com>
Cc: Jiri Olsa <jolsa@kernel.org>
Cc: Namhyung Kim <namhyung@kernel.org>
Cc: Steven Noonan <steven@uplinklabs.net>
Cc: Wang Nan <wangnan0@huawei.com>
Link: http://lkml.kernel.org/n/tip-6kufyy1iprdfzrbtuqgxir70@git.kernel.org
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
2016-02-19 19:12:44 -03:00
..
attr
.gitignore
attr.c
attr.py
bp_signal_overflow.c
bp_signal.c perf tests: Fix build on older systems where 'signal' is reserved 2016-02-15 17:33:26 -03:00
bpf-script-example.c
bpf-script-test-kbuild.c
bpf-script-test-prologue.c
bpf-script-test-relocation.c
bpf.c
Build
builtin-test.c
code-reading.c perf test: Reduce the sample_freq for the 'object code reading' test 2016-02-19 19:12:44 -03:00
cpumap.c
dso-data.c
dwarf-unwind.c
event_update.c
evsel-roundtrip-name.c
evsel-tp-sched.c
fdarray.c
hists_common.c
hists_common.h
hists_cumulate.c perf hists: Introduce perf_evsel__output_resort function 2016-02-03 11:13:11 -03:00
hists_filter.c perf hists: Introduce perf_evsel__output_resort function 2016-02-03 11:13:11 -03:00
hists_link.c
hists_output.c perf hists: Introduce perf_evsel__output_resort function 2016-02-03 11:13:11 -03:00
keep-tracking.c
kmod-path.c
llvm.c
llvm.h
make perf build: Add libcrypto feature detection 2016-02-05 09:46:45 -03:00
mmap-basic.c
mmap-thread-lookup.c
openat-syscall-all-cpus.c
openat-syscall-tp-fields.c
openat-syscall.c
parse-events.c perf tools: Use perf_event_terms__purge() for non-malloced terms 2016-02-12 16:53:22 -03:00
parse-no-sample-id-all.c
perf-record.c
perf-targz-src-pkg
pmu.c
python-use.c
sample-parsing.c
stat.c
sw-clock.c
switch-tracking.c
task-exit.c
tests.h
thread-map.c
thread-mg-share.c
topology.c
vmlinux-kallsyms.c