-
when i load ebpf program occur error:
this error from Line 451 in 01ebd4c in my code
the section Lines 1139 to 1149 in 01ebd4c so, can i rewrite |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 5 replies
-
hi 👋 haveMapMutabilityModifiers() does not perform a check against a specific Linux kernel version, but tries to create a map with the specified attribute. If this probe does not succeed, Did you try to run your program on other system with other Linux kernels? Which Linux kernels did you test? |
Beta Was this translation helpful? Give feedback.
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…