Skip to content
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

Closed

Conversation

kernel-patches-daemon-bpf[bot]
Copy link

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

@kernel-patches-daemon-bpf
Copy link
Author

Upstream branch: e51b907
series: https://patchwork.kernel.org/project/netdevbpf/list/?series=848233
version: 1

@kernel-patches-daemon-bpf
Copy link
Author

Upstream branch: 6e25bcf
series: https://patchwork.kernel.org/project/netdevbpf/list/?series=848233
version: 1

@kernel-patches-daemon-bpf
Copy link
Author

At least one diff in series https://patchwork.kernel.org/project/netdevbpf/list/?series=848233 expired. Closing PR.

@kernel-patches-daemon-bpf
Copy link
Author

Upstream branch: 1bba3b3
series: https://patchwork.kernel.org/project/netdevbpf/list/?series=849212
version: 2

@kernel-patches-daemon-bpf
Copy link
Author

Upstream branch: 05cbc21
series: https://patchwork.kernel.org/project/netdevbpf/list/?series=849212
version: 2

@kernel-patches-daemon-bpf
Copy link
Author

Upstream branch: 06ebfd1
series: https://patchwork.kernel.org/project/netdevbpf/list/?series=849212
version: 2

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>
@kernel-patches-daemon-bpf
Copy link
Author

Upstream branch: 9a1a2cb
series: https://patchwork.kernel.org/project/netdevbpf/list/?series=849212
version: 2

@kernel-patches-daemon-bpf
Copy link
Author

At least one diff in series https://patchwork.kernel.org/project/netdevbpf/list/?series=849212 irrelevant now. Closing PR.

@kernel-patches-daemon-bpf kernel-patches-daemon-bpf bot deleted the series/848233=>bpf-next branch May 1, 2024 17:10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
0 participants