diff options
Diffstat (limited to 'init')
-rw-r--r-- | init/Kconfig | 29 |
1 files changed, 29 insertions, 0 deletions
diff --git a/init/Kconfig b/init/Kconfig index f763762d544a..78bede218f10 100644 --- a/init/Kconfig +++ b/init/Kconfig | |||
@@ -732,6 +732,35 @@ config AIO | |||
732 | by some high performance threaded applications. Disabling | 732 | by some high performance threaded applications. Disabling |
733 | this option saves about 7k. | 733 | this option saves about 7k. |
734 | 734 | ||
735 | config HAVE_PERF_COUNTERS | ||
736 | bool | ||
737 | |||
738 | menu "Performance Counters" | ||
739 | |||
740 | config PERF_COUNTERS | ||
741 | bool "Kernel Performance Counters" | ||
742 | depends on HAVE_PERF_COUNTERS | ||
743 | default y | ||
744 | help | ||
745 | Enable kernel support for performance counter hardware. | ||
746 | |||
747 | Performance counters are special hardware registers available | ||
748 | on most modern CPUs. These registers count the number of certain | ||
749 | types of hw events: such as instructions executed, cachemisses | ||
750 | suffered, or branches mis-predicted - without slowing down the | ||
751 | kernel or applications. These registers can also trigger interrupts | ||
752 | when a threshold number of events have passed - and can thus be | ||
753 | used to profile the code that runs on that CPU. | ||
754 | |||
755 | The Linux Performance Counter subsystem provides an abstraction of | ||
756 | these hardware capabilities, available via a system call. It | ||
757 | provides per task and per CPU counters, and it provides event | ||
758 | capabilities on top of those. | ||
759 | |||
760 | Say Y if unsure. | ||
761 | |||
762 | endmenu | ||
763 | |||
735 | config VM_EVENT_COUNTERS | 764 | config VM_EVENT_COUNTERS |
736 | default y | 765 | default y |
737 | bool "Enable VM event counters for /proc/vmstat" if EMBEDDED | 766 | bool "Enable VM event counters for /proc/vmstat" if EMBEDDED |