]> 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)
commit840fec01f9658a5359d40d741b8850da8660b4b4
treefd8f222a6926caed7a675f7cd86bb98fa904188c
parentac7e7d04fc9b6d23c5c4c195b18ffd30162dd034
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