Re: [PATCH v6 bpf-next 3/3] bpf: add tests for bpf_descendant_of

2019-07-10 Thread Andrii Nakryiko
On Wed, Jul 10, 2019 at 11:31 AM Javier Honduvilla Coto wrote: > > Adding the following test cases: FYI, bpf-next is closed, so this won't be able to go in for about 2 weeks. > > - bpf_descendant_of(current->pid) == 1 > - bpf_descendant_of(current->real_parent->pid) == 1 > - bpf_descendant_of(1)

[PATCH v6 bpf-next 3/3] bpf: add tests for bpf_descendant_of

2019-07-10 Thread Javier Honduvilla Coto
Adding the following test cases: - bpf_descendant_of(current->pid) == 1 - bpf_descendant_of(current->real_parent->pid) == 1 - bpf_descendant_of(1) == 1 - bpf_descendant_of(0) == 1 - bpf_descendant_of(-1) == 0 - bpf_descendant_of(current->children[0]->pid) == 0 Signed-off-by: Javier Honduvilla Co