libbpf: Support detecting and attaching of writable tracepoint program
authorHou Tao <houtao1@huawei.com>
Mon, 4 Oct 2021 09:48:56 +0000 (17:48 +0800)
committerAndrii Nakryiko <andrii@kernel.org>
Fri, 8 Oct 2021 20:22:57 +0000 (13:22 -0700)
commitccaf12d6215a56836472db220520cda8024d6c4f
tree2179589d1cb489484d0a842d3a5f5afb114d5a1d
parent65223741ae1b759a14cab84ba88888bb025f816d
libbpf: Support detecting and attaching of writable tracepoint program

Program on writable tracepoint is BPF_PROG_TYPE_RAW_TRACEPOINT_WRITABLE,
but its attachment is the same as BPF_PROG_TYPE_RAW_TRACEPOINT.

Signed-off-by: Hou Tao <houtao1@huawei.com>
Signed-off-by: Andrii Nakryiko <andrii@kernel.org>
Link: https://lore.kernel.org/bpf/20211004094857.30868-3-hotforest@gmail.com
tools/lib/bpf/libbpf.c