summaryrefslogtreecommitdiffstats
path: root/tools/perf/scripts/python/export-to-postgresql.py
diff options
context:
space:
mode:
authorAndrii Nakryiko <andriin@fb.com>2020-08-18 14:33:52 -0700
committerAlexei Starovoitov <ast@kernel.org>2020-08-18 17:16:15 -0700
commitbb180fb2401dfed0ba85699064e60d62af351ff9 (patch)
tree0c6ba401827dad65fc08dddd000da2ff60e138d1 /tools/perf/scripts/python/export-to-postgresql.py
parent47b6cb4d0add454859f386337e6079e01ac7db8f (diff)
downloadlinux-bb180fb2401dfed0ba85699064e60d62af351ff9.tar.gz
linux-bb180fb2401dfed0ba85699064e60d62af351ff9.zip
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 <andriin@fb.com> Signed-off-by: Alexei Starovoitov <ast@kernel.org> Link: https://lore.kernel.org/bpf/20200818213356.2629020-4-andriin@fb.com
Diffstat (limited to 'tools/perf/scripts/python/export-to-postgresql.py')
0 files changed, 0 insertions, 0 deletions