Skip to content

Commit

Permalink
honor suppress_environment_warnings for Zen warning
Browse files Browse the repository at this point in the history
fixes #3818
  • Loading branch information
GitMensch authored and rocallahan committed Sep 11, 2024
1 parent 21f051b commit fd232c6
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions src/PerfCounters_x86.h
Original file line number Diff line number Diff line change
Expand Up @@ -344,10 +344,12 @@ static void check_for_zen_speclockmap() {
LOG(debug) << "SpecLockMap is disabled";
} else {
LOG(debug) << "SpecLockMap is not disabled";
fprintf(stderr,
"On Zen CPUs, rr will not work reliably unless you disable the "
"hardware SpecLockMap optimization.\nFor instructions on how to "
"do this, see https://github.com/rr-debugger/rr/wiki/Zen\n");
if (!Flags::get().suppress_environment_warnings) {
fprintf(stderr,
"On Zen CPUs, rr will not work reliably unless you disable the "
"hardware SpecLockMap optimization.\nFor instructions on how to "
"do this, see https://github.com/rr-debugger/rr/wiki/Zen\n");
}
}
}
}
Expand Down

0 comments on commit fd232c6

Please sign in to comment.