Lorenz Bauer
Lorenz Bauer
The [documentation for Assert](https://pkg.go.dev/github.com/frankban/quicktest#Assert) has this bit in it: ``` Additional args (not consumed by the checker), when provided, are included as comments in the failure output when the check...
If you try to run tests / use the filter on stock Ubuntu, you get the following error: ``` $ sudo -E go test --- FAIL: TestNew (0.08s) rakelimit_test.go:14: Can't...
The single call to `bpf_ktime_get_ns` uses about 30% of benchmark time on my machine. It would be a big perf win if we can replace it with something else. There...
The value we store in a count-min sketch is currently 128bit: ``` struct cm_value { fpoint value; __u64 ts; }; ``` I think we can compress this to 64 bits...
btf: add limited support for BTF_KIND_DECL_TAG and BTF_KIND_TYPE_TAG Parse decl and type tags from BTF so that we can read BTF on new kernels. The new types are not exported...
Linux 5.18 added a two new BTF kinds [DECL_TAG and TYPE_TAG](https://github.com/torvalds/linux/blob/169e77764adc041b1dacba84ea90516a895d43b2/Documentation/bpf/btf.rst#2217-btf_kind_decl_tag). TYPE_TAG seems fine, the encoding for DECL_TAG looks like a headache. Most relevant Linux commit: https://github.com/torvalds/linux/commit/7472d5a642c94a0ee1882ff3038de72ffe803a01 `pahole` only generates...
As @brycekahle points out we currently do a lot of reading files in /sys/ when creating kprobes, etc: https://github.com/cilium/ebpf/commit/cb5b8b6084b4042fad214d237f2cd223732bb3ed#r49230542 It'd be nice to fix this by only reading the necessary...
Newer kernels ship with separate BTF for kernel modules (kmod): ``` $ ls /sys/kernel/btf/ | head -n5 aes_ce_blk aes_ce_cipher aes_neon_blk aes_neon_bs async_memcpy ``` The library is currently oblivious to their...
This is a first cut at adding a `btf.Builder` which allows turning `Type` into BTF that the kernel understands. The code can round-trip vmlinux BTF and then load the result...
``` --- FAIL: TestLibBPFCompat (0.01s) --- FAIL: TestLibBPFCompat/netif_receive_skb.linked3.o (0.01s) elf_reader_test.go:665: Error during loading: program trace_netif_receive_skb: apply CO-RE relocations: apply fixup target_type_id=67->16253: invalid immediate 73, expected 67 (fixup: target_type_id=67->16253) ``` `target_type_id=67->16253`...