]> git.baikalelectronics.ru Git - kernel.git/commit
libbpf: Introduce legacy kprobe events support
authorRafael David Tinoco <rafaeldtinoco@gmail.com>
Sun, 12 Sep 2021 06:48:44 +0000 (03:48 -0300)
committerAndrii Nakryiko <andrii@kernel.org>
Tue, 14 Sep 2021 21:44:45 +0000 (14:44 -0700)
commit8b1e81171a1f471ba697585b44cb0ad3ae6503af
tree1a5f76319547a38b8cf0429379dca875095bb18d
parent1856b143693ddc137d77373b0e6bf8ff7b7700cf
libbpf: Introduce legacy kprobe events support

Allow kprobe tracepoint events creation through legacy interface, as the
kprobe dynamic PMUs support, used by default, was only created in v4.17.

Store legacy kprobe name in struct bpf_perf_link, instead of creating
a new "subclass" off of bpf_perf_link. This is ok as it's just two new
fields, which are also going to be reused for legacy uprobe support in
follow up patches.

Signed-off-by: Rafael David Tinoco <rafaeldtinoco@gmail.com>
Signed-off-by: Andrii Nakryiko <andrii@kernel.org>
Link: https://lore.kernel.org/bpf/20210912064844.3181742-1-rafaeldtinoco@gmail.com
tools/lib/bpf/libbpf.c