]> git.saurik.com Git - apple/xnu.git/blame - config/MASTER
xnu-3248.40.184.tar.gz
[apple/xnu.git] / config / MASTER
CommitLineData
1c79356b
A
1#
2# Mach Operating System
3# Copyright (c) 1986 Carnegie-Mellon University
fe8ab488
A
4# Copyright 2001-2014 Apple Inc.
5#
1c79356b
A
6# All rights reserved. The CMU software License Agreement
7# specifies the terms and conditions for use and redistribution.
8#
9#######################################################################
10#
11# Master machine independent configuration file.
12#
13# Specific configuration files are created based on this and
14# the machine specific master file using the doconf script.
15#
16# Any changes to the master configuration files will affect all
17# other configuration files based upon it.
18#
19#######################################################################
20#
21# To build a configuration, execute "doconf <configuration>."
22# Configurations are specified in the "Configurations:" section
23# of the MASTER and MASTER.* files as follows:
24#
25# <configuration> = [ <attribute0> <attribute1> ... <attributeN> ]
26#
27# Lines in the MASTER and MASTER.* files are selected based on
28# the attribute selector list, found in a comment at the end of
29# the line. This is a list of attributes separated by commas.
30# The "!" operator selects the line if none of the attributes are
31# specified.
32#
33# For example:
34#
35# <foo,bar> selects a line if "foo" or "bar" are specified.
36# <!foo,bar> selects a line if neither "foo" nor "bar" is
37# specified.
38#
39# Lines with no attributes specified are selected for all
40# configurations.
41#
42#######################################################################
43#
1c79356b
A
44# SYSTEM SIZE CONFIGURATION (select exactly one)
45#
46# xlarge = extra large scale system configuration
47# large = large scale system configuration
48# medium = medium scale system configuration
49# small = small scale system configuration
50# xsmall = extra small scale system configuration
2d21ac55 51# bsmall = special extra small scale system configuration
1c79356b
A
52#
53#######################################################################
1c79356b 54#
1c79356b 55
3e170ce0 56options INET # # <inet>
1c79356b
A
57options HW_AST # Hardware ast support # <hw_ast>
58options HW_FOOTPRINT # Cache footprint support # <hw_foot>
2d21ac55 59
1c79356b 60options MACH # Standard Mach features # <mach>
1c79356b 61options MACH_COMPAT # Vendor syscall compatibility # <mach>
1c79356b 62options MACH_FASTLINK # Fast symbolic links
1c79356b
A
63options MACH_HOST # Mach host (resource alloc.) # <host>
64options MACH_IPC_COMPAT # Enable old IPC interface # <ipc_compat>
1c79356b 65options MACH_IPC_TEST # Testing code/printfs # <ipc_test>
1c79356b
A
66options MACH_NP # Mach IPC support # <np>
67options MACH_NBC # No buffer cache # <nbc>
1c79356b
A
68options MACH_NET # Fast network access # <mach_net>
69options MACH_XP # external pager support # <xp>
1c79356b 70options NO_DIRECT_RPC # for untyped mig servers #
1c79356b 71options LOOP # loopback support # <loop>
1c79356b 72options VLAN # # <vlan>
91447636 73options BOND # # <bond>
fe8ab488
A
74options AH_ALL_CRYPTO # AH all crypto algs # <ah_all_crypto>
75options IPCOMP_ZLIB # IP compression using zlib # <ipcomp_zlib>
b0d623f7 76options PF # Packet Filter # <pf>
316670eb 77options PF_ALTQ # PF ALTQ (Alternate Queueing) # <pf_altq>
3e170ce0 78options PF_ECN # PF use ECN marking # <pf_ecn>
b0d623f7 79options PFLOG # PF log interface # <pflog>
316670eb
A
80options PKTSCHED_CBQ # CBQ packet scheduler # <pktsched_cbq>
81options PKTSCHED_HFSC # H-FSC packet scheduler # <pktsched_hfsc>
82options PKTSCHED_PRIQ # PRIQ packet scheduler # <pktsched_priq>
83options PKTSCHED_FAIRQ # FAIRQ packet scheduler # <pktsched_fairq>
39236c6e 84options MEASURE_BW # interface bandwidth measurement # <measure_bw>
316670eb
A
85options CLASSQ_BLUE # BLUE queueing algorithm # <classq_blue>
86options CLASSQ_RED # RED queueing algorithm # <classq_red>
87options CLASSQ_RIO # RIO queueing algorithm # <classq_rio>
2d21ac55
A
88options IPDIVERT # Divert sockets (for NAT) # <ipdivert>
89options IPFIREWALL # IP Firewalling (used by NAT) # <ipfirewall>
90options IPFIREWALL_FORWARD #Transparent proxy # <ipfirewall>
91options IPFIREWALL_DEFAULT_TO_ACCEPT # allow everything by default # <ipfirewall>
91447636 92options DUMMYNET # dummynet support # <dummynet>
2d21ac55 93options TRAFFIC_MGT # traffic management support # <traffic_mgt>
91447636 94options IPFW2 # IP firewall (new version) # <ipfw2>
1c79356b 95options MULTICAST # Internet Protocol Class-D $
9bccf70c 96options TCPDEBUG # TCP debug # <tcpdebug>
9bccf70c
A
97options TCP_DROP_SYNFIN # Drop TCP packets with SYN+FIN set # <tcpdrop_synfin>
98options ICMP_BANDLIM # ICMP bandwidth limiting sysctl
2d21ac55 99options IFNET_INPUT_SANITY_CHK # allow dlil/ifnet input sanity check # <ifnet_input_chk>
39236c6e
A
100options MULTIPATH # Multipath domain # <multipath>
101options MPTCP # Multipath TCP # <mptcp>
3e170ce0
A
102options SYSV_SEM # SVID semaphores # <sysv_sem>
103options SYSV_MSG # SVID messages # <sysv_msg>
104options SYSV_SHM # SVID shared mem # <sysv_shm>
105options PSYNCH # pthread synch # <psynch>
39236c6e 106options FLOW_DIVERT # <flow_divert>
fe8ab488
A
107options NECP # <necp>
108options CONTENT_FILTER # # <content_filter>
109options PACKET_MANGLER # # <packet_mangler>
2d21ac55
A
110# secure_kernel - secure kernel from user programs
111options SECURE_KERNEL # <secure_kernel>
1c79356b 112
b0d623f7
A
113options OLD_SEMWAIT_SIGNAL # old semwait_signal handler
114
1c79356b
A
115#
116# 4.4 general kernel
117#
3e170ce0
A
118options SOCKETS # socket support # <inet, inet6>
119options DIAGNOSTIC # diagnostics # <diagnostic>
120options GPROF # build profiling # <profile>
fe8ab488 121options PROFILE # kernel profiling # <profile>
2d21ac55 122options SENDFILE # sendfile # <sendfile>
3e170ce0 123options NETWORKING # networking layer # <inet, inet6>
2d21ac55
A
124options CONFIG_FSE # file system events # <config_fse>
125options CONFIG_IMAGEBOOT # local image boot # <config_imageboot>
2d21ac55 126options CONFIG_MBUF_JUMBO # jumbo cluster pool # <config_mbuf_jumbo>
b0d623f7
A
127options CONFIG_FORCE_OUT_IFP # Enable IP_FORCE_OUT_IFP # <config_force_out_ifp>
128options CONFIG_IFEF_NOWINDOWSCALE # Scale TCP window per driver # <config_ifef_nowindowscale>
593a1d5f
A
129
130options CONFIG_WORKQUEUE # <config_workqueue>
1c79356b
A
131
132#
133# 4.4 filesystems
134#
3e170ce0
A
135options HFS # HFS/HFS+ support # <hfs>
136options MOCKFS # Boot from an executable # <mockfs>
1c79356b 137options FIFO # fifo support # <fifo>
1c79356b 138options FDESC # fdesc_fs support # <fdesc>
1c79356b 139options DEVFS # devfs support # <devfs>
490019cf 140options ROUTEFS # routefs support # <routefs>
3e170ce0
A
141options JOURNALING # journaling support # <journaling>
142options HFS_COMPRESSION # hfs compression # <hfs_compression>
143options CONFIG_HFS_STD # hfs standard support # <config_hfs_std>
144options CONFIG_HFS_TRIM # hfs trims unused blocks # <config_hfs_trim>
145options CONFIG_HFS_MOUNT_UNMAP # hfs trims blocks at mount # <config_hfs_mount_unmap>
146options CONFIG_HFS_DIRLINK # allow directory hardlink creation # <config_hfs_dirlink>
147options CONFIG_DEV_KMEM # /dev/kmem device for reading KVA # <config_dev_kmem>
2d21ac55
A
148
149#
150# file system features
151#
152options QUOTA # file system quotas # <quota>
2d21ac55 153options NAMEDSTREAMS # named stream vnop support # <namedstreams>
39236c6e 154options CONFIG_APPLEDOUBLE # apple double support # <config_appledouble>
2d21ac55 155options CONFIG_VOLFS # volfs path support (legacy) # <config_volfs>
b7266188 156options CONFIG_IMGSRC_ACCESS # source of imageboot dmg # <config_imgsrc_access>
6d2010ae 157options CONFIG_TRIGGERS # trigger vnodes # <config_triggers>
316670eb
A
158options CONFIG_EXT_RESOLVER # e.g. memberd # <config_ext_resolver>
159options CONFIG_SEARCHFS # searchfs syscall support # <config_searchfs>
fe8ab488 160options CONFIG_SECLUDED_RENAME # secluded rename syscall # <config_secluded_rename>
1c79356b
A
161
162#
163# NFS support
164#
2d21ac55
A
165options NFSCLIENT # Be an NFS client # <nfsclient>
166options NFSSERVER # Be an NFS server # <nfsserver>
1c79356b 167
1c79356b
A
168#
169# Machine Independent Apple Features
170#
3e170ce0 171profile # build a profiling kernel # <profile>
1c79356b
A
172
173#
9bccf70c 174# IPv6 Support
1c79356b 175#
3e170ce0
A
176options "INET6" # kernel IPv6 Support # <inet6>
177options IPV6SEND # Secure Neighbor Discovery # <ipv6send>
178options IPSEC # IP security # <ipsec>
179options IPSEC_ESP # IP security # <ipsec>
180options "IPV6FIREWALL" # IPv6 Firewall Feature # <ipv6firewall>
91447636
A
181options "IPV6FIREWALL_DEFAULT_TO_ACCEPT" #IPv6 Firewall Feature # <ipv6firewall>
182#options "IPV6FIREWALL_VERBOSE" #IPv6 Firewall Feature # <ipv6firewall>
9bccf70c 183
3e170ce0
A
184pseudo-device gif 1 # <gif>
185pseudo-device dummy 2 # <dummy>
186pseudo-device stf 1 # <stf>
9bccf70c 187
3e170ce0
A
188options CRYPTO # <ipsec,crypto>
189options CRYPTO_SHA2 # <crypto_sha2>
190options ENCRYPTED_SWAP # <encrypted_swap>
2d21ac55 191
3e170ce0 192options ZLIB # inflate/deflate support # <zlib>
1c79356b 193
3e170ce0 194options IF_BRIDGE # <if_bridge>
b7266188 195
2d21ac55
A
196#
197# configurable kernel event related resources
198#
199options CONFIG_KN_HASHSIZE=64 # <medium,large,xlarge>
200options CONFIG_KN_HASHSIZE=48 # <small,xsmall>
201options CONFIG_KN_HASHSIZE=20 # <bsmall>
202
203#
204# configurable vfs related resources
205# CONFIG_VNODES - used to pre allocate vnode related resources
206# CONFIG_VNODE_FREE_MIN - mininmum number of free vnodes
207# CONFIG_NC_HASH - name cache hash table allocation
208# CONFIG_VFS_NAMES - name strings
209#
210# 263168 magic number for medium CONFIG_VNODES is based on memory
211# Number vnodes is (memsize/64k) + 1024
212# This is the calculation that is used by launchd in tiger
213# we are clipping the max based on 16G
214# ie ((16*1024*1024*1024)/(64 *1024)) + 1024 = 263168;
215
216options CONFIG_VNODES=263168 # <large,xlarge>
217options CONFIG_VNODES=263168 # <medium>
218options CONFIG_VNODES=10240 # <small>
3e170ce0 219options CONFIG_VNODES=750 # <bsmall>
2d21ac55 220
3e170ce0
A
221options CONFIG_VNODE_FREE_MIN=500 # <large,xlarge>
222options CONFIG_VNODE_FREE_MIN=300 # <medium>
223options CONFIG_VNODE_FREE_MIN=200 # <small>
224options CONFIG_VNODE_FREE_MIN=100 # <xsmall>
225options CONFIG_VNODE_FREE_MIN=75 # <bsmall>
2d21ac55
A
226
227options CONFIG_NC_HASH=5120 # <large,xlarge>
228options CONFIG_NC_HASH=4096 # <medium>
229options CONFIG_NC_HASH=2048 # <small,xsmall>
230options CONFIG_NC_HASH=1024 # <bsmall>
231
232options CONFIG_VFS_NAMES=5120 # <large,xlarge>
233options CONFIG_VFS_NAMES=4096 # <medium>
234options CONFIG_VFS_NAMES=3072 # <small,xsmall>
235options CONFIG_VFS_NAMES=2048 # <bsmall>
236
b7266188
A
237options CONFIG_MAX_CLUSTERS=8 # <xlarge,large,medium>
238options CONFIG_MAX_CLUSTERS=4 # <small,xsmall,bsmall>
239
2d21ac55
A
240#
241# configurable options for minumum number of buffers for kernel memory
242#
243options CONFIG_MIN_NBUF=256 # <medium,large,xlarge>
244options CONFIG_MIN_NBUF=128 # <small>
245options CONFIG_MIN_NBUF=80 # <xsmall>
246options CONFIG_MIN_NBUF=64 # <bsmall>
247
248options CONFIG_MIN_NIOBUF=128 # <medium,large,xlarge>
249options CONFIG_MIN_NIOBUF=64 # <xsmall,small>
250options CONFIG_MIN_NIOBUF=32 # <bsmall>
251
252#
253# set maximum space used for packet buffers
254#
3e170ce0
A
255options CONFIG_NMBCLUSTERS="((1024 * 1024) / MCLBYTES)" # <large,xlarge>
256options CONFIG_NMBCLUSTERS="((1024 * 512) / MCLBYTES)" # <medium>
257options CONFIG_NMBCLUSTERS="((1024 * 256) / MCLBYTES)" # <bsmall,xsmall,small>
2d21ac55
A
258
259#
260# Configure size of TCP hash table
261#
262options CONFIG_TCBHASHSIZE=4096 # <medium,large,xlarge>
263options CONFIG_TCBHASHSIZE=128 # <xsmall,small,bsmall>
264
316670eb
A
265#
266# Configure bandwidth limiting sysctl
267#
268options CONFIG_ICMP_BANDLIM=250 # <medium,large,xlarge>
269options CONFIG_ICMP_BANDLIM=50 # <xsmall,small,bsmall>
270
2d21ac55
A
271#
272# configurable async IO options
273# CONFIG_AIO_MAX - system wide limit of async IO requests.
274# CONFIG_AIO_PROCESS_MAX - process limit of async IO requests.
275# CONFIG_AIO_THREAD_COUNT - number of async IO worker threads created.
276#
3e170ce0
A
277options CONFIG_AIO_MAX=360 # <xlarge>
278options CONFIG_AIO_MAX=180 # <large>
2d21ac55
A
279options CONFIG_AIO_MAX=90 # <medium>
280options CONFIG_AIO_MAX=45 # <small>
281options CONFIG_AIO_MAX=20 # <xsmall>
282options CONFIG_AIO_MAX=10 # <bsmall>
283
284options CONFIG_AIO_PROCESS_MAX=64 # <xlarge>
285options CONFIG_AIO_PROCESS_MAX=32 # <large>
286options CONFIG_AIO_PROCESS_MAX=16 # <medium>
287options CONFIG_AIO_PROCESS_MAX=12 # <small>
288options CONFIG_AIO_PROCESS_MAX=8 # <xsmall>
289options CONFIG_AIO_PROCESS_MAX=4 # <bsmall>
290
3e170ce0 291options CONFIG_AIO_THREAD_COUNT=16 # <xlarge>
2d21ac55
A
292options CONFIG_AIO_THREAD_COUNT=8 # <large>
293options CONFIG_AIO_THREAD_COUNT=4 # <medium>
294options CONFIG_AIO_THREAD_COUNT=3 # <small>
295options CONFIG_AIO_THREAD_COUNT=2 # <xsmall,bsmall>
296
3e170ce0
A
297options CONFIG_MAXVIFS=32 # <medium,large,xlarge>
298options CONFIG_MAXVIFS=16 # <small,xsmall>
299options CONFIG_MAXVIFS=2 # <bsmall>
2d21ac55
A
300
301options CONFIG_MFCTBLSIZ=256 # <medium,large,xlarge>
302options CONFIG_MFCTBLSIZ=128 # <small,xsmall>
303options CONFIG_MFCTBLSIZ=16 # <bsmall>
304
6d2010ae
A
305#
306# configurable kernel message buffer size
307#
308options CONFIG_MSG_BSIZE=4096 # <bsmall,small,xsmall>
309options CONFIG_MSG_BSIZE=16384 # <medium,large,xlarge>
310
3e170ce0
A
311#
312# maximum size of the per-process Mach IPC table
313#
314options CONFIG_IPC_TABLE_ENTRIES_STEPS=64 # 137898 entries # <bsmall,small,xsmall>
315options CONFIG_IPC_TABLE_ENTRIES_STEPS=256 # 300714 entries # <medium,large,xlarge>
316
2d21ac55
A
317#
318# configurable kernel - use these options to strip strings from panic
319# and printf calls.
320# no_panic_str - saves around 50K of kernel footprint.
321# no_printf_str - saves around 45K of kernel footprint.
322#
323options CONFIG_NO_PANIC_STRINGS # <no_panic_str>
324options CONFIG_NO_PRINTF_STRINGS # <no_printf_str>
325options CONFIG_NO_KPRINTF_STRINGS # <no_kprintf_str>
326
6d2010ae
A
327#
328# use finer-grained lock groups for the proc subsystem
329#
330options CONFIG_FINE_LOCK_GROUPS # <medium,large,xlarge>
331
fe8ab488 332
b7266188
A
333# support dynamic signing of code
334#
335options CONFIG_DYNAMIC_CODE_SIGNING # <dynamic_codesigning>
336
fe8ab488
A
337# enforce library validation on all processes.
338#
339options CONFIG_ENFORCE_LIBRARY_VALIDATION # <config_library_validation>
340
341#
342# code decryption... used on embedded for app protection, DSMOS on desktop
343#
3e170ce0 344options CONFIG_CODE_DECRYPTION # <config_code_decryption>
fe8ab488 345
d1ecb069
A
346#
347# User Content Protection, used on embedded
348#
3e170ce0 349options CONFIG_PROTECT # <config_protect>
d1ecb069 350
6d2010ae 351#
316670eb
A
352# enable per-process memory priority tracking
353#
3e170ce0 354options CONFIG_MEMORYSTATUS # <memorystatus>
316670eb
A
355
356#
357# enable jetsam - used on embedded
358#
3e170ce0
A
359options CONFIG_JETSAM # <jetsam>
360
361#
362# enable new wait queue implementation stats / debugging
363#
364options CONFIG_WAITQ_STATS # <config_waitq_stats>
365options CONFIG_WAITQ_DEBUG # <config_waitq_debug>
316670eb
A
366
367#
368# enable freezing of suspended processes - used on embedded
6d2010ae 369#
3e170ce0 370options CONFIG_FREEZE # <freeze>
6d2010ae 371
3e170ce0 372options CHECK_CS_VALIDATION_BITMAP # <config_cs_validation_bitmap>
593a1d5f 373
fe8ab488
A
374#
375# enable detectiion of file cache thrashing - used on platforms with
376# dynamic VM compression enabled
377#
3e170ce0 378options CONFIG_PHANTOM_CACHE # <phantom_cache>
fe8ab488 379
316670eb
A
380#
381# memory pressure event support
316670eb
A
382#
383options VM_PRESSURE_EVENTS # <vm_pressure_events>
384
fe8ab488
A
385#
386# I/O Scheduling
387#
388options CONFIG_IOSCHED # <config_iosched>
389
39236c6e
A
390#
391# Enable inheritance of importance through specially marked mach ports and for file locks
392# For now debug is enabled wherever inheritance is
393#
394options IMPORTANCE_INHERITANCE # <importance_inheritance>
395options IMPORTANCE_DEBUG # <importance_inheritance>
396
3e170ce0 397options CONFIG_TELEMETRY # <config_telemetry>
39236c6e
A
398
399options CONFIG_PROC_UUID_POLICY # <config_proc_uuid_policy>
400
fe8ab488
A
401#
402# ECC data logging
403#
3e170ce0 404options CONFIG_ECC_LOGGING # <config_ecc_logging>
fe8ab488 405
1c79356b
A
406#
407# Ethernet (ARP)
408#
3e170ce0 409pseudo-device ether # <networking,inet,inet6>
1c79356b
A
410#
411# Network loopback device
412#
3e170ce0 413pseudo-device loop # <networking,inet,inet6>
1c79356b
A
414#
415# UCB pseudo terminal service
416#
2d21ac55
A
417pseudo-device pty 512 init pty_init # <xlarge>
418pseudo-device pty 256 init pty_init # <large>
419pseudo-device pty 128 init pty_init # <medium>
420pseudo-device pty 48 init pty_init # <small>
421pseudo-device pty 16 init pty_init # <xsmall>
422pseudo-device pty 8 init pty_init # <bsmall>
423#
424# Cloning pseudo terminal service
425#
426pseudo-device ptmx 1 init ptmx_init
9bccf70c
A
427
428#
429# vnode device
2d21ac55 430#
fe8ab488 431pseudo-device vndevice 4 init vndevice_init # <development,debug>
9bccf70c 432
55e303ae
A
433#
434# memory device
435pseudo-device mdevdevice 1 init mdevinit
436
9bccf70c 437#
1c79356b
A
438#
439# packet filter device
440#
39236c6e 441pseudo-device bpfilter 4 init bpf_init # <networking,inet,inet6>
1c79356b 442
91447636
A
443#
444# fsevents device
2d21ac55 445pseudo-device fsevents 1 init fsevents_init # <config_fse>
91447636 446
0b4e3aa0 447pseudo-device random 1 init random_init
2d21ac55
A
448pseudo-device dtrace 1 init dtrace_init # <config_dtrace>
449pseudo-device helper 1 init helper_init # <config_dtrace>
450pseudo-device lockstat 1 init lockstat_init # <config_dtrace>
451pseudo-device sdt 1 init sdt_init # <config_dtrace>
452pseudo-device systrace 1 init systrace_init # <config_dtrace>
453pseudo-device fbt 1 init fbt_init # <config_dtrace>
454pseudo-device profile_prvd 1 init profile_init # <config_dtrace>
fe8ab488
A
455
456#
457# IOKit configuration options
458#
459
460options HIBERNATION # system hibernation # <hibernation>
3e170ce0
A
461options IOKITCPP # C++ implementation # <iokitcpp>
462options IOKITSTATS # IOKit statistics # <iokitstats>
463options IOTRACKING # IOKit tracking # <iotracking>
464options CONFIG_SLEEP # # <config_sleep>
fe8ab488 465options CONFIG_MAX_THREADS=64 # IOConfigThread threads
3e170ce0
A
466options NO_KEXTD # <no_kextd>
467options NO_KERNEL_HID # <no_kernel_hid>
fe8ab488
A
468
469#
470# Libkern configuration options
471#
472
473options LIBKERNCPP # C++ implementation # <libkerncpp>
474options CONFIG_KXLD # kxld/runtime linking of kexts # <config_kxld>
475options CONFIG_KEC_FIPS # Kernel External Components for FIPS compliance (KEC_FIPS) # <config_kec_fips>
476
477# Note that when adding this config option to an architecture, one MUST
478# add the architecture to the preprocessor test at the beginning of
479# libkern/kmod/cplus_{start.c,stop.c}.
480options CONFIG_STATIC_CPPINIT # Static library initializes kext cpp runtime # <config_static_cppinit>
481
482#
483# libsa configuration options
484#
485
486# CONFIG_KEXT_BASEMENT - alloc post boot loaded kexts after prelinked kexts
487#
3e170ce0 488options CONFIG_KEXT_BASEMENT # # <config_kext_basement>
fe8ab488 489
490019cf
A
490#
491# Persona Management
492#
493options CONFIG_PERSONAS # Persona management # <config_personas>
494options PERSONA_DEBUG # Persona debugging # <persona_debug>
495
fe8ab488
A
496#
497# security configuration options
498#
499
3e170ce0 500options CONFIG_MACF # Mandatory Access Control Framework # <config_macf>
fe8ab488 501options CONFIG_MACF_SOCKET_SUBSET # MAC socket subest (no labels) # <config_macf>
3e170ce0
A
502#options CONFIG_MACF_SOCKET # MAC socket labels # <config_macf>
503#options CONFIG_MACF_NET # mbuf # <config_macf>
504#options CONFIG_MACF_DEBUG # debug # <config_macf>
fe8ab488 505
3e170ce0 506options CONFIG_AUDIT # Kernel auditing # <config_audit>
fe8ab488
A
507
508
509#
510# MACH configuration options.
511#
512# TASK_SWAPPER enables code that manages demand for physical memory by
513# forcibly suspending tasks when the demand exceeds supply. This
514# option should be on.
515#
516options MACH_PAGEMAP # <mach_pagemap>
517options MACH_RT
518options TASK_SWAPPER # <task_swapper_disabled>
519
520#
521# This defines configuration options that are normally used only during
522# kernel code development and debugging. They add run-time error checks or
523# statistics gathering, which will slow down the system
524#
525##########################################################
526#
527# MACH_ASSERT controls the assert() and ASSERT() macros, used to verify the
528# consistency of various algorithms in the kernel. The performance impact
529# of this option is significant.
530#
531options MACH_ASSERT # # <mach_assert>
532#
533# MACH_DEBUG enables the mach_debug_server, a message interface used to
534# retrieve or control various statistics. This interface may expose data
535# structures that would not normally be allowed outside the kernel, and
536# MUST NOT be enabled on a released configuration.
537# Other options here enable information retrieval for specific subsystems
538#
539options MACH_DEBUG # IPC debugging interface # <mdebug>
540options MACH_IPC_DEBUG # Enable IPC debugging calls # <ipc_debug>
3e170ce0 541options MACH_VM_DEBUG # # <debug>
fe8ab488
A
542#
543# MACH_MP_DEBUG control the possible dead locks that may occur by controlling
544# that IPL level has been raised down to SPL0 after some calls to
545# hardclock device driver.
546#
3e170ce0 547options MACH_MP_DEBUG # # <debug>
fe8ab488
A
548#
549# ZONE_DEBUG keeps track of all zalloc()ed elements to perform further
550# operations on each element.
551#
552options ZONE_DEBUG # # <debug>
553
554options CONFIG_ZLEAKS # Live zone leak debugging # <zleaks>
555
556#
557options ZONE_ALIAS_ADDR # # <zone_alias_addr>
558
559
560#
561# CONFIG_TASK_ZONE_INFO allows per-task zone information to be extracted
562# Primarily useful for xnu debug and development.
563#
564options CONFIG_TASK_ZONE_INFO # <task_zone_info>
565#
566# CONFIG_DEBUGGER_FOR_ZONE_INFO restricts zone info so that it is only
567# available when the kernel is being debugged.
568#
569options CONFIG_DEBUGGER_FOR_ZONE_INFO # <debugger_for_zone_info>
570#
571# XPR_DEBUG enables the gathering of data through the XPR macros inserted
572# into various subsystems. This option is normally only enabled for
573# specific performance or behavior studies, as the overhead in both
574# code and data space is large. The data is normally retrieved through
575# the kernel debugger (kdb) or by reading /dev/kmem.
576#
577options XPR_DEBUG # # <debug>
578#
579# MACH_LDEBUG controls the internal consistency checks and
580# data gathering in the locking package. This also enables a debug-only
581# version of simple-locks on uniprocessor machines. The code size and
582# performance impact of this option is significant.
583#
584options MACH_LDEBUG # # <debug>
585
586#
587# configuration option for full, partial, or no kernel debug event tracing
588#
589options KDEBUG # kernel tracing # <kdebug>
590options IST_KDEBUG # limited tracing # <ist_kdebug>
3e170ce0 591options NO_KDEBUG # no kernel tracing # <no_kdebug>
fe8ab488
A
592
593#
594# CONFIG_DTRACE enables code needed to support DTrace. Currently this is
595# only used for delivery of traps/interrupts to DTrace.
596#
3e170ce0 597options CONFIG_DTRACE # # <config_dtrace>
fe8ab488
A
598
599# kernel performance tracing
600options KPERF # <kperf>
601options KPC # <kpc>
602
603# MACH_COUNTERS enables code that handles various counters in the system.
604#
3e170ce0 605options MACH_COUNTERS # # <debug>
fe8ab488
A
606
607# DEVELOPMENT define for development builds
3e170ce0 608options DEVELOPMENT # dev kernel # <development>
fe8ab488
A
609
610# DEBUG kernel
3e170ce0 611options DEBUG # general debugging code # <debug>
fe8ab488
A
612
613##########################################################
614#
615# This defines configuration options that are normally used only during
616# kernel code development and performance characterization. They add run-time
617# statistics gathering, which will slow down the system,
618#
619##########################################################
620#
621# MACH_IPC_STATS controls the collection of statistics in the MACH IPC
622# subsystem.
623#
624#options MACH_IPC_STATS
625#
626# MACH_CLUSTER_STATS controls the collection of various statistics concerning
627# the effectiveness and behavior of the clustered pageout and pagein
628# code.
629#
630#options MACH_CLUSTER_STATS
631
632options MACH_BSD # BSD subsystem on top of Mach # <mach_bsd>
633options IOKIT # # <iokit>
634
635#
636# configurable kernel related resources (CONFIG_THREAD_MAX needs to stay in
637# sync with bsd/conf/MASTER until we fix the config system... todo XXX
638#
639options CONFIG_THREAD_MAX=2560 # <medium,large,xlarge>
640options CONFIG_THREAD_MAX=1536 # <small,xsmall>
641options CONFIG_THREAD_MAX=1024 # <bsmall>
642
643options CONFIG_TASK_MAX=1024 # <medium,large,xlarge>
644options CONFIG_TASK_MAX=768 # <small,>
645options CONFIG_TASK_MAX=512 # <xsmall,bsmall>
646
647options CONFIG_ZONE_MAP_MIN=12582912 # <medium,large,xlarge>
648options CONFIG_ZONE_MAP_MIN=6291456 # <small>
649options CONFIG_ZONE_MAP_MIN=1048576 # <xsmall,bsmall>
650
651# Sizes must be a power of two for the zhash to
652# be able to just mask off bits instead of mod
653options CONFIG_ZLEAK_ALLOCATION_MAP_NUM=16384 #<medium,large,xlarge>
654options CONFIG_ZLEAK_ALLOCATION_MAP_NUM=8192 #<small,xsmall,bsmall>
655options CONFIG_ZLEAK_TRACE_MAP_NUM=8192 #<medium,large,xlarge>
656options CONFIG_ZLEAK_TRACE_MAP_NUM=4096 #<small,xsmall,bsmall>
657
658# vc_progress_white - make the progress gear white instead of black
659options CONFIG_VC_PROGRESS_WHITE # <vc_progress_white>
660
fe8ab488
A
661#
662# Timeshare scheduler implementations
663#
664options CONFIG_SCHED_TRADITIONAL # <config_sched_traditional>
665options CONFIG_SCHED_PROTO # <config_sched_proto>
666options CONFIG_SCHED_GRRR # <config_sched_grrr>
667options CONFIG_SCHED_GRRR_CORE # <config_sched_grrr>
668options CONFIG_SCHED_MULTIQ # <config_sched_multiq>
669options CONFIG_SCHED_TIMESHARE_CORE # <config_sched_traditional,config_sched_multiq>
fe8ab488 670
3e170ce0
A
671options CONFIG_SCHED_IDLE_IN_PLACE # <config_sched_idle_in_place>
672options CONFIG_SCHED_SFI # <config_sched_sfi>
fe8ab488 673options CONFIG_GZALLOC # <config_gzalloc>
3e170ce0 674options CONFIG_SCHED_DEFERRED_AST # <config_sched_deferred_ast>
fe8ab488
A
675
676# Enable allocation of contiguous physical memory through vm_map_enter_cpm()
3e170ce0 677options VM_CPM # <vm_cpm>
fe8ab488 678
3e170ce0 679options CONFIG_SKIP_PRECISE_USER_KERNEL_TIME # <config_skip_precise_user_kernel_time>
fe8ab488
A
680
681#
682# Switch to disable cpu, wakeup and high memory watermark monitors
683#
3e170ce0 684options CONFIG_NOMONITORS # <config_nomonitors>
fe8ab488 685
3e170ce0
A
686options MACH_KDP # KDP # <mach_kdp>
687options CONFIG_SERIAL_KDP # KDP over serial # <config_serial_kdp>
fe8ab488
A
688options CONFIG_KDP_INTERACTIVE_DEBUGGING # <kdp_interactive_debugging>
689
3e170ce0
A
690#
691# Kernel Power On Self Tests
692#
693options CONFIG_XNUPOST # <config_xnupost>
694
695#
696# Kernel proc reference instrumentation
697#
698options PROC_REF_DEBUG # <proc_ref_debug>
699
fe8ab488
A
700#
701# Kernel Voucher Attr Manager for Activity Trace
702#
3e170ce0 703options CONFIG_ATM # <config_atm>
fe8ab488
A
704
705#
706# Kernel Voucher Attr Manager for BANK
707#
3e170ce0 708options CONFIG_BANK # <config_bank>
fe8ab488
A
709
710
711# Group related tasks together into coalitions
712options CONFIG_COALITIONS # <config_coalitions>
713
3e170ce0
A
714# Enable support for sysdiagnose notifications
715options CONFIG_SYSDIAGNOSE # <config_sysdiagnose>
716
fe8ab488 717# Configurable Security Restrictions
3e170ce0 718options CONFIG_CSR # <config_csr>
fe8ab488
A
719
720#
721# Console options
722#
723options SERIAL_CONSOLE # bi-directional serial over UART
724options VIDEO_CONSOLE # uni-directional output over framebuffer
725
726#
727# Syscall options
728#
729options CONFIG_REQUIRES_U32_MUNGING # incoming U32 argument structures must be munged to match U64 # <config_requires_u32_munging>