Skip to content

Is it possible to use CO-RE with kernel 4.9? #1033

Closed Answered by lmb
tanshihaj asked this question in Q&A
Discussion options

You must be logged in to vote

So, bpf2go is a way for you to compile C to BPF and ship it in your go binary. It doesn't have a kernel dependency.

When you say applyRelocations, I'm assuming you're talking about CO-RE? The library allows you to provide your own BTF using ProgramOptions.KernelTypes. You can combine this with btfhub which has BTF for popular distros / older kernels.

Replies: 1 comment 2 replies

Comment options

You must be logged in to vote
2 replies
@tanshihaj
Comment options

@tanshihaj
Comment options

Answer selected by tanshihaj
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants