Is there a BPF_MAP_LOOKUP_AND_UPDATE_ELEM syscall similar to BPF_MAP_LOOKUP_AND_DELETE_ELEM?
I would like to know if there is a syscall which can be used through libbpf to lookup a map and also update the contents of the map. My use case is to lookup and update an map type of BPF_MAP_TYPE_ARRAY by holding a bpf spin lock.
Is there a way to safely update an eBPF map with a spin lock held in the ebpf program?
I want to update an eBPF map in the code region where a spin lock on a different map is held.The user space code continuously polls for this map, so I don’t want a map whose values are partially updated to be copied to the user space.