mirror of
https://github.com/raspberrypi/linux.git
synced 2025-12-21 01:02:09 +00:00
Since PERF_FORMAT_LOST was added, the default read format has that bit
set, so add it to the tests. Keep the old value as well so that the test
still passes on older kernels.
This fixes the following failure:
expected read_format=0|4, got 20
FAILED './tests/attr/test-record-C0' - match failure
Fixes: 85b425f31c8866e0 ("perf record: Set PERF_FORMAT_LOST by default")
Signed-off-by: James Clark <james.clark@arm.com>
Acked-by: Namhyung Kim <namhyung@kernel.org>
Cc: Adrian Hunter <adrian.hunter@intel.com>
Cc: Alexander Shishkin <alexander.shishkin@linux.intel.com>
Cc: Ingo Molnar <mingo@redhat.com>
Cc: Jiri Olsa <jolsa@kernel.org>
Cc: Mark Rutland <mark.rutland@arm.com>
Cc: Namhyung Kim <namhyung@kernel.org>
Cc: Peter Zijlstra <peterz@infradead.org>
Link: https://lore.kernel.org/r/20221012094633.21669-2-james.clark@arm.com
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
42 lines
570 B
Plaintext
42 lines
570 B
Plaintext
[event]
|
|
fd=1
|
|
group_fd=-1
|
|
# 0 or PERF_FLAG_FD_CLOEXEC flag
|
|
flags=0|8
|
|
cpu=*
|
|
type=0|1
|
|
size=128
|
|
config=0
|
|
sample_period=*
|
|
sample_type=263
|
|
read_format=0|4|20
|
|
disabled=1
|
|
inherit=1
|
|
pinned=0
|
|
exclusive=0
|
|
exclude_user=0
|
|
exclude_kernel=0|1
|
|
exclude_hv=0|1
|
|
exclude_idle=0
|
|
mmap=1
|
|
comm=1
|
|
freq=1
|
|
inherit_stat=0
|
|
enable_on_exec=1
|
|
task=1
|
|
watermark=0
|
|
precise_ip=0|1|2|3
|
|
mmap_data=0
|
|
sample_id_all=1
|
|
exclude_host=0|1
|
|
exclude_guest=0|1
|
|
exclude_callchain_kernel=0
|
|
exclude_callchain_user=0
|
|
wakeup_events=0
|
|
bp_type=0
|
|
config1=0
|
|
config2=0
|
|
branch_sample_type=0
|
|
sample_regs_user=0
|
|
sample_stack_user=0
|