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 f068071fcc5..5a3ad5c20e2 100644
--- a/init/Kconfig
+++ b/init/Kconfig
@@ -869,6 +869,36 @@ config AIO
869 by some high performance threaded applications. Disabling 869 by some high performance threaded applications. Disabling
870 this option saves about 7k. 870 this option saves about 7k.
871 871
872config HAVE_PERF_COUNTERS
873 bool
874
875menu "Performance Counters"
876
877config PERF_COUNTERS
878 bool "Kernel Performance Counters"
879 depends on HAVE_PERF_COUNTERS
880 default y
881 select ANON_INODES
882 help
883 Enable kernel support for performance counter hardware.
884
885 Performance counters are special hardware registers available
886 on most modern CPUs. These registers count the number of certain
887 types of hw events: such as instructions executed, cachemisses
888 suffered, or branches mis-predicted - without slowing down the
889 kernel or applications. These registers can also trigger interrupts
890 when a threshold number of events have passed - and can thus be
891 used to profile the code that runs on that CPU.
892
893 The Linux Performance Counter subsystem provides an abstraction of
894 these hardware capabilities, available via a system call. It
895 provides per task and per CPU counters, and it provides event
896 capabilities on top of those.
897
898 Say Y if unsure.
899
900endmenu
901
872config VM_EVENT_COUNTERS 902config VM_EVENT_COUNTERS
873 default y 903 default y
874 bool "Enable VM event counters for /proc/vmstat" if EMBEDDED 904 bool "Enable VM event counters for /proc/vmstat" if EMBEDDED