Skip to content

__kconfig can not be used < 5.2 #1119

Answered by ti-mo
g0dA asked this question in Q&A
Aug 17, 2023 · 1 comments · 5 replies
Discussion options

You must be logged in to vote

FYI, 3.10.x is absolutely ancient and has very limited bpf support in general. If you want to use ebpf in any serious capacity today, you'll want to target at least 4.18 (or 4.19, it's LTS) for BTF support.

Since ebpf-go doesn't really facilitate the user space side of mmapable maps, I guess we should drop setting BPF_F_MMAPABLE on .kconfig by default for now. (@rgo3) They're going to be more useful from libbpf-based C projects since structs can be shared across the user space and bpf C programs. In Go, you'd need to be careful aligning C and Go struct layouts, and things like bitfields aren't even supported by the language itself, so that complicates matters a bit. There's no reason mmap…

Replies: 1 comment 5 replies

Comment options

You must be logged in to vote
5 replies
@g0dA
Comment options

@florianl
Comment options

@g0dA
Comment options

@ti-mo
Comment options

Answer selected by g0dA
@g0dA
Comment options

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