diff options
author | Ludovic Courtès <ludo@gnu.org> | 2010-05-05 19:48:46 +0000 |
---|---|---|
committer | Ludovic Courtès <ludo@gnu.org> | 2010-05-05 19:48:46 +0000 |
commit | 588be9d6db00ac6dc7c6236b497b6db17d7fc371 (patch) | |
tree | 91a5c4b419af68d91015ff3ebb3e9226c47c8529 /pkgs/os-specific/linux/kernel/linux-2.6.32.nix | |
parent | 83609f61915f1fa7f5de44162e3896e415095e44 (diff) | |
download | nixlib-588be9d6db00ac6dc7c6236b497b6db17d7fc371.tar nixlib-588be9d6db00ac6dc7c6236b497b6db17d7fc371.tar.gz nixlib-588be9d6db00ac6dc7c6236b497b6db17d7fc371.tar.bz2 nixlib-588be9d6db00ac6dc7c6236b497b6db17d7fc371.tar.lz nixlib-588be9d6db00ac6dc7c6236b497b6db17d7fc371.tar.xz nixlib-588be9d6db00ac6dc7c6236b497b6db17d7fc371.tar.zst nixlib-588be9d6db00ac6dc7c6236b497b6db17d7fc371.zip |
Add a Linux kernel suitable for SystemTap.
svn path=/nixpkgs/trunk/; revision=21618
Diffstat (limited to 'pkgs/os-specific/linux/kernel/linux-2.6.32.nix')
-rw-r--r-- | pkgs/os-specific/linux/kernel/linux-2.6.32.nix | 15 |
1 files changed, 11 insertions, 4 deletions
diff --git a/pkgs/os-specific/linux/kernel/linux-2.6.32.nix b/pkgs/os-specific/linux/kernel/linux-2.6.32.nix index 013dc24332c5..3a4ae7feacf1 100644 --- a/pkgs/os-specific/linux/kernel/linux-2.6.32.nix +++ b/pkgs/os-specific/linux/kernel/linux-2.6.32.nix @@ -1,11 +1,11 @@ -args @ { stdenv, fetchurl, userModeLinux ? false, extraConfig ? "" -, ... }: +args @ { stdenv, fetchurl, userModeLinux ? false, systemtap ? false +, extraConfig ? "", ... }: let configWithPlatform = kernelPlatform : '' # Don't include any debug features. - DEBUG_KERNEL n + DEBUG_KERNEL ${if systemtap then "y" else "n"} # Support drivers that need external firmware. STANDALONE n @@ -25,7 +25,6 @@ let # Disable some expensive (?) features. FTRACE n - KPROBES n NUMA? n PM_TRACE_RTC n @@ -191,6 +190,14 @@ let X86_CHECK_BIOS_CORRUPTION y X86_MCE y + ${if systemtap then '' + # SystemTap support. + KPROBES y # kernel probes (needs `utrace' for process probes) + DEBUG_INFO y + RELAY y + DEBUG_FS y + '' else ""} + ${if kernelPlatform ? kernelExtraConfig then kernelPlatform.kernelExtraConfig else ""} ${extraConfig} ''; |