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