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 8a63c404ef44..c38ae71a5e19 100644 --- a/init/Kconfig +++ b/init/Kconfig | |||
@@ -739,6 +739,36 @@ config AIO | |||
739 | by some high performance threaded applications. Disabling | 739 | by some high performance threaded applications. Disabling |
740 | this option saves about 7k. | 740 | this option saves about 7k. |
741 | 741 | ||
742 | config HAVE_PERF_COUNTERS | ||
743 | bool | ||
744 | |||
745 | menu "Performance Counters" | ||
746 | |||
747 | config PERF_COUNTERS | ||
748 | bool "Kernel Performance Counters" | ||
749 | depends on HAVE_PERF_COUNTERS | ||
750 | default y | ||
751 | select ANON_INODES | ||
752 | help | ||
753 | Enable kernel support for performance counter hardware. | ||
754 | |||
755 | Performance counters are special hardware registers available | ||
756 | on most modern CPUs. These registers count the number of certain | ||
757 | types of hw events: such as instructions executed, cachemisses | ||
758 | suffered, or branches mis-predicted - without slowing down the | ||
759 | kernel or applications. These registers can also trigger interrupts | ||
760 | when a threshold number of events have passed - and can thus be | ||
761 | used to profile the code that runs on that CPU. | ||
762 | |||
763 | The Linux Performance Counter subsystem provides an abstraction of | ||
764 | these hardware capabilities, available via a system call. It | ||
765 | provides per task and per CPU counters, and it provides event | ||
766 | capabilities on top of those. | ||
767 | |||
768 | Say Y if unsure. | ||
769 | |||
770 | endmenu | ||
771 | |||
742 | config VM_EVENT_COUNTERS | 772 | config VM_EVENT_COUNTERS |
743 | default y | 773 | default y |
744 | bool "Enable VM event counters for /proc/vmstat" if EMBEDDED | 774 | bool "Enable VM event counters for /proc/vmstat" if EMBEDDED |