Re: [PATCH] bpf: check mem for dynptr type

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

 



On Mon, 2024-03-04 at 13:02 +0000, Haojian Zhuang wrote:
[...]

> Yes, I'm referring to bpf_user_ringbuf_drain() helper function.
> 
> Yes, I should extend bpf/progs/user_ringbuf_success.c. And it could be
> loaded by bpf/prog_tests/user_ringbuf.c.

Before doing so, could you please share example you have in mind?

> But I failed to find the binary of user_ringbuf.c after bpf test cases
> built. And there're no binaries for the test cases in bpf/prog_tests
> directory. How to make use of these test cases? I failed to find
> documents on it. Could you help to share any tips to me? Thanks

The binary that runs tests is called "test_progs" and is compiled
using target "test_progs" under "tools/testing/selftests/bpf" directory.
Specific tests could be run using commands like:
- "./test_progs -a user_ringbuf" (to run all subtests in the group);
- "./test_progs -a user_ringbuf/test_user_ringbuf_loop"
  (to run one subtest from the group).

I have an old writeup on setting up local testing environment,
if you need it I can update and share it.





[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