Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

tools/libbpf: Add support for BPF_MODIFY_RETURN

Signed-off-by: KP Singh <kpsingh@google.com>
Signed-off-by: Alexei Starovoitov <ast@kernel.org>
Acked-by: Andrii Nakryiko <andriin@fb.com>
Acked-by: Daniel Borkmann <daniel@iogearbox.net>
Link: https://lore.kernel.org/bpf/20200304191853.1529-6-kpsingh@chromium.org

authored by

KP Singh and committed by
Alexei Starovoitov
aca228cd 6ba43b76

+4
+4
tools/lib/bpf/libbpf.c
··· 6288 6288 .expected_attach_type = BPF_TRACE_FENTRY, 6289 6289 .is_attach_btf = true, 6290 6290 .attach_fn = attach_trace), 6291 + SEC_DEF("fmod_ret/", TRACING, 6292 + .expected_attach_type = BPF_MODIFY_RETURN, 6293 + .is_attach_btf = true, 6294 + .attach_fn = attach_trace), 6291 6295 SEC_DEF("fexit/", TRACING, 6292 6296 .expected_attach_type = BPF_TRACE_FEXIT, 6293 6297 .is_attach_btf = true,