History

tools/libbpf: Add support for BPF_MODIFY_RETURN

KP Singh committed 6 years ago

Commit aca228c1 parent 6ba43b71 file · +4 −0Browse files

Unified · Split

tools/lib/bpf/libbpf.c+4−0
@@ -6288,6 +6288,10 @@ static const struct bpf_sec_def section_defs[] = { · 6287 unmodified lines
62886288 .expected_attach_type = BPF_TRACE_FENTRY,
62896289 .is_attach_btf = true,
62906290 .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),
62916295 SEC_DEF("fexit/", TRACING,
62926296 .expected_attach_type = BPF_TRACE_FEXIT,
62936297 .is_attach_btf = true,