Re: [net-next 0/2] BPF, kprobes: Add current_in_cgroup helper

2016-08-08 Thread Sargun Dhillon
On Mon, Aug 08, 2016 at 11:27:32AM +0200, Daniel Borkmann wrote: > On 08/08/2016 05:52 AM, Alexei Starovoitov wrote: > >On Sun, Aug 07, 2016 at 08:08:19PM -0700, Sargun Dhillon wrote: > >>Thanks for your feedback Alexei, > >>I really appreciate it. > >> > >>On Sun, Aug 07, 2016 at 05:52:36PM -0700,

Re: [net-next 0/2] BPF, kprobes: Add current_in_cgroup helper

2016-08-08 Thread Daniel Borkmann
On 08/08/2016 05:52 AM, Alexei Starovoitov wrote: On Sun, Aug 07, 2016 at 08:08:19PM -0700, Sargun Dhillon wrote: Thanks for your feedback Alexei, I really appreciate it. On Sun, Aug 07, 2016 at 05:52:36PM -0700, Alexei Starovoitov wrote: On Sat, Aug 06, 2016 at 09:56:06PM -0700, Sargun Dhillo

Re: [net-next 0/2] BPF, kprobes: Add current_in_cgroup helper

2016-08-07 Thread Alexei Starovoitov
On Sun, Aug 07, 2016 at 08:08:19PM -0700, Sargun Dhillon wrote: > Thanks for your feedback Alexei, > I really appreciate it. > > On Sun, Aug 07, 2016 at 05:52:36PM -0700, Alexei Starovoitov wrote: > > On Sat, Aug 06, 2016 at 09:56:06PM -0700, Sargun Dhillon wrote: > > > On Sat, Aug 06, 2016 at 09:

Re: [net-next 0/2] BPF, kprobes: Add current_in_cgroup helper

2016-08-07 Thread Sargun Dhillon
Thanks for your feedback Alexei, I really appreciate it. On Sun, Aug 07, 2016 at 05:52:36PM -0700, Alexei Starovoitov wrote: > On Sat, Aug 06, 2016 at 09:56:06PM -0700, Sargun Dhillon wrote: > > On Sat, Aug 06, 2016 at 09:32:05PM -0700, Alexei Starovoitov wrote: > > > On Sat, Aug 06, 2016 at 09:06

Re: [net-next 0/2] BPF, kprobes: Add current_in_cgroup helper

2016-08-07 Thread Alexei Starovoitov
On Sat, Aug 06, 2016 at 09:56:06PM -0700, Sargun Dhillon wrote: > On Sat, Aug 06, 2016 at 09:32:05PM -0700, Alexei Starovoitov wrote: > > On Sat, Aug 06, 2016 at 09:06:53PM -0700, Sargun Dhillon wrote: > > > This patchset includes a helper and an example to determine whether the > > > kprobe > >

Re: [net-next 0/2] BPF, kprobes: Add current_in_cgroup helper

2016-08-06 Thread Sargun Dhillon
On Sat, Aug 06, 2016 at 09:32:05PM -0700, Alexei Starovoitov wrote: > On Sat, Aug 06, 2016 at 09:06:53PM -0700, Sargun Dhillon wrote: > > This patchset includes a helper and an example to determine whether the > > kprobe > > is currently executing in the context of a specific cgroup based on a cg

Re: [net-next 0/2] BPF, kprobes: Add current_in_cgroup helper

2016-08-06 Thread Alexei Starovoitov
On Sat, Aug 06, 2016 at 09:06:53PM -0700, Sargun Dhillon wrote: > This patchset includes a helper and an example to determine whether the > kprobe > is currently executing in the context of a specific cgroup based on a cgroup > bpf map / array. description is too short to understand how this ne

[net-next 0/2] BPF, kprobes: Add current_in_cgroup helper

2016-08-06 Thread Sargun Dhillon
This patchset includes a helper and an example to determine whether the kprobe is currently executing in the context of a specific cgroup based on a cgroup bpf map / array. Sargun Dhillon (2): bpf: Add bpf_current_in_cgroup helper samples/bpf: Add example using current_in_cgroup include/li