From 798e613e16dd6274d301a50d6e9ee6917949050d Mon Sep 17 00:00:00 2001 From: Eelco Dolstra Date: Wed, 11 Mar 2015 17:11:41 +0100 Subject: [PATCH] kernel: Enable kprobes and other tracing features All of these should have minimal performance impact unless enabled at runtime. --- pkgs/os-specific/linux/kernel/common-config.nix | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/pkgs/os-specific/linux/kernel/common-config.nix b/pkgs/os-specific/linux/kernel/common-config.nix index c802d3f266d..90f012f282d 100644 --- a/pkgs/os-specific/linux/kernel/common-config.nix +++ b/pkgs/os-specific/linux/kernel/common-config.nix @@ -53,7 +53,6 @@ with stdenv.lib; NUMA? y # Disable some expensive (?) features. - KPROBES n PM_TRACE_RTC n # Enable various subsystems. @@ -300,9 +299,14 @@ with stdenv.lib; # Tracing. FTRACE y + KPROBES y FUNCTION_TRACER y FTRACE_SYSCALLS y SCHED_TRACER y + STACK_TRACER y + UPROBE_EVENT y + FUNCTION_PROFILER y + RING_BUFFER_BENCHMARK n # Devtmpfs support. DEVTMPFS y