Skip to content

Commit

Permalink
linux/common-config: enable support for crashkernel dumps
Browse files Browse the repository at this point in the history
Signed-off-by: Sefa Eyeoglu <[email protected]>
  • Loading branch information
Scrumplex committed Oct 12, 2024
1 parent d363932 commit 5d97bb6
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions pkgs/os-specific/linux/kernel/common-config.nix
Original file line number Diff line number Diff line change
Expand Up @@ -42,8 +42,8 @@ let
options = {

debug = {
# Necessary for BTF
DEBUG_INFO = whenOlder "5.18" yes;
# Necessary for BTF and crashkernel
DEBUG_INFO = yes;
DEBUG_INFO_DWARF_TOOLCHAIN_DEFAULT = whenAtLeast "5.18" yes;
# Reduced debug info conflict with BTF and have been enabled in
# aarch64 defconfig since 5.13
Expand All @@ -61,7 +61,7 @@ let
RCU_TORTURE_TEST = no;
SCHEDSTATS = yes;
DETECT_HUNG_TASK = yes;
CRASH_DUMP = option no;
CRASH_DUMP = yes;
# Easier debugging of NFS issues.
SUNRPC_DEBUG = yes;
# Provide access to tunables like sched_migration_cost_ns
Expand All @@ -82,6 +82,9 @@ let

# Export known printks in debugfs
PRINTK_INDEX = whenAtLeast "5.15" yes;

# Enable crashkernel support
PROC_VMCORE = yes;
};

power-management = {
Expand Down

0 comments on commit 5d97bb6

Please sign in to comment.