Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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 <irogers@google.com>
Acked-by: Jiri Olsa <jolsa@redhat.com>
Cc: Adrian Hunter <adrian.hunter@intel.com>
Cc: Alexander Shishkin <alexander.shishkin@linux.intel.com>
Cc: Alexei Starovoitov <ast@kernel.org>
Cc: Andi Kleen <ak@linux.intel.com>
Cc: Andrii Nakryiko <andriin@fb.com>
Cc: Athira Jajeev <atrajeev@linux.vnet.ibm.com>
Cc: Daniel Borkmann <daniel@iogearbox.net>
Cc: John Fastabend <john.fastabend@gmail.com>
Cc: KP Singh <kpsingh@chromium.org>
Cc: Mark Rutland <mark.rutland@arm.com>
Cc: Martin KaFai Lau <kafai@fb.com>
Cc: Namhyung Kim <namhyung@kernel.org>
Cc: Peter Zijlstra <peterz@infradead.org>
Cc: Song Liu <songliubraving@fb.com>
Cc: Stephane Eranian <eranian@google.com>
Cc: Yonghong Song <yhs@fb.com>
Cc: bpf@vger.kernel.org
Cc: netdev@vger.kernel.org
Link: http://lore.kernel.org/lkml/20200912025655.1337192-5-irogers@google.com
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>

authored by

Ian Rogers and committed by
Arnaldo Carvalho de Melo
880a7843 3b0a18c1

+30
+1
tools/perf/tests/attr/README
··· 49 49 perf record --call-graph fp kill (test-record-graph-fp) 50 50 perf record --group -e cycles,instructions kill (test-record-group) 51 51 perf record -e '{cycles,instructions}' kill (test-record-group1) 52 + perf record -e '{cycles/period=1/,instructions/period=2/}:S' kill (test-record-group2) 52 53 perf record -D kill (test-record-no-delay) 53 54 perf record -i kill (test-record-no-inherit) 54 55 perf record -n kill (test-record-no-samples)
+29
tools/perf/tests/attr/test-record-group2
··· 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