summaryrefslogtreecommitdiff
path: root/tools/bpf/bpftool/prog.c
diff options
context:
space:
mode:
authorGeliang Tang <tanggeliang@kylinos.cn>2024-04-11 13:43:11 +0800
committerMartin KaFai Lau <martin.lau@kernel.org>2024-04-11 11:17:56 -0700
commit68acca6e6f99b1f928a2c05b92bb1c272edb8ae7 (patch)
tree3767bece7681558b7ac282a88a2cc74070123365 /tools/bpf/bpftool/prog.c
parentd75142dbeb2bd1587b9cc19f841578f541275a64 (diff)
downloadlinux-68acca6e6f99b1f928a2c05b92bb1c272edb8ae7.tar.gz
linux-68acca6e6f99b1f928a2c05b92bb1c272edb8ae7.tar.bz2
linux-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 <tanggeliang@kylinos.cn> Link: https://lore.kernel.org/r/ca1dd703b796f6810985418373e750f7068b4186.1712813933.git.tanggeliang@kylinos.cn Signed-off-by: Martin KaFai Lau <martin.lau@kernel.org>
Diffstat (limited to 'tools/bpf/bpftool/prog.c')
0 files changed, 0 insertions, 0 deletions