diff options
author | Samuel Thibault <samuel.thibault@ens-lyon.org> | 2023-09-30 10:50:05 +0200 |
---|---|---|
committer | Samuel Thibault <samuel.thibault@ens-lyon.org> | 2023-09-30 10:50:05 +0200 |
commit | 511536317e810a5d204530ed8513f645acf67d9c (patch) | |
tree | e5904ae010119317e976c88610ca0de63508cf70 /configfrag.ac | |
parent | 507dc37fa014714d4cc74df221227e0894d042c2 (diff) | |
download | gnumach-511536317e810a5d204530ed8513f645acf67d9c.tar.gz gnumach-511536317e810a5d204530ed8513f645acf67d9c.tar.bz2 gnumach-511536317e810a5d204530ed8513f645acf67d9c.zip |
Re-enable MACH_PCSAMPLE for non-smp
Diffstat (limited to 'configfrag.ac')
-rw-r--r-- | configfrag.ac | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/configfrag.ac b/configfrag.ac index 290a1596..f9285c9d 100644 --- a/configfrag.ac +++ b/configfrag.ac @@ -99,7 +99,12 @@ AC_DEFINE([MACH_MP_DEBUG], [0], [MACH_MP_DEBUG]) AC_DEFINE([MACH_PAGEMAP], [1], [MACH_PAGEMAP]) # Do pc sample histogram. -AC_DEFINE([MACH_PCSAMPLE], [0], [MACH_PCSAMPLE]) +[if [ $mach_ncpus -gt 1 ]; then] + # Apparently not MP-safe yet. + AC_DEFINE([MACH_PCSAMPLE], [0], [MACH_PCSAMPLE]) +[else] + AC_DEFINE([MACH_PCSAMPLE], [1], [MACH_PCSAMPLE]) +[fi] # Sample kernel too. AC_ARG_ENABLE([kernsample], |