Skip to content

Commit 880a784

Browse files
captain5050acmel
authored andcommitted
perf test: Leader sampling shouldn't clear sample period
Add test that a sibling with leader sampling doesn't have its period cleared. Signed-off-by: Ian Rogers <[email protected]> Acked-by: Jiri Olsa <[email protected]> Cc: Adrian Hunter <[email protected]> Cc: Alexander Shishkin <[email protected]> Cc: Alexei Starovoitov <[email protected]> Cc: Andi Kleen <[email protected]> Cc: Andrii Nakryiko <[email protected]> Cc: Athira Jajeev <[email protected]> Cc: Daniel Borkmann <[email protected]> Cc: John Fastabend <[email protected]> Cc: KP Singh <[email protected]> Cc: Mark Rutland <[email protected]> Cc: Martin KaFai Lau <[email protected]> Cc: Namhyung Kim <[email protected]> Cc: Peter Zijlstra <[email protected]> Cc: Song Liu <[email protected]> Cc: Stephane Eranian <[email protected]> Cc: Yonghong Song <[email protected]> Cc: [email protected] Cc: [email protected] Link: http://lore.kernel.org/lkml/[email protected] Signed-off-by: Arnaldo Carvalho de Melo <[email protected]>
1 parent 3b0a18c commit 880a784

File tree

2 files changed

+30
-0
lines changed

2 files changed

+30
-0
lines changed

Diff for: tools/perf/tests/attr/README

+1
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,7 @@ Following tests are defined (with perf commands):
4949
perf record --call-graph fp kill (test-record-graph-fp)
5050
perf record --group -e cycles,instructions kill (test-record-group)
5151
perf record -e '{cycles,instructions}' kill (test-record-group1)
52+
perf record -e '{cycles/period=1/,instructions/period=2/}:S' kill (test-record-group2)
5253
perf record -D kill (test-record-no-delay)
5354
perf record -i kill (test-record-no-inherit)
5455
perf record -n kill (test-record-no-samples)

Diff for: tools/perf/tests/attr/test-record-group2

+29
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
[config]
2+
command = record
3+
args = --no-bpf-event -e '{cycles/period=1234000/,instructions/period=6789000/}:S' kill >/dev/null 2>&1
4+
ret = 1
5+
6+
[event-1:base-record]
7+
fd=1
8+
group_fd=-1
9+
config=0|1
10+
sample_period=1234000
11+
sample_type=87
12+
read_format=12
13+
inherit=0
14+
freq=0
15+
16+
[event-2:base-record]
17+
fd=2
18+
group_fd=1
19+
config=0|1
20+
sample_period=6789000
21+
sample_type=87
22+
read_format=12
23+
disabled=0
24+
inherit=0
25+
mmap=0
26+
comm=0
27+
freq=0
28+
enable_on_exec=0
29+
task=0

0 commit comments

Comments
 (0)