diff options
| author | Thomas Richter <[email protected]> | 2025-03-24 15:27:56 +0000 |
|---|---|---|
| committer | Namhyung Kim <[email protected]> | 2025-03-24 20:55:26 +0000 |
| commit | 216d567610f03b0c6efba3fc452797e09d9503e9 (patch) | |
| tree | 86e9860b53d2017f7de88ec1c9f64a45720f920e /scripts/extract-fwblobs | |
| parent | perf tools: annotate asm_pure_loop.S (diff) | |
| download | kernel-216d567610f03b0c6efba3fc452797e09d9503e9.tar.gz kernel-216d567610f03b0c6efba3fc452797e09d9503e9.zip | |
perf trace: Fix wrong size to bpf_map__update_elem call
In linux-next
commit c760174401f6 ("perf cpumap: Reduce cpu size from int to int16_t")
causes the perf tests 100 126 to fail on s390:
Output before:
# ./perf test 100
100: perf trace BTF general tests : FAILED!
#
The root cause is the change from int to int16_t for the
cpu maps. The size of the CPU key value pair changes from
four bytes to two bytes. However a two byte key size is
not supported for bpf_map__update_elem().
Note: validate_map_op() in libbpf.c emits warning
libbpf: map '__augmented_syscalls__': \
unexpected key size 2 provided, expected 4
when key size is set to int16_t.
Therefore change to variable size back to 4 bytes for
invocation of bpf_map__update_elem().
Output after:
# ./perf test 100
100: perf trace BTF general tests : Ok
#
Fixes: c760174401f6 ("perf cpumap: Reduce cpu size from int to int16_t")
Signed-off-by: Thomas Richter <[email protected]>
Reviewed-by: Ian Rogers <[email protected]>
Acked-by: Howard Chu <[email protected]>
Cc: James Clark <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Namhyung Kim <[email protected]>
Diffstat (limited to 'scripts/extract-fwblobs')
0 files changed, 0 insertions, 0 deletions
