diff options
author | Yonghong Song <yhs@fb.com> | 2021-02-26 23:49:33 +0300 |
---|---|---|
committer | Alexei Starovoitov <ast@kernel.org> | 2021-02-27 00:23:53 +0300 |
commit | 9de7f0fdab326a37c9f741f0f6c0f1cbc320a5ab (patch) | |
tree | a7d45e3feb55995cead702f1a7aceb0e5dad9f33 /scripts/bpf_helpers_doc.py | |
parent | f1f9f0d8d737b9a1c5d15635bf5696643626fd39 (diff) | |
download | linux-9de7f0fdab326a37c9f741f0f6c0f1cbc320a5ab.tar.xz |
selftests/bpf: Add hashmap test for bpf_for_each_map_elem() helper
A test case is added for hashmap and percpu hashmap. The test
also exercises nested bpf_for_each_map_elem() calls like
bpf_prog:
bpf_for_each_map_elem(func1)
func1:
bpf_for_each_map_elem(func2)
func2:
$ ./test_progs -n 45
#45/1 hash_map:OK
#45 for_each:OK
Summary: 1/1 PASSED, 0 SKIPPED, 0 FAILED
Signed-off-by: Yonghong Song <yhs@fb.com>
Signed-off-by: Alexei Starovoitov <ast@kernel.org>
Acked-by: Andrii Nakryiko <andrii@kernel.org>
Link: https://lore.kernel.org/bpf/20210226204933.3885657-1-yhs@fb.com
Diffstat (limited to 'scripts/bpf_helpers_doc.py')
0 files changed, 0 insertions, 0 deletions