aboutsummaryrefslogtreecommitdiffstats
path: root/init/Kconfig
diff options
context:
space:
mode:
Diffstat (limited to 'init/Kconfig')
-rw-r--r--init/Kconfig41
1 files changed, 39 insertions, 2 deletions
diff --git a/init/Kconfig b/init/Kconfig
index 7be4d3836745..d3a50967c337 100644
--- a/init/Kconfig
+++ b/init/Kconfig
@@ -302,13 +302,14 @@ config AUDITSYSCALL
302 302
303config AUDIT_TREE 303config AUDIT_TREE
304 def_bool y 304 def_bool y
305 depends on AUDITSYSCALL && INOTIFY 305 depends on AUDITSYSCALL
306 select INOTIFY
306 307
307menu "RCU Subsystem" 308menu "RCU Subsystem"
308 309
309choice 310choice
310 prompt "RCU Implementation" 311 prompt "RCU Implementation"
311 default CLASSIC_RCU 312 default TREE_RCU
312 313
313config CLASSIC_RCU 314config CLASSIC_RCU
314 bool "Classic RCU" 315 bool "Classic RCU"
@@ -933,6 +934,42 @@ config AIO
933 by some high performance threaded applications. Disabling 934 by some high performance threaded applications. Disabling
934 this option saves about 7k. 935 this option saves about 7k.
935 936
937config HAVE_PERF_COUNTERS
938 bool
939 help
940 See tools/perf/design.txt for details.
941
942menu "Performance Counters"
943
944config PERF_COUNTERS
945 bool "Kernel Performance Counters"
946 depends on HAVE_PERF_COUNTERS
947 select ANON_INODES
948 help
949 Enable kernel support for performance counter hardware.
950
951 Performance counters are special hardware registers available
952 on most modern CPUs. These registers count the number of certain
953 types of hw events: such as instructions executed, cachemisses
954 suffered, or branches mis-predicted - without slowing down the
955 kernel or applications. These registers can also trigger interrupts
956 when a threshold number of events have passed - and can thus be
957 used to profile the code that runs on that CPU.
958
959 The Linux Performance Counter subsystem provides an abstraction of
960 these hardware capabilities, available via a system call. It
961 provides per task and per CPU counters, and it provides event
962 capabilities on top of those.
963
964 Say Y if unsure.
965
966config EVENT_PROFILE
967 bool "Tracepoint profile sources"
968 depends on PERF_COUNTERS && EVENT_TRACER
969 default y
970
971endmenu
972
936config VM_EVENT_COUNTERS 973config VM_EVENT_COUNTERS
937 default y 974 default y
938 bool "Enable VM event counters for /proc/vmstat" if EMBEDDED 975 bool "Enable VM event counters for /proc/vmstat" if EMBEDDED