Re: [PATCH bpf-next v7 9/9] selftests/bpf: Add tests for cgroup unix socket address hooks

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

 



On 10/3/23 2:30 AM, Daan De Meyer wrote:
These selftests are written in prog_tests style instead of adding
them to the existing test_sock_addr tests. Migrating the existing
sock addr tests to prog_tests style is left for future work. This
commit adds support for testing bind() sockaddr hooks, even though
there's no unix socket sockaddr hook for bind(). We leave this code
intact for when the INET and INET6 tests are migrated in the future
which do support intercepting bind().

Signed-off-by: Daan De Meyer <daan.j.demeyer@xxxxxxxxx>
---
  tools/testing/selftests/bpf/bpf_kfuncs.h      |  14 +
  tools/testing/selftests/bpf/network_helpers.c |  34 +
  tools/testing/selftests/bpf/network_helpers.h |   1 +
  .../selftests/bpf/prog_tests/section_names.c  |  25 +
  .../selftests/bpf/prog_tests/sock_addr.c      | 612 ++++++++++++++++++

The progs/*_unix_prog.c is missing again, probably due to the rename. Please monitor the CI test result:
https://patchwork.kernel.org/project/netdevbpf/patch/20231003093025.475450-2-daan.j.demeyer@xxxxxxxxx/
https://github.com/kernel-patches/bpf/actions/runs/6391271804/job/17346211558

A 'git status' to check for untracked file before 'git format-patch' can help also.





[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