From 243986c1da440c763393a4a37d5b3922b6baa3cc Mon Sep 17 00:00:00 2001 From: "Alexis (Poliorcetics) Bourget" Date: Thu, 1 Jun 2023 16:39:34 +0200 Subject: [PATCH] fix: Relax unnecessarily strict atomic ordering on probe event_alias --- aya/src/programs/probe.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/aya/src/programs/probe.rs b/aya/src/programs/probe.rs index 44b93790..15dc143d 100644 --- a/aya/src/programs/probe.rs +++ b/aya/src/programs/probe.rs @@ -166,7 +166,7 @@ fn create_probe_event( probe_type_prefix, fn_name, offset, - PROBE_NAME_INDEX.fetch_add(1, Ordering::SeqCst) + PROBE_NAME_INDEX.fetch_add(1, Ordering::AcqRel) ); let offset_suffix = match kind { KProbe => format!("+{offset}"),