You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi, in an eBPF program that i'm loading with gobpf I need to perform atomic increments and atomic set. For the first, I use __sync_fetch_and_add with no issues, however if I try to use __sync_lock_test_and_set for the latter, while compilation passes, I get a runtime error from the validator:
Hi, in an eBPF program that i'm loading with gobpf I need to perform atomic increments and atomic set. For the first, I use
__sync_fetch_and_add
with no issues, however if I try to use__sync_lock_test_and_set
for the latter, while compilation passes, I get a runtime error from the validator:How do I perform atomic set of a variable so that i don't have to use PER_CPU arrays?
eBPF program compiled with clang 12.0.1, running on 5.8.0-53-generic ( x86_64 )
The text was updated successfully, but these errors were encountered: