projects
/
platform
/
kernel
/
linux-starfive.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
e8b012e
)
bpftool: Add support for BPF_CGROUP_INET_SOCK_RELEASE
author
Stanislav Fomichev
<sdf@google.com>
Mon, 6 Jul 2020 23:01:27 +0000
(16:01 -0700)
committer
Daniel Borkmann
<daniel@iogearbox.net>
Tue, 7 Jul 2020 23:07:36 +0000
(
01:07
+0200)
Support attaching to BPF_CGROUP_INET_SOCK_RELEASE and properly
display attach type upon prog dump.
Signed-off-by: Stanislav Fomichev <sdf@google.com>
Signed-off-by: Daniel Borkmann <daniel@iogearbox.net>
Acked-by: Andrii Nakryiko <andriin@fb.com>
Link:
https://lore.kernel.org/bpf/20200706230128.4073544-4-sdf@google.com
tools/bpf/bpftool/common.c
patch
|
blob
|
history
diff --git
a/tools/bpf/bpftool/common.c
b/tools/bpf/bpftool/common.c
index
18e5604
..
29f4e76
100644
(file)
--- 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",