diff options
author | Amery Hung <ameryhung@gmail.com> | 2025-03-05 21:20:55 +0300 |
---|---|---|
committer | Alexei Starovoitov <ast@kernel.org> | 2025-03-15 21:48:57 +0300 |
commit | aeb5bbb0253892f601702aee9fc00038824a1c59 (patch) | |
tree | ecd1ba6aad8a8c8be2101ff26f5c707d1fcc33bf /scripts/gdb/linux/proc.py | |
parent | f5e288943e2cfc3ec4264e7192b389f7114139c6 (diff) | |
download | linux-aeb5bbb0253892f601702aee9fc00038824a1c59.tar.xz |
selftests/bpf: Clean up call sites of stdio_restore()
reset_affinity() and save_ns() are only called in run_one_test(). There is
no need to call stdio_restore() in reset_affinity() and save_ns() if
stdio_restore() is moved right after a test finishes in run_one_test().
Also remove an unnecessary check of env.stdout_saved in crash_handler()
by moving env.stdout_saved assignment to the beginning of main().
Signed-off-by: Amery Hung <ameryhung@gmail.com>
Signed-off-by: Martin KaFai Lau <martin.lau@kernel.org>
Acked-by: Eduard Zingerman <eddyz87@gmail.com>
Link: https://patch.msgid.link/20250305182057.2802606-1-ameryhung@gmail.com
Signed-off-by: Alexei Starovoitov <ast@kernel.org>
Diffstat (limited to 'scripts/gdb/linux/proc.py')
0 files changed, 0 insertions, 0 deletions