@@ -322,6 +322,8 @@ static void check_for_xen_pmi_bug(const perf_event_attrs &perf_attr) {
322
322
" virtualization bug.\n "
323
323
" Aborting. Retry with -F to override, but it will probably\n "
324
324
" fail." ;
325
+ } else {
326
+ cpu_improperly_configured = true ;
325
327
}
326
328
}
327
329
}
@@ -348,11 +350,13 @@ static void check_for_zen_speclockmap() {
348
350
LOG (debug) << " SpecLockMap is disabled" ;
349
351
} else {
350
352
LOG (debug) << " SpecLockMap is not disabled" ;
351
- if (!Flags::get ().suppress_environment_warnings ) {
353
+ if (!Flags::get ().force_things ) {
352
354
fprintf (stderr,
353
355
" On Zen CPUs, rr will not work reliably unless you disable the "
354
356
" hardware SpecLockMap optimization.\n For instructions on how to "
355
357
" do this, see https://github.com/rr-debugger/rr/wiki/Zen\n " );
358
+ } else {
359
+ cpu_improperly_configured = true ;
356
360
}
357
361
}
358
362
}
@@ -376,7 +380,7 @@ static void check_for_freeze_on_smi() {
376
380
LOG (debug) << " freeze_on_smi is set" ;
377
381
} else if (freeze_on_smi == ' 0' ) {
378
382
LOG (warn) << " freeze_on_smi is not set" ;
379
- if (!Flags::get ().suppress_environment_warnings ) {
383
+ if (!Flags::get ().force_things ) {
380
384
fprintf (stderr,
381
385
" Freezing performance counters on SMIs should be enabled for maximum rr\n "
382
386
" reliability on Comet Lake and later CPUs. To manually enable this setting, run\n "
@@ -386,6 +390,8 @@ static void check_for_freeze_on_smi() {
386
390
" to automatically apply this setting on every reboot.\n "
387
391
" See 'man 5 sysfs', 'man 5 tmpfiles.d'.\n "
388
392
" If you are seeing this message, the setting has not been enabled.\n " );
393
+ } else {
394
+ cpu_improperly_configured = true ;
389
395
}
390
396
} else {
391
397
LOG (warn) << " Unrecognized freeze_on_smi value " << freeze_on_smi;
0 commit comments