]> git.feebdaed.xyz Git - 0xmirror/ebpf.git/commit
map: preliminary support for arenas
authorTimo Beckers <timo@isovalent.com>
Tue, 9 Sep 2025 12:12:33 +0000 (14:12 +0200)
committerTimo Beckers <ti-mo@users.noreply.github.com>
Tue, 9 Sep 2025 12:50:16 +0000 (14:50 +0200)
commitdc256170d8d343fbfdf751c54f4cbb4b4d7aaba3
tree6b63dc4f3bf8f054b86a8d0be51c7b4924c84323
parent4ead5d0134bf569fb1af638a0dad752c17ac0cd1
map: preliminary support for arenas

This commit teaches ebpf-go to understand the __ulong BTF map definition macro
and uses it to specify a 64-bit value for map_extra in an arena map, defining
the start of the mmap region for the Collection's arena.

Signed-off-by: Timo Beckers <timo@isovalent.com>
Makefile
elf_reader.go
elf_reader_test.go
testdata/arena-eb.elf [new file with mode: 0644]
testdata/arena-el.elf [new file with mode: 0644]
testdata/arena.c [new file with mode: 0644]
testdata/common.h