aboutsummaryrefslogtreecommitdiffstats
path: root/tools/lib/bpf/bpf_helpers.h
diff options
context:
space:
mode:
authorJordan Rife <[email protected]>2024-04-29 21:45:22 +0000
committerMartin KaFai Lau <[email protected]>2024-05-02 22:23:31 +0000
commit524e05ac4e14bb50b4f442e1fe88540abc9b72fd (patch)
tree765072b222024b6ccc7e4569d273de808bfa1195 /tools/lib/bpf/bpf_helpers.h
parentselftests/bpf: Move IPv4 and IPv6 sockaddr test cases (diff)
downloadkernel-524e05ac4e14bb50b4f442e1fe88540abc9b72fd.tar.gz
kernel-524e05ac4e14bb50b4f442e1fe88540abc9b72fd.zip
selftests/bpf: Make sock configurable for each test case
In order to reuse the same test code for both socket system calls (e.g. connect(), bind(), etc.) and kernel socket functions (e.g. kernel_connect(), kernel_bind(), etc.), this patch introduces the "ops" field to sock_addr_test. This field allows each test cases to configure the set of functions used in the test case to create, manipulate, and tear down a socket. Signed-off-by: Jordan Rife <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Martin KaFai Lau <[email protected]>
Diffstat (limited to 'tools/lib/bpf/bpf_helpers.h')
0 files changed, 0 insertions, 0 deletions