Re: [PATCH v2 bpf-next 1/3] bpf: add bpf_progenyof helper

2019-03-01 Thread Javier Honduvilla Coto
On Sat, Mar 02, 2019 at 12:12:57AM +, Martin Lau wrote: > On Fri, Mar 01, 2019 at 10:06:12AM -0800, Javier Honduvilla Coto wrote: > > From: Javier Honduvilla Coto > > > > This patch adds the bpf_progenyof helper which receives a PID and returns > > 1 if the process currently being executed is

Re: [PATCH v2 bpf-next 1/3] bpf: add bpf_progenyof helper

2019-03-01 Thread Martin Lau
On Fri, Mar 01, 2019 at 10:06:12AM -0800, Javier Honduvilla Coto wrote: > From: Javier Honduvilla Coto > > This patch adds the bpf_progenyof helper which receives a PID and returns > 1 if the process currently being executed is in the process hierarchy > including itself or 0 if not. > > This is

[PATCH v2 bpf-next 1/3] bpf: add bpf_progenyof helper

2019-03-01 Thread Javier Honduvilla Coto
From: Javier Honduvilla Coto This patch adds the bpf_progenyof helper which receives a PID and returns 1 if the process currently being executed is in the process hierarchy including itself or 0 if not. This is very useful in tracing programs when we want to filter by a given PID and all the chi