]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit17864321683908eb3a9a0adff03f880fb14f6f81
treefd8f222a6926caed7a675f7cd86bb98fa904188c
parent5fb4800fbb2a4ddab66383199fa8fee494354315
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