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