elastic / ebpf

Elastic's eBPF
Other
67 stars 11 forks source link

Fix map creation on AWS Linux #33

Closed stanek-michal closed 3 years ago

stanek-michal commented 3 years ago

AWS has an old kernel (4.14) where struct bpf_map did not have the name field. Creating a map with a name caused an error. Instead, create a map with no name. The maps are pinned to BPF FS so bpftool should still show the names properly with 'map list'.

leodido commented 3 years ago

This is the reason I like eBPF.

2 ours debugging (in 3-4 persons) and then it resolves to one line change! :D