perf test attr: Fix wrong size expectation for events

Although config4 and tee sample_simd_* fields has been added into
'struct perf_event_attr', the size expectation for the struct hasn't
been adjusted. This hasn't been noticed, since the testcase's return
value has been ignored after rewriting the testcase to python until
previous commit.

Fix that.

Fixes: eb89aef367 ("perf headers: Sync perf_event.h/perf_regs.h with the kernel headers")
Fixes: 80cdf20811 ("tools headers UAPI: Sync linux/perf_event.h with the kernel sources")
Signed-off-by: Michael Petlan <mpetlan@redhat.com>
Acked-by: Namhyung Kim <namhyung@kernel.org>
Tested-by: Arnaldo Carvalho de Melo <acme@redhat.com>
[ Updated it to take into account 80cdf20811 (sample_simd_* fields) 144 -> 176 ]
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
This commit is contained in:
Michael Petlan 2026-09-25 00:30:27 +02:00 committed by Arnaldo Carvalho de Melo
parent f8596112cb
commit 5c52bb6584
4 changed files with 4 additions and 4 deletions

View File

@ -5,7 +5,7 @@ group_fd=-1
flags=0|8
cpu=*
type=0|1
size=136
size=176
config=0|1
sample_period=*
sample_type=263

View File

@ -5,7 +5,7 @@ group_fd=-1
flags=0|8
cpu=*
type=0
size=136
size=176
config=0
sample_period=0
sample_type=65536

View File

@ -7,7 +7,7 @@ cpu=*
pid=-1
flags=8
type=1
size=136
size=176
config=9
sample_period=1
# PERF_SAMPLE_IP | PERF_SAMPLE_TID | PERF_SAMPLE_TIME |

View File

@ -10,7 +10,7 @@ cpu=0
pid=-1
flags=8
type=1
size=136
size=176
config=9
sample_period=4000
# PERF_SAMPLE_IP | PERF_SAMPLE_TID | PERF_SAMPLE_TIME |