Re: [PATCH bpf-next v3 3/4] bpftool: add support for BPF_CGROUP_INET_SOCK_RELEASE

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Wed, Jul 1, 2020 at 1:13 PM Stanislav Fomichev <sdf@xxxxxxxxxx> wrote:
>
> Support attaching to BPF_CGROUP_INET_SOCK_RELEASE and properly
> display attach type upon prog dump.
>
> Signed-off-by: Stanislav Fomichev <sdf@xxxxxxxxxx>
> ---

Acked-by: Andrii Nakryiko <andriin@xxxxxx>

>  tools/bpf/bpftool/common.c | 1 +
>  1 file changed, 1 insertion(+)
>
> diff --git a/tools/bpf/bpftool/common.c b/tools/bpf/bpftool/common.c
> index 18e5604fe260..29f4e7611ae8 100644
> --- a/tools/bpf/bpftool/common.c
> +++ b/tools/bpf/bpftool/common.c
> @@ -33,6 +33,7 @@ const char * const attach_type_name[__MAX_BPF_ATTACH_TYPE] = {
>         [BPF_CGROUP_INET_INGRESS]       = "ingress",
>         [BPF_CGROUP_INET_EGRESS]        = "egress",
>         [BPF_CGROUP_INET_SOCK_CREATE]   = "sock_create",
> +       [BPF_CGROUP_INET_SOCK_RELEASE]  = "sock_release",
>         [BPF_CGROUP_SOCK_OPS]           = "sock_ops",
>         [BPF_CGROUP_DEVICE]             = "device",
>         [BPF_CGROUP_INET4_BIND]         = "bind4",
> --
> 2.27.0.212.ge8ba1cc988-goog
>



[Index of Archives]     [Linux Samsung SoC]     [Linux Rockchip SoC]     [Linux Actions SoC]     [Linux for Synopsys ARC Processors]     [Linux NFS]     [Linux NILFS]     [Linux USB Devel]     [Video for Linux]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]


  Powered by Linux