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

2019-03-01 Thread Javier Honduvilla Coto
On Sat, Mar 02, 2019 at 12:01:14AM +, Martin Lau wrote: > On Fri, Mar 01, 2019 at 09:28:39AM -0800, Javier Honduvilla Coto wrote: > > On Wed, Feb 27, 2019 at 06:26:41AM +, Martin Lau wrote: > > > On Tue, Feb 26, 2019 at 02:36:49PM -0800, Javier Honduvilla Coto wrote: > > > > This patch adds

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

2019-03-01 Thread Martin Lau
On Fri, Mar 01, 2019 at 09:28:39AM -0800, Javier Honduvilla Coto wrote: > On Wed, Feb 27, 2019 at 06:26:41AM +, Martin Lau wrote: > > On Tue, Feb 26, 2019 at 02:36:49PM -0800, Javier Honduvilla Coto wrote: > > > This patch adds the bpf_progenyof helper which receives a PID and returns > > What

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

2019-03-01 Thread Javier Honduvilla Coto
On Wed, Feb 27, 2019 at 06:26:41AM +, Martin Lau wrote: Sorry, accidentally did not reply to all your comments: > On Tue, Feb 26, 2019 at 02:36:49PM -0800, Javier Honduvilla Coto wrote: > > This patch adds the bpf_progenyof helper which receives a PID and returns > What is progenof? progenyof

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

2019-03-01 Thread Javier Honduvilla Coto
On Wed, Feb 27, 2019 at 06:26:41AM +, Martin Lau wrote: > On Tue, Feb 26, 2019 at 02:36:49PM -0800, Javier Honduvilla Coto wrote: > > This patch adds the bpf_progenyof helper which receives a PID and returns > What is progenof? > > > 1 if the process currently being executed is in the process h

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

2019-02-26 Thread Martin Lau
On Tue, Feb 26, 2019 at 02:36:49PM -0800, Javier Honduvilla Coto wrote: > This patch adds the bpf_progenyof helper which receives a PID and returns What is progenof? > 1 if the process currently being executed is in the process hierarchy > including itself or 0 if not. > > This is very useful in

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

2019-02-26 Thread 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 children it might spawn. The curre