Timo Beckers
Timo Beckers
@mtardy @weli-l I've just merged #1630 that re-adds a `ProgramOptions.LogSizeStart` field for situations like these. It sets the size of the log buffer at the start of the growth algorithm....
> This seems like a nice improvement, since you get the validation from the struct assignment, but I wonder if this is something that should be a follow up PR?...
Interesting, this could help with the new Map.Memory() API as well. Would be nice to see the names show up in pmap.
> Interesting, this could help with the new Map.Memory() API as well. Would be nice to see the names show up in pmap. Unfortunately, this doesn't seem to work for...
Yep, we should build some guard rails into the Load* functions that sanity-check fdinfo. IIRC fdinfo hasn't always been available for bpffs nodes, but my memory's a little fuzzy since...
@mtardy FYI some things are moving in https://github.com/cilium/ebpf/pull/1570. This patch now always consults fdinfo regardless if ObjInfo is supported on the kernel or not. We could include a call to...
Hey, thanks for the patch! I'm planning to publish a page on https://ebpf-go.dev soon that demonstrates rewriting constants, as well as some related things about section naming for .rodata etc....
Hi @sancppp, I'm working on deprecating RewriteConstants in favor of `CollectionSpec.Variables` (in progress here https://github.com/ti-mo/ebpf/tree/tb/ebpf-variables). It will come with a manual page on ebpf-go.dev and an example, so I'll close...
> It appears that `.Info()` on `ebpf.Map` (but not on `ebpf.Program`) does not work when run by non-root user with capabilities. > > The changes you propose will also prevent...
@kwakubiney Are you sure? A new cgroup hook generally means we need to add a new attach type. The `sys.BPF_CGROUP_UNIX_*` constants have already been synced into our internal `sys/` package,...