-
Notifications
You must be signed in to change notification settings - Fork 360
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 support for bpf_attr type #246
add support for bpf_attr type #246
Conversation
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!
Some initial comments:
- You should also commit the generated files (i.e. inside
api/
directory typemake
to generate grpc files and then in the top-level directorymake codegen && make generate
). - It seems that it lacks proper code formatting (i.e.
make format
). - In
crds/examples/
there are a couple of examples on how to use various types. It would be great if you can add an example there as well. - It would be also great if we can have a simple unit test for that (but this can be also done as a followup into a separate PR).
f5b362a
to
22d27a7
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.
There is an error in checkpatch.pl
which requires a header similar to this in bpf/process/types/bpfattr.h
.
Other than that, this looks good to me.
This patch allows us to collect name, program type, and instruction count of eBPF programs when they are verified. Signed-off-by: Sarah Fujimori <sarah.fujimori@isovalent.com>
22d27a7
to
1dc5839
Compare
We can ignore the checkpatch job for now, that warning is a false positive which I am fixing here #258 |
@sarahfujimori Mind running |
needs a rebase as well.. |
see #275 |
This patch allows us to collect name, program type, and instruction
count of eBPF programs when they are verified.
Signed-off-by: Sarah Fujimori sarah.fujimori@isovalent.com