android_kernel_sony_sdm845/include/uapi
Repository files (latest commit first)
Filename Latest commit message Latest commit date
Alexei Starovoitov 27fdc1abc0 BACKPORT: bpf: Replace prog_raw_tp+btf_id with prog_tracing
The bpf program type raw_tp together with 'expected_attach_type'
was the most appropriate api to indicate BTF-enabled raw_tp programs.
But during development it became apparent that 'expected_attach_type'
cannot be used and new 'attach_btf_id' field had to be introduced.
Which means that the information is duplicated in two fields where
one of them is ignored.
Clean it up by introducing new program type where both
'expected_attach_type' and 'attach_btf_id' fields have
specific meaning.
In the future 'expected_attach_type' will be extended
with other attach points that have similar semantics to raw_tp.
This patch is replacing BTF-enabled BPF_PROG_TYPE_RAW_TRACEPOINT with
prog_type = BPF_RPOG_TYPE_TRACING
expected_attach_type = BPF_TRACE_RAW_TP
attach_btf_id = btf_id of raw tracepoint inside the kernel
Future patches will add
expected_attach_type = BPF_TRACE_FENTRY or BPF_TRACE_FEXIT
where programs have the same input context and the same helpers,
but different attach points.

Change-Id: I0b65e9351f407ab7a83d34e2618179b3f0758cad
Signed-off-by: Alexei Starovoitov <ast@kernel.org>
Signed-off-by: Daniel Borkmann <daniel@iogearbox.net>
Acked-by: Andrii Nakryiko <andriin@fb.com>
Acked-by: Martin KaFai Lau <kafai@fb.com>
Link: https://lore.kernel.org/bpf/20191030223212.953010-2-ast@kernel.org
Signed-off-by: Sorayukii <sorayukii69@gmail.com>
2026-05-15 17:58:59 +07:00
..
asm-generic BACKPORT: sock: add SOCK_ZEROCOPY sockopt 2026-05-15 17:55:02 +07:00
drm drm: Add DRM_MODE_ROTATE_ and DRM_MODE_REFLECT_ to UAPI 2021-09-27 05:59:33 -07:00
linux BACKPORT: bpf: Replace prog_raw_tp+btf_id with prog_tracing 2026-05-15 17:58:59 +07:00
media msm: vidc: add delta QP support for P and B frames in ROI 2021-01-26 22:32:47 -08:00
miniISP media: platform: Altek AL6100 driver release 2019-07-24 20:25:30 +08:00
misc uapi: export all headers under uapi directories 2020-04-09 15:39:35 +05:30
mtd uapi: export all headers under uapi directories 2020-04-09 15:39:35 +05:30
rdma Kbuild : Use no-export-headers to avoid exporting headers 2020-04-09 16:08:34 +05:30
scsi uapi: export all headers under uapi directories 2020-04-09 15:39:35 +05:30
sound Merge branch 'android-4.9-q' of https://android.googlesource.com/kernel/common into lineage-20 2023-01-19 15:42:12 +01:00
video Kbuild : Use no-export-headers to avoid exporting headers 2020-04-09 16:08:34 +05:30
xen uapi: export all headers under uapi directories 2020-04-09 15:39:35 +05:30