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

perf tests: Add attr record group sampling test

Adding test to validate perf_event_attr data for command:

'record -e '{cycles,cache-misses}:S'

Signed-off-by: Jiri Olsa <jolsa@redhat.com>
Acked-by: Namhyung Kim <namhyung@kernel.org>
Cc: Corey Ashford <cjashfor@linux.vnet.ibm.com>
Cc: Frederic Weisbecker <fweisbec@gmail.com>
Cc: Namhyung Kim <namhyung@kernel.org>
Cc: Paul Mackerras <paulus@samba.org>
Cc: Peter Zijlstra <a.p.zijlstra@chello.nl>
Link: http://lkml.kernel.org/n/tip-9eppxvhkly6gse5ximudckrp@git.kernel.org
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>

authored by

Jiri Olsa and committed by
Arnaldo Carvalho de Melo
8404db63 3c176311

+36
+36
tools/perf/tests/attr/test-record-group-sampling
··· 1 + [config] 2 + command = record 3 + args = -e '{cycles,cache-misses}:S' kill >/dev/null 2>&1 4 + 5 + [event-1:base-record] 6 + fd=1 7 + group_fd=-1 8 + sample_type=343 9 + read_format=12 10 + inherit=0 11 + 12 + [event-2:base-record] 13 + fd=2 14 + group_fd=1 15 + 16 + # cache-misses 17 + type=0 18 + config=3 19 + 20 + # default | PERF_SAMPLE_READ 21 + sample_type=343 22 + 23 + # PERF_FORMAT_ID | PERF_FORMAT_GROUP 24 + read_format=12 25 + 26 + mmap=0 27 + comm=0 28 + enable_on_exec=0 29 + disabled=0 30 + 31 + # inherit is disabled for group sampling 32 + inherit=0 33 + 34 + # sampling disabled 35 + sample_freq=0 36 + sample_period=0