summaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/export-to-sqlite.py
diff options
context:
space:
mode:
authorMagnus Karlsson <magnus.karlsson@intel.com>2023-01-11 10:35:13 +0100
committerAlexei Starovoitov <ast@kernel.org>2023-01-11 18:16:51 -0800
commit5adaf52776a4178434c0670a8e05e529a2b4aafa (patch)
treeca1be1ddf478b367d6face1103ea985a94005b23 /tools/perf/scripts/python/export-to-sqlite.py
parent2d0b2ae2871ae6d42a9f0a4280e0fb5bff8d38b8 (diff)
selftests/xsk: do not close unused file descriptors
Do not close descriptors that have never been used. File descriptor fields that are not in use are erroneously marked with the number 0, which is a valid fd. Mark unused fds with -1 instead and do not close these when deleting the socket. Signed-off-by: Magnus Karlsson <magnus.karlsson@intel.com> Acked-by: Maciej Fijalkowski <maciej.fijalkowski@intel.com> Link: https://lore.kernel.org/r/20230111093526.11682-3-magnus.karlsson@gmail.com Signed-off-by: Alexei Starovoitov <ast@kernel.org>
Diffstat (limited to 'tools/perf/scripts/python/export-to-sqlite.py')
0 files changed, 0 insertions, 0 deletions