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

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

 



On Mon, Mar 04, 2024 at 03:13:29PM +0200, Eduard Zingerman wrote:
> 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?
> 

Sure. My test case is in the link (https://github.com/hzhuang1/linux/blob/bpf02/tools/testing/selftests/bpf/progs/test_crypto_kern.c).

> > 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).
> 

Thanks. I'll follow this instruction.

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

It's better if you can share it.

Best Regards
Haojian




[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