[PATCH bpf-next v2 0/3] selftests/bpf: Fix usdt/multispec failure with arm64/clang20

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



The usdt/multispec test failed with arm64 arch and clang20 compiler.
On arm64, gcc11 and clang20 generates significantly different usdt
probes and such a difference caused clang20 built selftest failed.

Patches 1 and 2 are refactoring and Patch 3 adjusted BPF_USDT_MAX_SPEC_CNT
for arm64/clang which fixed the issue.

Changelogs:
  v1 -> v2:
    - v1: https://lore.kernel.org/bpf/20250613153446.2256725-1-yonghong.song@xxxxxxxxx/
    - The commit description in v1 is not right, it checks sdt's for usdt_100
      while actually it usdt_300 should be checked. Patch 1 has proper
      descriptions.
    - Refactor the code to add a new test ust/multispec_fail where a new
      prog is added and in that new prog BPF_USDT_MAX_SPEC_CNT can overwrite
      the default value in order to pass the test.

Yonghong Song (3):
  selftests/bpf: Refactor the failed assertion to another subtest
  selftests/bpf: Add test_usdt_multispec.inc.h for sharing between
    multiple progs
  selftests/bpf: Add subtest usdt_multispec_fail with adjustable
    BPF_USDT_MAX_SPEC_CNT

 tools/testing/selftests/bpf/prog_tests/usdt.c | 36 +++++++++++++------
 .../selftests/bpf/progs/test_usdt_multispec.c | 28 +--------------
 .../bpf/progs/test_usdt_multispec.inc.h       | 30 ++++++++++++++++
 .../bpf/progs/test_usdt_multispec_fail.c      | 10 ++++++
 4 files changed, 67 insertions(+), 37 deletions(-)
 create mode 100644 tools/testing/selftests/bpf/progs/test_usdt_multispec.inc.h
 create mode 100644 tools/testing/selftests/bpf/progs/test_usdt_multispec_fail.c

-- 
2.47.1





[Index of Archives]     [Linux Samsung SoC]     [Linux Rockchip SoC]     [Linux Actions SoC]     [Linux for Synopsys ARC Processors]     [Linux NFS]     [Linux NILFS]     [Linux USB Devel]     [Video for Linux]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]


  Powered by Linux