diff options
| author | Andrii Nakryiko <[email protected]> | 2020-08-18 14:33:52 -0700 |
|---|---|---|
| committer | Alexei Starovoitov <[email protected]> | 2020-08-18 17:16:15 -0700 |
| commit | bb180fb2401dfed0ba85699064e60d62af351ff9 (patch) | |
| tree | 0c6ba401827dad65fc08dddd000da2ff60e138d1 /tools/perf/scripts/python | |
| parent | 47b6cb4d0add454859f386337e6079e01ac7db8f (diff) | |
libbpf: Factor out common logic of testing and closing FD
Factor out common piece of logic that detects support for a feature based on
successfully created FD. Also take care of closing FD, if it was created.
Signed-off-by: Andrii Nakryiko <[email protected]>
Signed-off-by: Alexei Starovoitov <[email protected]>
Link: https://lore.kernel.org/bpf/[email protected]
Diffstat (limited to 'tools/perf/scripts/python')
0 files changed, 0 insertions, 0 deletions