perf tests attr: Fix sample_period setup

The final period can differ from what user specifies on command line due
to the perf_event_max_sample_rate sysctl setup.

Thus we can't predixt the sample_period value any more.

Signed-off-by: Jiri Olsa <jolsa@kernel.org>
Cc: David Ahern <dsahern@gmail.com>
Cc: Namhyung Kim <namhyung@kernel.org>
Cc: Peter Zijlstra <a.p.zijlstra@chello.nl>
Cc: Thomas Richter <tmricht@linux.vnet.ibm.com>
Link: http://lkml.kernel.org/r/20170703145030.12903-12-jolsa@kernel.org
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
This commit is contained in:
Jiri Olsa 2017-07-03 16:50:26 +02:00 committed by Arnaldo Carvalho de Melo
parent 6f193400ea
commit 5ff0cf421c
12 changed files with 1 additions and 13 deletions

View file

@ -7,7 +7,7 @@ cpu=*
type=0|1
size=112
config=0
sample_period=4000
sample_period=*
sample_type=263
read_format=0
disabled=1

View file

@ -4,6 +4,5 @@ args = -b kill >/dev/null 2>&1
ret = 1
[event:base-record]
sample_period=4000
sample_type=2311
branch_sample_type=8

View file

@ -4,6 +4,5 @@ args = -j any kill >/dev/null 2>&1
ret = 1
[event:base-record]
sample_period=4000
sample_type=2311
branch_sample_type=8

View file

@ -4,6 +4,5 @@ args = -j any_call kill >/dev/null 2>&1
ret = 1
[event:base-record]
sample_period=4000
sample_type=2311
branch_sample_type=16

View file

@ -4,6 +4,5 @@ args = -j any_ret kill >/dev/null 2>&1
ret = 1
[event:base-record]
sample_period=4000
sample_type=2311
branch_sample_type=32

View file

@ -4,6 +4,5 @@ args = -j hv kill >/dev/null 2>&1
ret = 1
[event:base-record]
sample_period=4000
sample_type=2311
branch_sample_type=8

View file

@ -4,6 +4,5 @@ args = -j ind_call kill >/dev/null 2>&1
ret = 1
[event:base-record]
sample_period=4000
sample_type=2311
branch_sample_type=64

View file

@ -4,6 +4,5 @@ args = -j k kill >/dev/null 2>&1
ret = 1
[event:base-record]
sample_period=4000
sample_type=2311
branch_sample_type=8

View file

@ -4,6 +4,5 @@ args = -j u kill >/dev/null 2>&1
ret = 1
[event:base-record]
sample_period=4000
sample_type=2311
branch_sample_type=8

View file

@ -4,8 +4,6 @@ args = -d kill >/dev/null 2>&1
ret = 1
[event:base-record]
sample_period=4000
# sample_type = PERF_SAMPLE_IP | PERF_SAMPLE_TID | PERF_SAMPLE_TIME |
# PERF_SAMPLE_ADDR | PERF_SAMPLE_PERIOD | PERF_SAMPLE_DATA_SRC
sample_type=33039

View file

@ -4,7 +4,6 @@ args = --no-buffering kill >/dev/null 2>&1
ret = 1
[event:base-record]
sample_period=4000
sample_type=263
watermark=0
wakeup_events=1

View file

@ -4,5 +4,4 @@ args = -R kill >/dev/null 2>&1
ret = 1
[event:base-record]
sample_period=4000
sample_type=1415