2 * Copyright (c) 2016 Apple Inc. All rights reserved.
6 #include <compression.h>
13 #if defined(__arm__) || defined(__arm64__)
14 #define RDAR_23744374 1 /* 'true' while not fixed i.e. enable workarounds */
17 #define CONFIG_REFSC 1 /* create shared cache reference segment (-R) */
18 //#define CONFIG_PURGABLE 1 /* record purgability */
19 //#define CONFIG_SUBMAP 1 /* include submaps (debugging) */
22 #define poison(a, p, s) /* do nothing */
24 #define poison(a, p, s) memset(a, p, s) /* scribble on dying memory */
28 int corpse
; // dump from a corpse
29 int suspend
; // suspend while dumping
30 int preserve
; // preserve the core file, even if there are errors
31 int verbose
; // be chatty
32 int debug
; // internal debugging: options accumulate. very noisy.
33 int dryrun
; // do all the work, but throw the dump away
34 int sparse
; // use dyld's data about dylibs to reduce the size of the dump
35 off_t sizebound
; // maximum size of the dump
36 int coreinfo
; // create a (currently experimental) 'coreinfo' section
38 int scfileref
; // create "reference" segments that point at the shared cache
40 int compress
; // compress the dump
41 size_t chunksize
; // max size of the compressed segment
42 compression_algorithm calgorithm
; // algorithm in use
45 extern const struct options
*opt
;
47 #endif /* _OPTIONS_H */