twx-linux/tools/include/uapi/linux
Florent Revest 4f19cab761 bpf: Add a bpf_sock_from_file helper
While eBPF programs can check whether a file is a socket by file->f_op
== &socket_file_ops, they cannot convert the void private_data pointer
to a struct socket BTF pointer. In order to do this a new helper
wrapping sock_from_file is added.

This is useful to tracing programs but also other program types
inheriting this set of helpers such as iterators or LSM programs.

Signed-off-by: Florent Revest <revest@google.com>
Signed-off-by: Daniel Borkmann <daniel@iogearbox.net>
Acked-by: KP Singh <kpsingh@google.com>
Acked-by: Martin KaFai Lau <kafai@fb.com>
Link: https://lore.kernel.org/bpf/20201204113609.1850150-2-revest@google.com
2020-12-04 22:32:40 +01:00
..
tc_act
bpf_common.h
bpf_perf_event.h
bpf.h bpf: Add a bpf_sock_from_file helper 2020-12-04 22:32:40 +01:00
btf.h
const.h
erspan.h
ethtool.h
fadvise.h
fcntl.h tools headers API: Update faccessat2 affected files 2020-06-09 12:40:03 -03:00
filter.h tools: bpf: Use local copy of headers including uapi/linux/filter.h 2020-07-21 10:50:35 +01:00
fs.h tools headers UAPI: Sync linux/fs.h with the kernel sources 2020-06-17 13:23:02 -03:00
fscrypt.h tools headers UAPI: Update fscrypt.h copy 2020-11-03 08:35:32 -03:00
hw_breakpoint.h
if_link.h macvlan: Support for high multicast packet rate 2020-12-03 08:21:29 -08:00
if_tun.h
if_xdp.h xsk: Add new statistics 2020-07-13 15:32:56 -07:00
in.h tools headers UAPI: update linux/in.h copy 2020-09-14 19:06:41 -03:00
kcmp.h
kvm.h tools kvm headers: Update KVM headers from the kernel sources 2020-11-03 08:46:30 -03:00
lirc.h
mman.h tools UAPI: Update copy of linux/mman.h from the kernel sources 2020-11-03 08:36:51 -03:00
mount.h tools include UAPI: Update linux/mount.h copy 2020-11-03 08:52:11 -03:00
netlink.h
openat2.h
perf_event.h tools headers UAPI: Update tools's copy of linux/perf_event.h 2020-11-03 08:49:59 -03:00
pkt_cls.h
pkt_sched.h
prctl.h tools headers UAPI: Sync prctl.h with the kernel sources 2020-11-03 08:34:58 -03:00
sched.h tools headers UAPI: Sync sched.h with the kernel 2020-04-14 09:01:08 -03:00
seg6_local.h
seg6.h
stat.h tools headers uapi: Sync linux/stat.h with the kernel sources 2020-06-09 12:40:03 -03:00
tls.h
types.h
usbdevice_fs.h
vhost.h tools kvm headers: Update KVM headers from the kernel sources 2020-11-03 08:46:30 -03:00