diff options
Diffstat (limited to 'init')
-rw-r--r-- | init/Kconfig | 30 |
1 files changed, 30 insertions, 0 deletions
diff --git a/init/Kconfig b/init/Kconfig index 2af83825634e..6af96b7e2238 100644 --- a/init/Kconfig +++ b/init/Kconfig | |||
@@ -776,6 +776,36 @@ config AIO | |||
776 | by some high performance threaded applications. Disabling | 776 | by some high performance threaded applications. Disabling |
777 | this option saves about 7k. | 777 | this option saves about 7k. |
778 | 778 | ||
779 | config HAVE_PERF_COUNTERS | ||
780 | bool | ||
781 | |||
782 | menu "Performance Counters" | ||
783 | |||
784 | config PERF_COUNTERS | ||
785 | bool "Kernel Performance Counters" | ||
786 | depends on HAVE_PERF_COUNTERS | ||
787 | default y | ||
788 | select ANON_INODES | ||
789 | help | ||
790 | Enable kernel support for performance counter hardware. | ||
791 | |||
792 | Performance counters are special hardware registers available | ||
793 | on most modern CPUs. These registers count the number of certain | ||
794 | types of hw events: such as instructions executed, cachemisses | ||
795 | suffered, or branches mis-predicted - without slowing down the | ||
796 | kernel or applications. These registers can also trigger interrupts | ||
797 | when a threshold number of events have passed - and can thus be | ||
798 | used to profile the code that runs on that CPU. | ||
799 | |||
800 | The Linux Performance Counter subsystem provides an abstraction of | ||
801 | these hardware capabilities, available via a system call. It | ||
802 | provides per task and per CPU counters, and it provides event | ||
803 | capabilities on top of those. | ||
804 | |||
805 | Say Y if unsure. | ||
806 | |||
807 | endmenu | ||
808 | |||
779 | config VM_EVENT_COUNTERS | 809 | config VM_EVENT_COUNTERS |
780 | default y | 810 | default y |
781 | bool "Enable VM event counters for /proc/vmstat" if EMBEDDED | 811 | bool "Enable VM event counters for /proc/vmstat" if EMBEDDED |