Do kprobe.multi on addresses instead of symbols#297
Merged
brb merged 3 commits intocilium:mainfrom Feb 16, 2024
Merged
Conversation
6046b71 to
02c47e7
Compare
Contributor
Author
|
By checking the CI log of bpf-next-main, we can see the unsupported kprobe functions are: |
a47465f to
0bd3a6b
Compare
Member
|
Thanks for the PR! I think the long term solution for both As a temporary solution we can definitely accept this PR for the |
Contributor
Author
Great. I'm on it. |
0bd3a6b to
43cc299
Compare
fa5abbe to
8bc3128
Compare
brb
reviewed
Dec 20, 2023
8bc3128 to
6a20b3f
Compare
Member
|
@Asphaltt 👋 I'm catching up on reviews. Is this PR ready for the review? |
With collection, we are able to get kprobe_skb bpf prog dynamically. So, we can reduce some plain code. Signed-off-by: Leon Hwang <hffilwlqm@gmail.com>
As Martynas P. suggests, it's better to use func addrs instead of symbols for `kprobe.multi`. Signed-off-by: Leon Hwang <hffilwlqm@gmail.com>
As pwru runs kprobe.multi with function's addresses, we can revert `--backend kprobe` to run with kprobe.multi. This reverts commit c3a9091.
6a20b3f to
98c24dc
Compare
Contributor
Author
|
Yes, it's ready. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Fix #284
If we do kprobe.multi, kprobe on functions' addresses instead of symbols.