selftests/bpf: Reset process and thread affinity after each test/sub-test
authorAndrii Nakryiko <andriin@fb.com>
Sat, 14 Mar 2020 01:39:32 +0000 (18:39 -0700)
committerDaniel Borkmann <daniel@iogearbox.net>
Tue, 17 Mar 2020 18:31:13 +0000 (19:31 +0100)
commitfd27b1835e7079d26809cd4d33ba98f84e593766
treefd8f222a6926caed7a675f7cd86bb98fa904188c
parentfc32490bff855a539d253c8a52c5a1ba51d1325a
selftests/bpf: Reset process and thread affinity after each test/sub-test

Some tests and sub-tests are setting "custom" thread/process affinity and
don't reset it back. Instead of requiring each test to undo all this, ensure
that thread affinity is restored by test_progs test runner itself.

Signed-off-by: Andrii Nakryiko <andriin@fb.com>
Signed-off-by: Daniel Borkmann <daniel@iogearbox.net>
Link: https://lore.kernel.org/bpf/20200314013932.4035712-3-andriin@fb.com
tools/testing/selftests/bpf/test_progs.c
tools/testing/selftests/bpf/test_progs.h