OSDN Git Service

selftests/bpf: Add test for bpf_iter_task_vma
authorSong Liu <songliubraving@fb.com>
Fri, 12 Feb 2021 18:31:07 +0000 (10:31 -0800)
committerAlexei Starovoitov <ast@kernel.org>
Fri, 12 Feb 2021 20:56:54 +0000 (12:56 -0800)
commite8168840e16c606b3de38148c97262638b41750d
treeda065f32adddc0098366c3e2a4987a2c1da07256
parent3d06f34aa89698f74e743b9ec023eafc19827cba
selftests/bpf: Add test for bpf_iter_task_vma

The test dumps information similar to /proc/pid/maps. The first line of
the output is compared against the /proc file to make sure they match.

Signed-off-by: Song Liu <songliubraving@fb.com>
Signed-off-by: Alexei Starovoitov <ast@kernel.org>
Acked-by: Yonghong Song <yhs@fb.com>
Link: https://lore.kernel.org/bpf/20210212183107.50963-4-songliubraving@fb.com
tools/testing/selftests/bpf/prog_tests/bpf_iter.c
tools/testing/selftests/bpf/progs/bpf_iter.h
tools/testing/selftests/bpf/progs/bpf_iter_task_vma.c [new file with mode: 0644]