Commit aeb5bbb
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>1 parent f5e2889 commit aeb5bbb
1 file changed
Lines changed: 6 additions & 11 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
474 | 474 | | |
475 | 475 | | |
476 | 476 | | |
477 | | - | |
478 | | - | |
479 | 477 | | |
480 | 478 | | |
481 | 479 | | |
| |||
490 | 488 | | |
491 | 489 | | |
492 | 490 | | |
493 | | - | |
494 | 491 | | |
495 | 492 | | |
496 | 493 | | |
497 | 494 | | |
498 | 495 | | |
499 | | - | |
500 | 496 | | |
501 | 497 | | |
502 | 498 | | |
| |||
514 | 510 | | |
515 | 511 | | |
516 | 512 | | |
517 | | - | |
518 | 513 | | |
519 | 514 | | |
520 | 515 | | |
| |||
1270 | 1265 | | |
1271 | 1266 | | |
1272 | 1267 | | |
1273 | | - | |
1274 | | - | |
| 1268 | + | |
1275 | 1269 | | |
1276 | 1270 | | |
1277 | 1271 | | |
| |||
1400 | 1394 | | |
1401 | 1395 | | |
1402 | 1396 | | |
| 1397 | + | |
| 1398 | + | |
1403 | 1399 | | |
1404 | 1400 | | |
1405 | 1401 | | |
| |||
1408 | 1404 | | |
1409 | 1405 | | |
1410 | 1406 | | |
1411 | | - | |
1412 | 1407 | | |
1413 | 1408 | | |
1414 | 1409 | | |
| |||
1943 | 1938 | | |
1944 | 1939 | | |
1945 | 1940 | | |
| 1941 | + | |
| 1942 | + | |
| 1943 | + | |
1946 | 1944 | | |
1947 | 1945 | | |
1948 | 1946 | | |
| |||
1969 | 1967 | | |
1970 | 1968 | | |
1971 | 1969 | | |
1972 | | - | |
1973 | | - | |
1974 | | - | |
1975 | 1970 | | |
1976 | 1971 | | |
1977 | 1972 | | |
| |||
0 commit comments