Re: [PATCH bpf-next] bpftool: Support sysctl hook

2019-04-16 Thread Alexei Starovoitov
On Tue, Apr 16, 2019 at 1:13 PM Andrey Ignatov wrote: > > Add support for recently added BPF_PROG_TYPE_CGROUP_SYSCTL program type > and BPF_CGROUP_SYSCTL attach type. > > Example of bpftool output with sysctl program from selftests: > > # bpftool p load ./test_sysctl_prog.o /mnt/bpf/sysctl_prog

Re: [PATCH bpf-next] bpftool: Support sysctl hook

2019-04-16 Thread Jakub Kicinski
On Tue, 16 Apr 2019 13:13:47 -0700, Andrey Ignatov wrote: > Add support for recently added BPF_PROG_TYPE_CGROUP_SYSCTL program type > and BPF_CGROUP_SYSCTL attach type. > > Example of bpftool output with sysctl program from selftests: > > # bpftool p load ./test_sysctl_prog.o /mnt/bpf/sysctl_pr

Re: [PATCH bpf-next] bpftool: Support sysctl hook

2019-04-16 Thread Song Liu
> On Apr 16, 2019, at 1:13 PM, Andrey Ignatov wrote: > > Add support for recently added BPF_PROG_TYPE_CGROUP_SYSCTL program type > and BPF_CGROUP_SYSCTL attach type. > > Example of bpftool output with sysctl program from selftests: > > # bpftool p load ./test_sysctl_prog.o /mnt/bpf/sysctl_p

[PATCH bpf-next] bpftool: Support sysctl hook

2019-04-16 Thread Andrey Ignatov
Add support for recently added BPF_PROG_TYPE_CGROUP_SYSCTL program type and BPF_CGROUP_SYSCTL attach type. Example of bpftool output with sysctl program from selftests: # bpftool p load ./test_sysctl_prog.o /mnt/bpf/sysctl_prog type cgroup/sysctl # bpftool p l 9: cgroup_sysctl name sysctl_