-
Notifications
You must be signed in to change notification settings - Fork 94
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
libbpf: support "module:function" syntax for tracing programs #6890
Conversation
Upstream branch: e51b907 |
2b108d4
to
1c660c9
Compare
Upstream branch: 6e25bcf |
bc42a7e
to
f239786
Compare
At least one diff in series https://patchwork.kernel.org/project/netdevbpf/list/?series=848233 expired. Closing PR. |
Upstream branch: 1bba3b3 |
f239786
to
a388f74
Compare
20138b5
to
433fbcc
Compare
Upstream branch: 05cbc21 |
a388f74
to
30ab07e
Compare
433fbcc
to
63dbb37
Compare
Upstream branch: 06ebfd1 |
30ab07e
to
229db1d
Compare
63dbb37
to
8cab573
Compare
In some situations, it is useful to explicitly specify a kernel module to search for a tracing program target (e.g. when a function of the same name exists in multiple modules or in vmlinux). This patch enables that by allowing the "module:function" syntax for the find_kernel_btf_id function. Thanks to this, the syntax can be used both from a SEC macro (i.e. `SEC(fentry/module:function)`) and via the bpf_program__set_attach_target API call. Signed-off-by: Viktor Malik <vmalik@redhat.com>
The previous patch added support for the "module:function" syntax for tracing programs. This adds tests for explicitly specifying the module name via the SEC macro and via the bpf_program__set_attach_target call. Signed-off-by: Viktor Malik <vmalik@redhat.com> Acked-by: Andrii Nakryiko <andrii@kernel.org>
Upstream branch: 9a1a2cb |
229db1d
to
9ecebfa
Compare
8cab573
to
aabe8f6
Compare
At least one diff in series https://patchwork.kernel.org/project/netdevbpf/list/?series=849212 irrelevant now. Closing PR. |
Pull request for series with
subject: libbpf: support "module:function" syntax for tracing programs
version: 1
url: https://patchwork.kernel.org/project/netdevbpf/list/?series=848233