[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <CAADnVQ+d8zEwUeADBuDVT9Y0WuKx3wJizDsmFb58Y6zz3JTYVQ@mail.gmail.com>
Date: Tue, 16 Apr 2019 19:46:45 -0700
From: Alexei Starovoitov <alexei.starovoitov@...il.com>
To: Andrey Ignatov <rdna@...com>
Cc: Network Development <netdev@...r.kernel.org>,
Alexei Starovoitov <ast@...nel.org>,
Daniel Borkmann <daniel@...earbox.net>,
Kernel Team <kernel-team@...com>
Subject: Re: [PATCH bpf-next] bpftool: Support sysctl hook
On Tue, Apr 16, 2019 at 1:13 PM Andrey Ignatov <rdna@...com> 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 type cgroup/sysctl
> # bpftool p l
> 9: cgroup_sysctl name sysctl_tcp_mem tag 0dd05f81a8d0d52e gpl
> loaded_at 2019-04-16T12:57:27-0700 uid 0
> xlated 1008B jited 623B memlock 4096B
> # bpftool c a /mnt/cgroup2/bla sysctl id 9
> # bpftool c t
> CgroupPath
> ID AttachType AttachFlags Name
> /mnt/cgroup2/bla
> 9 sysctl sysctl_tcp_mem
> # bpftool c d /mnt/cgroup2/bla sysctl id 9
> # bpftool c t
> CgroupPath
> ID AttachType AttachFlags Name
>
> Signed-off-by: Andrey Ignatov <rdna@...com>
Applied. Thanks
Powered by blists - more mailing lists