diff options
author | Michal Luczaj <[email protected]> | 2024-07-31 12:01:31 +0200 |
---|---|---|
committer | Martin KaFai Lau <[email protected]> | 2024-08-19 16:43:40 -0700 |
commit | 86149b4f5a2d535279096946b6ef8d41911a9b5a (patch) | |
tree | dda0d6606e0189128243ae9cfdef4f7c25a2b584 /tools/perf/scripts/python/syscall-counts-by-pid.py | |
parent | c9c70b28face7b156960f53649bec9ace5601b85 (diff) |
selftests/bpf: Introduce __attribute__((cleanup)) in create_pair()
Rewrite function to have (unneeded) socket descriptors automatically
close()d when leaving the scope. Make sure the "ownership" of fds is
correctly passed via take_fd(); i.e. descriptor returned to caller will
remain valid.
Reviewed-by: Jakub Sitnicki <[email protected]>
Tested-by: Jakub Sitnicki <[email protected]>
Suggested-by: Jakub Sitnicki <[email protected]>
Signed-off-by: Michal Luczaj <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Martin KaFai Lau <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/syscall-counts-by-pid.py')
0 files changed, 0 insertions, 0 deletions