Re: [PATCH bpf-next 2/2] selftests/bpf: Add testcase where 7th argment is struct

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

 




On 2024/4/2 22:02, Daniel Borkmann wrote:
On 3/31/24 11:24 AM, Pu Lehui wrote:
From: Pu Lehui <pulehui@xxxxxxxxxx>

Add testcase where 7th argument is struct for architectures with 8
argument registers, and increase the complexity of the struct.

Signed-off-by: Pu Lehui <pulehui@xxxxxxxxxx>
---
  .../selftests/bpf/bpf_testmod/bpf_testmod.c   | 19 ++++++++++
  .../selftests/bpf/prog_tests/tracing_struct.c | 13 +++++++
  .../selftests/bpf/progs/tracing_struct.c      | 35 +++++++++++++++++++
  3 files changed, 67 insertions(+)

The last test from this patch fails BPF CI, ptal :

https://github.com/kernel-patches/bpf/actions/runs/8497262674/job/23275690303
https://github.com/kernel-patches/bpf/actions/runs/8497262674/job/23275690364

Notice: Success: 519/3592, Skipped: 53, Failed: 1
Error: #391 tracing_struct
   Error: #391 tracing_struct
   test_fentry:PASS:tracing_struct__open_and_load 0 nsec
  libbpf: prog 'test_struct_arg_16': failed to attach: ERROR: strerror_r(-524)=22
   libbpf: prog 'test_struct_arg_16': failed to auto-attach: -524
  test_fentry:FAIL:tracing_struct__attach unexpected error: -524 (errno 524)
Test Results:
              bpftool: PASS
           test_progs: FAIL (returned 1)
Error: Process completed with exit code 1.

Thanks for your reminder. aarch64 does not yet support bpf trampoline with more than 8 parameters. I will add tracing_struct to DENYLIST.aarch64.





[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