summaryrefslogtreecommitdiff
path: root/rust/helpers/helpers.c
diff options
context:
space:
mode:
authorMykyta Yatsenko <yatsenko@meta.com>2025-03-17 20:40:38 +0300
committerAndrii Nakryiko <andrii@kernel.org>2025-03-17 23:45:12 +0300
commit974ef9f0d23edc1a802691c585b84514b414a96d (patch)
tree2b45a05bfa7b433272cc38a746b7748eafb1d69f /rust/helpers/helpers.c
parent07651ccda9ff10a8ca427670cdd06ce2c8e4269c (diff)
downloadlinux-974ef9f0d23edc1a802691c585b84514b414a96d.tar.xz
libbpf: Pass BPF token from find_prog_btf_id to BPF_BTF_GET_FD_BY_ID
Pass BPF token from bpf_program__set_attach_target to BPF_BTF_GET_FD_BY_ID bpf command. When freplace program attaches to target program, it needs to look up for BTF of the target, this may require BPF token, if, for example, running from user namespace. Signed-off-by: Mykyta Yatsenko <yatsenko@meta.com> Signed-off-by: Andrii Nakryiko <andrii@kernel.org> Acked-by: Yonghong Song <yonghong.song@linux.dev> Link: https://lore.kernel.org/bpf/20250317174039.161275-4-mykyta.yatsenko5@gmail.com
Diffstat (limited to 'rust/helpers/helpers.c')
0 files changed, 0 insertions, 0 deletions