aboutsummaryrefslogtreecommitdiffstats
path: root/tools/bpf/bpftool/prog.c
diff options
context:
space:
mode:
authorGeliang Tang <[email protected]>2024-04-11 05:43:11 +0000
committerMartin KaFai Lau <[email protected]>2024-04-11 18:17:56 +0000
commit68acca6e6f99b1f928a2c05b92bb1c272edb8ae7 (patch)
tree3767bece7681558b7ac282a88a2cc74070123365 /tools/bpf/bpftool/prog.c
parentselftests/bpf: Fix umount cgroup2 error in test_sockmap (diff)
downloadkernel-68acca6e6f99b1f928a2c05b92bb1c272edb8ae7.tar.gz
kernel-68acca6e6f99b1f928a2c05b92bb1c272edb8ae7.zip
selftests/bpf: Add struct send_recv_arg
Avoid setting total_bytes and stop as global variables, this patch adds a new struct named send_recv_arg to pass arguments between threads. Put these two variables together with fd into this struct and pass it to server thread, so that server thread can access these two variables without setting them as global ones. Signed-off-by: Geliang Tang <[email protected]> Link: https://lore.kernel.org/r/ca1dd703b796f6810985418373e750f7068b4186.1712813933.git.tanggeliang@kylinos.cn Signed-off-by: Martin KaFai Lau <[email protected]>
Diffstat (limited to 'tools/bpf/bpftool/prog.c')
0 files changed, 0 insertions, 0 deletions