Re: [PATCH v2 bpf-next 4/4] selftests/bpf: add test for bpf_iter_task_vma

2020-12-16 Thread Song Liu
> On Dec 16, 2020, at 10:18 AM, Yonghong Song wrote: > [...] >> + >> +err = bpf_iter_task_vma__load(skel); >> +if (CHECK(err, "bpf_iter_task_vma__load", "skeleton load failed\n")) >> +goto out; >> + >> +do_dummy_read(skel->progs.proc_maps); > > This do_dummy_read() i

Re: [PATCH v2 bpf-next 4/4] selftests/bpf: add test for bpf_iter_task_vma

2020-12-16 Thread Yonghong Song
On 12/15/20 3:37 PM, Song Liu wrote: 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 --- .../selftests/bpf/prog_tests/bpf_iter.c | 106 -- tools/tes