diff options
author | Ingo Molnar <mingo@elte.hu> | 2009-06-29 04:40:20 -0400 |
---|---|---|
committer | Ingo Molnar <mingo@elte.hu> | 2009-08-04 12:19:30 -0400 |
commit | f26542600e605482a1231c44ddb2966d69bd09b0 (patch) | |
tree | bfda9e06935060df01bb8f2e706ac537e300677b /init | |
parent | 7e030655dda5b5efc4305e2a8f46c4967d32eb3d (diff) |
perf_counter: Set the CONFIG_PERF_COUNTERS default to y if CONFIG_PROFILING=y
If user has already enabled profiling support in the kernel
(for oprofile, old-style profiling of ftrace) then offer up
perfcounters with a y default in interactive kconfig sessions.
Still keep it off by default otherwise.
Cc: Peter Zijlstra <peterz@infradead.org>
Cc: Linus Torvalds <torvalds@linux-foundation.org>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
Diffstat (limited to 'init')
-rw-r--r-- | init/Kconfig | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/init/Kconfig b/init/Kconfig index 823ee0a2d2a3..3f7e60995c80 100644 --- a/init/Kconfig +++ b/init/Kconfig | |||
@@ -940,6 +940,7 @@ menu "Performance Counters" | |||
940 | 940 | ||
941 | config PERF_COUNTERS | 941 | config PERF_COUNTERS |
942 | bool "Kernel Performance Counters" | 942 | bool "Kernel Performance Counters" |
943 | default y if PROFILING | ||
943 | depends on HAVE_PERF_COUNTERS | 944 | depends on HAVE_PERF_COUNTERS |
944 | select ANON_INODES | 945 | select ANON_INODES |
945 | help | 946 | help |