Hello folks,
We have an eBPF program that shares a 64-bits integer with userspace
using an array map. The eBPF program only reads the integer while the
user-space application only writes it.
We know this is possible that under some conditions, for example the
integer is not aligned to cache line size in x86_64, the reader can see
a partially updated value. We wonder if eBPF have some guarantees about
atomicity of the load operation in this case, or if this is totally
dependent on the target architecture.
Is there a way to implement this without using bpf_spin_lock?
Thanks,
Mauricio.
-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#1563): https://lists.iovisor.org/g/iovisor-dev/message/1563
Mute This Topic: https://lists.iovisor.org/mt/29691062/21656
Group Owner: [email protected]
Unsubscribe: https://lists.iovisor.org/g/iovisor-dev/unsub
[[email protected]]
-=-=-=-=-=-=-=-=-=-=-=-