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
Add Kernel Misc Probe #17541
Add Kernel Misc Probe #17541
Conversation
@pchaigno @joestringer I created this PR for kernel large instruction probe to warn in the log if kernel not supporting large instructions
|
9e1c503
to
6b842a4
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM.
I notice that this is marked as "draft" and you have not clicked the "ready for review" button. This is likely why folks are not looking at this PR, as we usually use draft status only for under-development PRs that do not need reviewer attention yet.
I see, I clicked the "ready for review" now |
6b842a4
to
0fe34dd
Compare
fixed the checkpatch.pl missing Signed-off-by |
I added @pchaigno into the reviewers since we discussed this earlier, and to let him know in case he already prepared similar changes. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM. I agree with Timo's feedback, we should keep the same pattern as we have for helpers, maps and program types.
88649d5
to
3029d91
Compare
pkg/datapath/linux/probes/probes.go
Outdated
@@ -306,6 +312,11 @@ func (p *ProbeManager) GetMapTypes() *MapTypes { | |||
return &p.features.MapTypes | |||
} | |||
|
|||
// GetMisc returns information about kernel misc. | |||
func (p *ProbeManager) GetMisc() *Misc { | |||
return &p.features.Misc |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Just returning p.features.Misc
will do. Returning a pointer will unnecessarily allocate on the heap.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ah, good to know that, thanks! done
Add kernel misc feature probe which include kernel BPF large instruction support information. It allows Cilium features to probe kernel large instruction support. Signed-off-by: Vincent Li <vincent.mc.li@gmail.com>
3029d91
to
9768b8c
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks!
The new code is not used anywhere yet so I don't think it's worth running the full end-to-end testing suite. Several tests already checked the code compiles and smoke tests ran successfully. Team review requests are covered. Marking ready to merge. |
Add Kernel Misc Probe
Add kernel misc feature probe which include kernel BPF large instruction
support information. It allows Cilium features to probe kernel large instruction
Signed-off-by: Vincent Li vincent.mc.li@gmail.com
Please ensure your pull request adheres to the following guidelines:
description and a
Fixes: #XXX
line if the commit addresses a particularGitHub issue.