summaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/exported-sql-viewer.py
diff options
context:
space:
mode:
authorDaniel Xu <dxu@dxuuu.xyz>2022-08-09 20:11:09 +0300
committerDaniel Borkmann <daniel@iogearbox.net>2022-08-09 23:28:48 +0300
commitd020b2360b350b9f91b1769f9c84fe2d22f643db (patch)
tree1c8bcb70c1312739b783d6ee673bbbc3dd695925 /tools/perf/scripts/python/exported-sql-viewer.py
parenta00ed8430199abbc9d9bf43ea31795bfe98998ca (diff)
downloadlinux-d020b2360b350b9f91b1769f9c84fe2d22f643db.tar.xz
selftests/bpf: Fix vmtest.sh -h to not require root
Set the exit trap only after argument parsing is done. This way argument parse failure or `-h` will not require sudo. Reasoning is that it's confusing that a help message would require root access. Signed-off-by: Daniel Xu <dxu@dxuuu.xyz> Signed-off-by: Daniel Borkmann <daniel@iogearbox.net> Acked-by: Daniel Müller <deso@posteo.net> Link: https://lore.kernel.org/bpf/6a802aa37758e5a7e6aa5de294634f5518005e2b.1660064925.git.dxu@dxuuu.xyz
Diffstat (limited to 'tools/perf/scripts/python/exported-sql-viewer.py')
0 files changed, 0 insertions, 0 deletions