Re: [bpf-next 00/10] samples/bpf: modernize BPF functionality test programs

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

 



On Sat, Jan 14, 2023 at 11:16 PM Daniel T. Lee <danieltimlee@xxxxxxxxx> wrote:
>
> Currently, there are many programs under samples/bpf to test the
> various functionality of BPF that have been developed for a long time.
> However, the kernel (BPF) has changed a lot compared to the 2016 when
> some of these test programs were first introduced.
>
> Therefore, some of these programs use the deprecated function of BPF,
> and some programs no longer work normally due to changes in the API.
>
> To list some of the kernel changes that this patch set is focusing on,
> - legacy BPF map declaration syntax support had been dropped [1]
> - bpf_trace_printk() always append newline at the end [2]
> - deprecated styled BPF section header (bpf_load style) [3]
> - urandom_read tracepoint is removed (used for testing overhead) [4]
> - ping sends packet with SOCK_DGRAM instead of SOCK_RAW [5]*
> - use "vmlinux.h" instead of including individual headers
>
> In addition to this, this patchset tries to modernize the existing
> testing scripts a bit. And for network-related testing programs,
> a separate header file was created and applied. (To use the
> Endianness conversion function from xdp_sample and bunch of constants)

Nice set of cleanups. Applied.
As a follow up could you convert some of them to proper selftests/bpf ?
Unfortunately samples/bpf will keep bit rotting despite your herculean efforts.



[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