Skip to content

selftests/bpf: Fix a few issues in arena_spin_lock

Ilya Leoshkevich bpf netdev 1 version Applied

Status from this message: This series was applied to bpf/bpf-next.git (master)

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest3 patches 8 repliesApplied 3/3

Patches in v1 All 3 applied

#Subject and filesSizeRepliesApplied
1/3selftests/bpf: Fix arena_spin_lock.c build dependencytools/testing/selftests/bpf/progs/bpf_arena_spin_lock.h+0 -00 repliesApplied
2/3selftests/bpf: Fix arena_spin_lock on systems with less than 16 CPUstools/testing/selftests/bpf/prog_tests/arena_spin_lock.c+8 -60 repliesApplied
3/3selftests/bpf: Fix endianness issue in __qspinlock declarationtools/testing/selftests/bpf/progs/bpf_arena_spin_lock.h+12 -00 repliesApplied

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [PATCH 0/3] selftests/bpf: Fix a few issues in arena_spin_lock

Hi,

I tried running the arena_spin_lock test on s390x and ran into the following issues:

* Changing the header file does not lead to rebuilding the test.
* The checked for number of CPUs and the actually required number of CPUs are different.
* Endianness issue in spinlock definition.

This series fixes all three.

Best regards,
Ilya

Ilya Leoshkevich (3):
selftests/bpf: Fix arena_spin_lock.c build dependency selftests/bpf: Fix arena_spin_lock on systems with less than 16 CPUs selftests/bpf: Fix endianness issue in __qspinlock declaration

 .../selftests/bpf/prog_tests/arena_spin_lock.c     | 14 ++++++++------
 .../bpf/{ => progs}/bpf_arena_spin_lock.h          | 12 ++++++++++++
 2 files changed, 20 insertions(+), 6 deletions(-)
 rename tools/testing/selftests/bpf/{ => progs}/bpf_arena_spin_lock.h (98%)
Signature · 1 line
2.49.0