Re: [PATCH net-next 2/8] bpf: introduce BPF_PROG_QUERY command

2018-02-02 Thread Alexei Starovoitov
On 2/2/18 6:28 AM, Eric Dumazet wrote: On Mon, 2017-10-02 at 16:48 -0700, Alexei Starovoitov wrote: introduce BPF_PROG_QUERY command to retrieve a set of either attached programs to given cgroup or a set of effective programs that will execute for events within a cgroup ... + +int bpf_prog_

Re: [PATCH net-next 2/8] bpf: introduce BPF_PROG_QUERY command

2018-02-02 Thread Eric Dumazet
On Mon, 2017-10-02 at 16:48 -0700, Alexei Starovoitov wrote: > introduce BPF_PROG_QUERY command to retrieve a set of either > attached programs to given cgroup or a set of effective programs > that will execute for events within a cgroup > ... > + > +int bpf_prog_array_copy_to_user(struct bpf_pr

[PATCH net-next 2/8] bpf: introduce BPF_PROG_QUERY command

2017-10-02 Thread Alexei Starovoitov
introduce BPF_PROG_QUERY command to retrieve a set of either attached programs to given cgroup or a set of effective programs that will execute for events within a cgroup Signed-off-by: Alexei Starovoitov Acked-by: Daniel Borkmann for cgroup bits Acked-by: Tejun Heo --- include/linux/bpf-cgrou