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

Make attach_kprobe_multi consistent with attach_kprobe #1121

Merged
merged 1 commit into from
Mar 11, 2025

Conversation

atenart
Copy link
Contributor

@atenart atenart commented Mar 11, 2025

The attach_kprobe helper has a kretprobe boolean as a first argument and then the target name. The attach_kprobe_multi helper has similar arguments, but in the inverse order. Reorder them to make the API consistent.

This shouldn't break production software as the kprobe multi support isn't part of an official release yet.

The attach_kprobe helper has a kretprobe boolean as a first argument and
then the target name. The attach_kprobe_multi helper has similar
arguments, but in the inverse order. Reorder them to make the API
consistent.

Signed-off-by: Antoine Tenart <atenart@kernel.org>
Copy link
Collaborator

@danielocfb danielocfb left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good to me, thanks!

@danielocfb danielocfb merged commit 887fd1c into libbpf:master Mar 11, 2025
14 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants