aboutsummaryrefslogtreecommitdiffstats
path: root/init
diff options
context:
space:
mode:
Diffstat (limited to 'init')
-rw-r--r--init/Kconfig35
1 files changed, 35 insertions, 0 deletions
diff --git a/init/Kconfig b/init/Kconfig
index f2f9b5362b48..b37350f16253 100644
--- a/init/Kconfig
+++ b/init/Kconfig
@@ -925,6 +925,41 @@ config AIO
925 by some high performance threaded applications. Disabling 925 by some high performance threaded applications. Disabling
926 this option saves about 7k. 926 this option saves about 7k.
927 927
928config HAVE_PERF_COUNTERS
929 bool
930
931menu "Performance Counters"
932
933config PERF_COUNTERS
934 bool "Kernel Performance Counters"
935 depends on HAVE_PERF_COUNTERS
936 default y
937 select ANON_INODES
938 help
939 Enable kernel support for performance counter hardware.
940
941 Performance counters are special hardware registers available
942 on most modern CPUs. These registers count the number of certain
943 types of hw events: such as instructions executed, cachemisses
944 suffered, or branches mis-predicted - without slowing down the
945 kernel or applications. These registers can also trigger interrupts
946 when a threshold number of events have passed - and can thus be
947 used to profile the code that runs on that CPU.
948
949 The Linux Performance Counter subsystem provides an abstraction of
950 these hardware capabilities, available via a system call. It
951 provides per task and per CPU counters, and it provides event
952 capabilities on top of those.
953
954 Say Y if unsure.
955
956config EVENT_PROFILE
957 bool "Tracepoint profile sources"
958 depends on PERF_COUNTERS && EVENT_TRACER
959 default y
960
961endmenu
962
928config VM_EVENT_COUNTERS 963config VM_EVENT_COUNTERS
929 default y 964 default y
930 bool "Enable VM event counters for /proc/vmstat" if EMBEDDED 965 bool "Enable VM event counters for /proc/vmstat" if EMBEDDED