@@ -351,10 +351,10 @@ static void check_for_zen_speclockmap() {
351
351
} else {
352
352
LOG (debug) << " SpecLockMap is not disabled" ;
353
353
if (!Flags::get ().force_things ) {
354
- fprintf (stderr,
354
+ CLEAN_FATAL () <<
355
355
" On Zen CPUs, rr will not work reliably unless you disable the "
356
356
" hardware SpecLockMap optimization.\n For instructions on how to "
357
- " do this, see https://github.com/rr-debugger/rr/wiki/Zen\n " ) ;
357
+ " do this, see https://github.com/rr-debugger/rr/wiki/Zen\n " ;
358
358
} else {
359
359
cpu_improperly_configured = true ;
360
360
}
@@ -381,15 +381,15 @@ static void check_for_freeze_on_smi() {
381
381
} else if (freeze_on_smi == ' 0' ) {
382
382
LOG (warn) << " freeze_on_smi is not set" ;
383
383
if (!Flags::get ().force_things ) {
384
- fprintf (stderr,
384
+ CLEAN_FATAL () <<
385
385
" Freezing performance counters on SMIs should be enabled for maximum rr\n "
386
386
" reliability on Comet Lake and later CPUs. To manually enable this setting, run\n "
387
387
" \t echo 1 | sudo tee /sys/devices/cpu/freeze_on_smi\n "
388
388
" On systemd systems, consider putting\n "
389
389
" 'w /sys/devices/cpu/freeze_on_smi - - - - 1' into /etc/tmpfiles.d/10-rr.conf\n "
390
390
" to automatically apply this setting on every reboot.\n "
391
391
" See 'man 5 sysfs', 'man 5 tmpfiles.d'.\n "
392
- " If you are seeing this message, the setting has not been enabled.\n " ) ;
392
+ " If you are seeing this message, the setting has not been enabled.\n " ;
393
393
} else {
394
394
cpu_improperly_configured = true ;
395
395
}
0 commit comments