Skip to content

Commit

Permalink
perf_counter: Set the CONFIG_PERF_COUNTERS default to y if CONFIG_PRO…
Browse files Browse the repository at this point in the history
…FILING=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>
  • Loading branch information
Ingo Molnar committed Aug 4, 2009
1 parent 7e03065 commit f265426
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions init/Kconfig
Original file line number Diff line number Diff line change
Expand Up @@ -940,6 +940,7 @@ menu "Performance Counters"

config PERF_COUNTERS
bool "Kernel Performance Counters"
default y if PROFILING
depends on HAVE_PERF_COUNTERS
select ANON_INODES
help
Expand Down

0 comments on commit f265426

Please sign in to comment.