Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F152509176
D6812.id17520.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
863 B
Referenced Files
None
Subscribers
None
D6812.id17520.diff
View Options
Index: sys/conf/options
===================================================================
--- sys/conf/options
+++ sys/conf/options
@@ -65,6 +65,7 @@
EARLY_PRINTF opt_global.h
TEXTDUMP_PREFERRED opt_ddb.h
TEXTDUMP_VERBOSE opt_ddb.h
+NUM_CORES opt_global.h
# Miscellaneous options.
ADAPTIVE_LOCKMGRS
Index: sys/kern/kern_sig.c
===================================================================
--- sys/kern/kern_sig.c
+++ sys/kern/kern_sig.c
@@ -3080,8 +3080,12 @@
* We only have 1 character for the core count in the format
* string, so the range will be 0-9
*/
-#define MAX_NUM_CORES 10
-static int num_cores = 5;
+#define MAX_NUM_CORES 10
+#ifndef NUM_CORES
+#define NUM_CORES 5
+#endif
+CTASSERT(NUM_CORES >= 0 && NUM_CORES <= MAX_NUM_CORES);
+static int num_cores = NUM_CORES;
static int
sysctl_debug_num_cores_check (SYSCTL_HANDLER_ARGS)
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Thu, Apr 16, 10:10 AM (11 h, 52 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
31595063
Default Alt Text
D6812.id17520.diff (863 B)
Attached To
Mode
D6812: Allow specifying number of cores allowed via kernel config
Attached
Detach File
Event Timeline
Log In to Comment