mirror of
				https://github.com/torvalds/linux.git
				synced 2025-11-04 10:40:15 +02:00 
			
		
		
		
	bpftool: Add support for BPF_CGROUP_INET_SOCK_RELEASE
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
This commit is contained in:
		
							parent
							
								
									e8b012e9fa
								
							
						
					
					
						commit
						db94cc0b48
					
				
					 1 changed files with 1 additions and 0 deletions
				
			
		| 
						 | 
					@ -33,6 +33,7 @@ const char * const attach_type_name[__MAX_BPF_ATTACH_TYPE] = {
 | 
				
			||||||
	[BPF_CGROUP_INET_INGRESS]	= "ingress",
 | 
						[BPF_CGROUP_INET_INGRESS]	= "ingress",
 | 
				
			||||||
	[BPF_CGROUP_INET_EGRESS]	= "egress",
 | 
						[BPF_CGROUP_INET_EGRESS]	= "egress",
 | 
				
			||||||
	[BPF_CGROUP_INET_SOCK_CREATE]	= "sock_create",
 | 
						[BPF_CGROUP_INET_SOCK_CREATE]	= "sock_create",
 | 
				
			||||||
 | 
						[BPF_CGROUP_INET_SOCK_RELEASE]	= "sock_release",
 | 
				
			||||||
	[BPF_CGROUP_SOCK_OPS]		= "sock_ops",
 | 
						[BPF_CGROUP_SOCK_OPS]		= "sock_ops",
 | 
				
			||||||
	[BPF_CGROUP_DEVICE]		= "device",
 | 
						[BPF_CGROUP_DEVICE]		= "device",
 | 
				
			||||||
	[BPF_CGROUP_INET4_BIND]		= "bind4",
 | 
						[BPF_CGROUP_INET4_BIND]		= "bind4",
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
		Reference in a new issue