Re: [PATCH bpf-next v1] selftests/bpf: Clean up sys_nanosleep uses

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

 





On 8/5/22 10:14 AM, Joanne Koong wrote:
This patch cleans up a few things:

   * dynptr_fail.c:
     There is no sys_nanosleep tracepoint. dynptr_fail only tests
     that the prog load fails, so just SEC("?raw_tp") suffices here.

   * test_bpf_cookie:
     There is no sys_nanosleep kprobe. The prog is loaded in
     userspace through bpf_program__attach_kprobe_opts passing in
     SYS_NANOSLEEP_KPROBE_NAME, so just SEC("k{ret}probe") suffices here.

   * test_helper_restricted:
     There is no sys_nanosleep kprobe. test_helper_restricted only tests
     that the prog load fails, so just SEC("?kprobe")( suffices here.

There are no functional changes.

Signed-off-by: Joanne Koong <joannelkoong@xxxxxxxxx>
Suggested-by: Andrii Nakryiko <andrii@xxxxxxxxxx>

Acked-by: Yonghong Song <yhs@xxxxxx>



[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