]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit56c452c25f8c42a70e28696ba49a16037701f25c
tree2179589d1cb489484d0a842d3a5f5afb114d5a1d
parent6c28ce0666b8314843be4de792f6ad47f1d700ad
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