Timo Beckers
Timo Beckers
> We could fall back if the logErr is nil, or we could factor it out into a separate function and call that from the BTF loading code. This feels...
@qmonnet Thank you for the example! Looks like this does indeed rely on being able to obtain the vmlinux BTF, which requires sysfs to be mounted and accessible at `/sys`....
(continuation of https://github.com/cilium/ebpf/pull/321#discussion_r670461168) > So yes, the vmlinux BTF is loaded into the kernel somehow? Yes, (all?) kernel BTF seems to be preloaded as far as I can see: ```...
This will become possible to implement after https://github.com/cilium/ebpf/pull/641 has been merged.
Closing this as we no longer really need this for probing (see https://github.com/cilium/ebpf/pull/746) and https://github.com/cilium/ebpf/pull/641 will be pushed over the line at some point.
Reopened as we'll still need to gain the ability to craft a valid StructOps program at some point for probing helper type availability.
Sure, but the bool's already there, so we can't remove it without breaking API, we might as well use it. The problem is that currently, it's not possible to distinguish...
For kconfig parsing, I have and old package at https://github.com/ti-mo/kconfig, but it's not very well-tested and a bit performance-naive. Could be a good start, though. Feel free to take the...
@eiffel-fl This is `internal.KernelVersion()`.
@EItanya Before we commit to this approach, could you provide a real-world example to demonstrate how this is applied? Could you get away with embedding this information in the map...