Skip to content

Commit

Permalink
fix: Relax unnecessarily strict atomic ordering on probe event_alias
Browse files Browse the repository at this point in the history
  • Loading branch information
poliorcetics committed Jun 1, 2023
1 parent d56ed8f commit 243986c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion aya/src/programs/probe.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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}"),
Expand Down

0 comments on commit 243986c

Please sign in to comment.