]> git.baikalelectronics.ru Git - kernel.git/commit
selftests/bpf: Test task_file iterator without visiting pthreads
authorYonghong Song <yhs@fb.com>
Wed, 2 Sep 2020 02:31:13 +0000 (19:31 -0700)
committerDaniel Borkmann <daniel@iogearbox.net>
Wed, 2 Sep 2020 14:40:33 +0000 (16:40 +0200)
commit858e8b2eb4dd6fe6c4640463ad2f2ed3b8249ad4
tree7e2f8b0dd99a8f8315caa48781d948fd13f3d3be
parent203d7b054fc719561fe258e46e280930890dceaf
selftests/bpf: Test task_file iterator without visiting pthreads

Modified existing bpf_iter_test_file.c program to check whether
all accessed files from the main thread or not.

Modified existing bpf_iter_test_file program to check
whether all accessed files from the main thread or not.
  $ ./test_progs -n 4
  ...
  #4/7 task_file:OK
  ...
  #4 bpf_iter:OK
  Summary: 1/24 PASSED, 0 SKIPPED, 0 FAILED

Signed-off-by: Yonghong Song <yhs@fb.com>
Signed-off-by: Daniel Borkmann <daniel@iogearbox.net>
Acked-by: Andrii Nakryiko <andriin@fb.com>
Link: https://lore.kernel.org/bpf/20200902023113.1672863-1-yhs@fb.com
tools/testing/selftests/bpf/prog_tests/bpf_iter.c
tools/testing/selftests/bpf/progs/bpf_iter_task_file.c