Skip to content

Commit

Permalink
build-configs.yaml: Add kcidebug fragment
Browse files Browse the repository at this point in the history
It might be useful to enable lightweight(relatively) kernel debug options.

Signed-off-by: Denys Fedoryshchenko <denys.f@collabora.com>
  • Loading branch information
nuclearcat committed Jun 26, 2024
1 parent c1f1b9c commit 404c850
Showing 1 changed file with 60 additions and 0 deletions.
60 changes: 60 additions & 0 deletions config/core/build-configs.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -448,6 +448,66 @@ fragments:
- 'CONFIG_IMA=y'
- 'CONFIG_IMA_READ_POLICY=y'

kcidebug:
path: "kernel/configs/kcidebug.config"
configs:
- 'CONFIG_CONSTRUCTORS=y'
- 'CONFIG_GENERIC_CSUM=y'
- 'CONFIG_KASAN_SHADOW_OFFSET=0xdffffc0000000000'
- 'CONFIG_STACKDEPOT_ALWAYS_INIT=y'
- 'CONFIG_REF_TRACKER=y'
- 'CONFIG_DEBUG_SECTION_MISMATCH=y'
- 'CONFIG_UBSAN=y'
- 'CONFIG_CC_HAS_UBSAN_BOUNDS_STRICT=y'
- 'CONFIG_UBSAN_BOUNDS=y'
- 'CONFIG_UBSAN_BOUNDS_STRICT=y'
- 'CONFIG_UBSAN_SHIFT=y'
- 'CONFIG_UBSAN_BOOL=y'
- 'CONFIG_UBSAN_ENUM=y'
- 'CONFIG_UBSAN_SANITIZE_ALL=y'
- 'CONFIG_NET_DEV_REFCNT_TRACKER=y'
- 'CONFIG_NET_NS_REFCNT_TRACKER=y'
- 'CONFIG_PAGE_POISONING=y'
- 'CONFIG_DEBUG_KMEMLEAK=y'
- 'CONFIG_DEBUG_KMEMLEAK_MEM_POOL_SIZE=16000'
- 'CONFIG_DEBUG_KMEMLEAK_AUTO_SCAN=y'
- 'CONFIG_SCHED_STACK_END_CHECK=y'
- 'CONFIG_KASAN=y'
- 'CONFIG_KASAN_GENERIC=y'
- 'CONFIG_KASAN_INLINE=y'
- 'CONFIG_KASAN_STACK=y'
- 'CONFIG_KASAN_VMALLOC=y'
- 'CONFIG_KFENCE=y'
- 'CONFIG_KFENCE_SAMPLE_INTERVAL=100'
- 'CONFIG_KFENCE_NUM_OBJECTS=255'
- 'CONFIG_KFENCE_STRESS_TEST_FAULTS=0'
- 'CONFIG_LOCKUP_DETECTOR=y'
- 'CONFIG_SOFTLOCKUP_DETECTOR=y'
- 'CONFIG_HARDLOCKUP_DETECTOR=y'
- 'CONFIG_HARDLOCKUP_DETECTOR_PERF=y'
- 'CONFIG_HARDLOCKUP_DETECTOR_COUNTS_HRTIMER=y'
- 'CONFIG_DETECT_HUNG_TASK=y'
- 'CONFIG_DEFAULT_HUNG_TASK_TIMEOUT=120'
- 'CONFIG_WQ_WATCHDOG=y'
- 'CONFIG_PROVE_LOCKING=y'
- 'CONFIG_DEBUG_RT_MUTEXES=y'
- 'CONFIG_DEBUG_SPINLOCK=y'
- 'CONFIG_DEBUG_MUTEXES=y'
- 'CONFIG_DEBUG_WW_MUTEX_SLOWPATH=y'
- 'CONFIG_DEBUG_RWSEMS=y'
- 'CONFIG_DEBUG_LOCK_ALLOC=y'
- 'CONFIG_LOCKDEP=y'
- 'CONFIG_LOCKDEP_BITS=15'
- 'CONFIG_LOCKDEP_CHAINS_BITS=16'
- 'CONFIG_LOCKDEP_STACK_TRACE_BITS=19'
- 'CONFIG_LOCKDEP_STACK_TRACE_HASH_BITS=14'
- 'CONFIG_LOCKDEP_CIRCULAR_QUEUE_BITS=12'
- 'CONFIG_DEBUG_ATOMIC_SLEEP=y'
- 'CONFIG_TRACE_IRQFLAGS=y'
- 'CONFIG_TRACE_IRQFLAGS_NMI=y'
- 'CONFIG_PROVE_RCU=y'
- 'CONFIG_PREEMPTIRQ_TRACEPOINTS=y'

kselftest:
path: "kernel/configs/kselftest.config"
configs:
Expand Down

0 comments on commit 404c850

Please sign in to comment.