-
Notifications
You must be signed in to change notification settings - Fork 752
wip: BTF + core targets #1735
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
Closed
Closed
wip: BTF + core targets #1735
Conversation
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
Signed-off-by: Lorenzo Fontana <lo@linux.com>
Signed-off-by: Lorenzo Fontana <lo@linux.com>
Signed-off-by: Lorenzo Fontana <lo@linux.com>
Signed-off-by: Lorenzo Fontana <lo@linux.com>
vmlinux.h Signed-off-by: Lorenzo Fontana <lo@linux.com>
Signed-off-by: Lorenzo Fontana <lo@linux.com>
relocations for reads. Signed-off-by: Lorenzo Fontana <lo@linux.com>
Signed-off-by: Lorenzo Fontana <lo@linux.com>
We can use libbpf + BTF without necessarily using the CO-RE definitions to read structure fields. This is necessary so that we can still compile without kernel headers even if when we don't compile CO-RE. Signed-off-by: Lorenzo Fontana <lo@linux.com>
Signed-off-by: Lorenzo Fontana <lo@linux.com>
Signed-off-by: Lorenzo Fontana <lo@linux.com>
Signed-off-by: Lorenzo Fontana <lo@linux.com>
Signed-off-by: Lorenzo Fontana <lo@linux.com>
882fcf2 to
b3c6be7
Compare
Signed-off-by: Lorenzo Fontana <lo@linux.com>
Signed-off-by: Lorenzo Fontana <lo@linux.com>
Signed-off-by: Lorenzo Fontana <lo@linux.com>
Signed-off-by: Lorenzo Fontana <lo@linux.com>
Signed-off-by: Lorenzo Fontana <lo@linux.com>
Signed-off-by: Lorenzo Fontana <lo@linux.com>
Signed-off-by: Lorenzo Fontana <lo@linux.com>
Signed-off-by: Lorenzo Fontana <lo@linux.com>
Signed-off-by: Lorenzo Fontana <lo@linux.com>
…, assertions and checks Signed-off-by: Lorenzo Fontana <lo@linux.com>
Signed-off-by: Lorenzo Fontana <lo@linux.com>
Contributor
Author
|
I'm closing this. Will reopen against https://github.com/falcosecurity/libs/ |
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.
One of the biggest struggle for sysdig's users is that they have to have kernel headers
vmlinux.hwe need to copy and maintain in sync the ones we want for the different architectures. The ones we copied don't change very often. This is the recommended way now.What does this mean?
We will have three different ways to compile our BPF probe.
make bpfThis is the usual bpf probe we are all used to, but now uses libbpf instead of our old definitions taken from the kernel.
This target still depends on the kernel headers.
make bpf-btfThis is our bpf probe but compiled for including the BPF type format.
This target does not depend on kernel headers. It is likely that probes compiled with this target
will be compatible across kernels on the same version but with different patches.
This is the recommended target for > 5.8 kernels
make bpf-btf-coreThis is the same as
make bpf-btfbut the generated probe will also be using CO-REThis target does not depend on kernel headers, compiled probes are compile once run everywhere.
It's unlikely that our probe will be 100% working with this target in most cases.
Using this target is not recommended yet because our probe and the kernel require more work for it to be compatible but it's good to have the scaffolding done.
Signed-off-by: Lorenzo Fontana lo@linux.com