OSDN Git Service

libbpf: Add BPF_UPROBE and BPF_URETPROBE macro aliases
authorAndrii Nakryiko <andrii@kernel.org>
Fri, 20 Jan 2023 20:08:59 +0000 (12:08 -0800)
committerDaniel Borkmann <daniel@iogearbox.net>
Mon, 23 Jan 2023 19:53:00 +0000 (20:53 +0100)
commitac4afd6e6fa4d4f9a0ab6ca76f4953545e4da7e6
treebe43253fff3756be84eef7e740beeb1bc0296c3d
parent55ff00d5393b6d6f6cb90530aac546f5aa52456d
libbpf: Add BPF_UPROBE and BPF_URETPROBE macro aliases

Add BPF_UPROBE and BPF_URETPROBE macros, aliased to BPF_KPROBE and
BPF_KRETPROBE, respectively. This makes uprobe-based BPF program code
much less confusing, especially to people new to tracing, at no cost in
terms of maintainability. We'll use this macro in selftests in
subsequent patch.

Signed-off-by: Andrii Nakryiko <andrii@kernel.org>
Signed-off-by: Daniel Borkmann <daniel@iogearbox.net>
Link: https://lore.kernel.org/bpf/20230120200914.3008030-11-andrii@kernel.org
tools/lib/bpf/bpf_tracing.h