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