perf tests attr: Fix sample_period setup
authorJiri Olsa <jolsa@kernel.org>
Mon, 3 Jul 2017 14:50:26 +0000 (16:50 +0200)
committerArnaldo Carvalho de Melo <acme@redhat.com>
Wed, 19 Jul 2017 02:14:20 +0000 (23:14 -0300)
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>
12 files changed:
tools/perf/tests/attr/base-record
tools/perf/tests/attr/test-record-branch-any
tools/perf/tests/attr/test-record-branch-filter-any
tools/perf/tests/attr/test-record-branch-filter-any_call
tools/perf/tests/attr/test-record-branch-filter-any_ret
tools/perf/tests/attr/test-record-branch-filter-hv
tools/perf/tests/attr/test-record-branch-filter-ind_call
tools/perf/tests/attr/test-record-branch-filter-k
tools/perf/tests/attr/test-record-branch-filter-u
tools/perf/tests/attr/test-record-data
tools/perf/tests/attr/test-record-no-buffering
tools/perf/tests/attr/test-record-raw

index cdf3adf7d389ac12875a9896e1699ca60c1baebc..a9cb72b8fbb1d459aad9003bd9faa1e972870d2e 100644 (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
index a2fe031e6f8773502d981ceb5cf6bf9f493499a7..81f839e2fad019ca43bb5c6be779ab26b79a0afd 100644 (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
index 7df6a489c9ac9b26784ff7470a95d7f72ca7914e..357421f4dfcedd07c7e9a98055f2145b8c3c987d 100644 (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
index 6c93e07da61c3cf74244e805d471fc42c3510b52..dbc55f2ab845843a42272374bddfbc256cf58b7f 100644 (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
index daf8b83e257fcf72a3d943eace35e2121fddbc20..a0824ff8e131d2e38e2ebd2d94bf07f9f7044878 100644 (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
index fbf491da4f33bde0e06eb679237130be054b1e36..f34d6f120181e40aef44ec175e8dd4af4826b4d8 100644 (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
index c63cc50d22697e68bfbc07016761c7459441bf27..b86a352322487e78e362c9cc74af15946f91c247 100644 (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
index e0f2f09ff07b27e38368f797d81c85090c6e1643..d3fbc5e1858a649611ad4d1541bb9f159d7f0e5a 100644 (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
index 6cd36e01b6fc72cc444f614ef115c6d2b4648d7a..a318f0dda173669cbf3d07de3b4b1c3b145b8ba9 100644 (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
index 53c8890f6e5f0681ac36928f68f8a8add4845f12..a9cf2233b0cef33f5decbdef859823c7339a2455 100644 (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
index 5bf349aeeb69086bbdc8618c5eeaab9cd39ee901..aa3956d8fe207f7ee28bfa3ebbc03511730212e4 100644 (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
index 3b89f99c240bc45f4e700aa286b052309948e9d1..a188a614a44c5827a9ed373ac03129aa25e42b3c 100644 (file)
@@ -4,5 +4,4 @@ args    = -R kill >/dev/null 2>&1
 ret     = 1
 
 [event:base-record]
-sample_period=4000
 sample_type=1415