]> git.baikalelectronics.ru Git - kernel.git/commit
selftests/bpf: Add test result messages for test_task_storage_map_stress_lookup
authorHou Tao <houtao1@huawei.com>
Mon, 19 Sep 2022 03:57:14 +0000 (11:57 +0800)
committerMartin KaFai Lau <martin.lau@kernel.org>
Mon, 19 Sep 2022 18:17:38 +0000 (11:17 -0700)
commitbbe8d2a4d697ece3c86fa2bd8002ec3d876adab4
treefeb9c70f3e51f73fc89a6eff42376bd854470df0
parent5c12845743b0d2cdddf0c3f124c4a90f7d77f866
selftests/bpf: Add test result messages for test_task_storage_map_stress_lookup

Add test result message when test_task_storage_map_stress_lookup()
succeeds or is skipped. The test case can be skipped due to the choose
of preemption model in kernel config, so export skips in test_maps.c and
increase it when needed.

The following is the output of test_maps when the test case succeeds or
is skipped:

  test_task_storage_map_stress_lookup:PASS
  test_maps: OK, 0 SKIPPED

  test_task_storage_map_stress_lookup SKIP (no CONFIG_PREEMPT)
  test_maps: OK, 1 SKIPPED

Fixes: addc819245ab ("selftests/bpf: Test concurrent updates on bpf_task_storage_busy")
Signed-off-by: Hou Tao <houtao1@huawei.com>
Link: https://lore.kernel.org/r/20220919035714.2195144-1-houtao@huaweicloud.com
Signed-off-by: Martin KaFai Lau <martin.lau@kernel.org>
tools/testing/selftests/bpf/map_tests/task_storage_map.c
tools/testing/selftests/bpf/test_maps.c
tools/testing/selftests/bpf/test_maps.h