Skip to content

Commit 5ff0cf4

Browse files
olsajiriacmel
authored andcommitted
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>
1 parent 6f19340 commit 5ff0cf4

12 files changed

Lines changed: 1 addition & 13 deletions

‎tools/perf/tests/attr/base-record‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ cpu=*
77
type=0|1
88
size=112
99
config=0
10-
sample_period=4000
10+
sample_period=*
1111
sample_type=263
1212
read_format=0
1313
disabled=1

‎tools/perf/tests/attr/test-record-branch-any‎

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,5 @@ args = -b kill >/dev/null 2>&1
44
ret = 1
55

66
[event:base-record]
7-
sample_period=4000
87
sample_type=2311
98
branch_sample_type=8

‎tools/perf/tests/attr/test-record-branch-filter-any‎

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,5 @@ args = -j any kill >/dev/null 2>&1
44
ret = 1
55

66
[event:base-record]
7-
sample_period=4000
87
sample_type=2311
98
branch_sample_type=8

‎tools/perf/tests/attr/test-record-branch-filter-any_call‎

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,5 @@ args = -j any_call kill >/dev/null 2>&1
44
ret = 1
55

66
[event:base-record]
7-
sample_period=4000
87
sample_type=2311
98
branch_sample_type=16

‎tools/perf/tests/attr/test-record-branch-filter-any_ret‎

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,5 @@ args = -j any_ret kill >/dev/null 2>&1
44
ret = 1
55

66
[event:base-record]
7-
sample_period=4000
87
sample_type=2311
98
branch_sample_type=32

‎tools/perf/tests/attr/test-record-branch-filter-hv‎

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,5 @@ args = -j hv kill >/dev/null 2>&1
44
ret = 1
55

66
[event:base-record]
7-
sample_period=4000
87
sample_type=2311
98
branch_sample_type=8

‎tools/perf/tests/attr/test-record-branch-filter-ind_call‎

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,5 @@ args = -j ind_call kill >/dev/null 2>&1
44
ret = 1
55

66
[event:base-record]
7-
sample_period=4000
87
sample_type=2311
98
branch_sample_type=64

‎tools/perf/tests/attr/test-record-branch-filter-k‎

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,5 @@ args = -j k kill >/dev/null 2>&1
44
ret = 1
55

66
[event:base-record]
7-
sample_period=4000
87
sample_type=2311
98
branch_sample_type=8

‎tools/perf/tests/attr/test-record-branch-filter-u‎

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,5 @@ args = -j u kill >/dev/null 2>&1
44
ret = 1
55

66
[event:base-record]
7-
sample_period=4000
87
sample_type=2311
98
branch_sample_type=8

‎tools/perf/tests/attr/test-record-data‎

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,6 @@ args = -d kill >/dev/null 2>&1
44
ret = 1
55

66
[event:base-record]
7-
sample_period=4000
8-
97
# sample_type = PERF_SAMPLE_IP | PERF_SAMPLE_TID | PERF_SAMPLE_TIME |
108
# PERF_SAMPLE_ADDR | PERF_SAMPLE_PERIOD | PERF_SAMPLE_DATA_SRC
119
sample_type=33039

0 commit comments

Comments
 (0)