linux-stable/include/uapi
Yonghong Song af7ec13833 bpf: Add bpf_skc_to_tcp6_sock() helper
The helper is used in tracing programs to cast a socket
pointer to a tcp6_sock pointer.
The return value could be NULL if the casting is illegal.

A new helper return type RET_PTR_TO_BTF_ID_OR_NULL is added
so the verifier is able to deduce proper return types for the helper.

Different from the previous BTF_ID based helpers,
the bpf_skc_to_tcp6_sock() argument can be several possible
btf_ids. More specifically, all possible socket data structures
with sock_common appearing in the first in the memory layout.
This patch only added socket types related to tcp and udp.

All possible argument btf_id and return value btf_id
for helper bpf_skc_to_tcp6_sock() are pre-calculcated and
cached. In the future, it is even possible to precompute
these btf_id's at kernel build time.

Signed-off-by: Yonghong Song <yhs@fb.com>
Signed-off-by: Alexei Starovoitov <ast@kernel.org>
Acked-by: Andrii Nakryiko <andriin@fb.com>
Acked-by: Martin KaFai Lau <kafai@fb.com>
Link: https://lore.kernel.org/bpf/20200623230809.3988195-1-yhs@fb.com
2020-06-24 18:37:59 -07:00
..
asm-generic vfs: add faccessat2 syscall 2020-05-14 16:44:25 +02:00
drm drm msm next for 5.8-rc1 2020-06-08 11:33:38 -07:00
linux bpf: Add bpf_skc_to_tcp6_sock() helper 2020-06-24 18:37:59 -07:00
misc uapi: habanalabs: add gaudi defines 2020-05-19 14:48:41 +03:00
mtd mtd: Add support for emulated SLC mode on MLC NANDs 2020-05-11 09:51:41 +02:00
rdma RDMA 5.8 merge window pull request 2020-06-05 14:05:57 -07:00
scsi uapi: revert flexible-array conversions 2020-05-04 11:30:15 -05:00
sound ASoC: Intel: Skylake: Automatic DMIC format configuration according to information from NHLT 2020-04-27 16:02:26 +01:00
video
xen
Kbuild