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 c52d1d48272a..35659ed442e5 100644
--- a/init/Kconfig
+++ b/init/Kconfig
@@ -919,6 +919,41 @@ 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
950config EVENT_PROFILE
951 bool "Tracepoint profile sources"
952 depends on PERF_COUNTERS && EVENT_TRACER
953 default y
954
955endmenu
956
922config VM_EVENT_COUNTERS 957config VM_EVENT_COUNTERS
923 default y 958 default y
924 bool "Enable VM event counters for /proc/vmstat" if EMBEDDED 959 bool "Enable VM event counters for /proc/vmstat" if EMBEDDED