diff options
| author | Geliang Tang <[email protected]> | 2024-04-11 13:43:11 +0800 |
|---|---|---|
| committer | Martin KaFai Lau <[email protected]> | 2024-04-11 11:17:56 -0700 |
| commit | 68acca6e6f99b1f928a2c05b92bb1c272edb8ae7 (patch) | |
| tree | 3767bece7681558b7ac282a88a2cc74070123365 /tools/perf/scripts/python/failed-syscalls-by-pid.py | |
| parent | d75142dbeb2bd1587b9cc19f841578f541275a64 (diff) | |
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/perf/scripts/python/failed-syscalls-by-pid.py')
0 files changed, 0 insertions, 0 deletions