Lorenz Bauer

Results 71 issues of Lorenz Bauer

We currently inherit an allocation problem from `encoding/binary`: `binary.Size` doesn't cache it's result for slices of structs. This means that our zero-alloc code path via `sysenc` isn't zero-alloc, since we...

help wanted

Running our test suite creates coverage information in `coverage.out`: ``` $ ./run-tests.sh 6.1 Fetching linux-6.1-amd64.tgz Fetching linux-6.1-amd64-selftests-bpf.tgz ... $ ls -lh coverage.out -rw-r--r--. 1 lorenz lorenz 521K Dec 6 14:12...

good first issue

btf_types.go contains a bunch of hand written structs that map to types defined in the kernel's UAPI. We should replace these with auto generated types in sys package and use...

We allow updating per-CPU maps with a slice that has less than PossibleCPUs items. ``` k := ... v := make([]uint32, 2) // where possibleCPUs > 2 m.Update(k, v) //...

help wanted

Timo is in the process of moving cilium/cilium over to use ebpf.Map more consistently and he found that map operations in the lib allocate a lot more than the old...

enhancement

#1193 added support for new instructions. We need to extend `COREFixup.Apply` to recognise the new load / store modes. ```[tasklist] ### Tasks - [ ] Check what libbpf does. Did...

bug
help wanted

We currently hardcode pointer size: https://github.com/cilium/ebpf/blob/9447ec825af0802d63ea2d74523536f99622bb59/btf/types.go#L149 The kernel uses [`sizeof(void*)` instead](https://elixir.bootlin.com/linux/v6.2.2/source/kernel/bpf/btf.c#L1960). That size depends on which [data model](https://en.wikipedia.org/wiki/64-bit_computing#64-bit_data_models) is used.The correct size of `Pointer` in Go land is actually `unsafe.Sizeof(uintptr(0))`,...

bug

This is probably an upstream QEMU bug, but I think it'd be good to try and find a work around. The following command hangs indefinitely: ``` $ virtme-run --show-boot-console --kimg...

This is based on the pull request in https://github.com/Voxer/stud/pull/2 by @indutny. I've done some local testing, and it seems to work fine. The only change I made was fixing the...

pkg/bpf: allow overriding constants during load Signed-off-by: Lorenz Bauer loader: remove loader.ELFSubstitutions Seems like a needless abstraction, remove it. Signed-off-by: Lorenz Bauer loader: make EndpointHash infallible The loader exports a...

sig/loader
release-note/misc