aboutsummaryrefslogtreecommitdiffstats
path: root/init
diff options
context:
space:
mode:
authorIngo Molnar <mingo@elte.hu>2009-09-21 06:20:38 -0400
committerIngo Molnar <mingo@elte.hu>2009-09-21 08:34:11 -0400
commit57c0c15b5244320065374ad2c54f4fbec77a6428 (patch)
tree35369d817f5925aca09b083bba47c437b91386d9 /init
parentcdd6c482c9ff9c55475ee7392ec8f672eddb7be6 (diff)
perf: Tidy up after the big rename
- provide compatibility Kconfig entry for existing PERF_COUNTERS .config's - provide courtesy copy of old perf_counter.h, for user-space projects - small indentation fixups - fix up MAINTAINERS - fix small x86 printout fallout - fix up small PowerPC comment fallout (use 'counter' as in register) Reviewed-by: Arjan van de Ven <arjan@linux.intel.com> Acked-by: Peter Zijlstra <a.p.zijlstra@chello.nl> Cc: Mike Galbraith <efault@gmx.de> Cc: Paul Mackerras <paulus@samba.org> Cc: Benjamin Herrenschmidt <benh@kernel.crashing.org> Cc: Frederic Weisbecker <fweisbec@gmail.com> LKML-Reference: <new-submission> Signed-off-by: Ingo Molnar <mingo@elte.hu>
Diffstat (limited to 'init')
-rw-r--r--init/Kconfig37
1 files changed, 27 insertions, 10 deletions
diff --git a/init/Kconfig b/init/Kconfig
index cfdf5c322806..706728be312f 100644
--- a/init/Kconfig
+++ b/init/Kconfig
@@ -920,26 +920,31 @@ config HAVE_PERF_EVENTS
920 help 920 help
921 See tools/perf/design.txt for details. 921 See tools/perf/design.txt for details.
922 922
923menu "Performance Counters" 923menu "Kernel Performance Events And Counters"
924 924
925config PERF_EVENTS 925config PERF_EVENTS
926 bool "Kernel Performance Counters" 926 bool "Kernel performance events and counters"
927 default y if PROFILING 927 default y if (PROFILING || PERF_COUNTERS)
928 depends on HAVE_PERF_EVENTS 928 depends on HAVE_PERF_EVENTS
929 select ANON_INODES 929 select ANON_INODES
930 help 930 help
931 Enable kernel support for performance counter hardware. 931 Enable kernel support for various performance events provided
932 by software and hardware.
932 933
933 Performance counters are special hardware registers available 934 Software events are supported either build-in or via the
934 on most modern CPUs. These registers count the number of certain 935 use of generic tracepoints.
936
937 Most modern CPUs support performance events via performance
938 counter registers. These registers count the number of certain
935 types of hw events: such as instructions executed, cachemisses 939 types of hw events: such as instructions executed, cachemisses
936 suffered, or branches mis-predicted - without slowing down the 940 suffered, or branches mis-predicted - without slowing down the
937 kernel or applications. These registers can also trigger interrupts 941 kernel or applications. These registers can also trigger interrupts
938 when a threshold number of events have passed - and can thus be 942 when a threshold number of events have passed - and can thus be
939 used to profile the code that runs on that CPU. 943 used to profile the code that runs on that CPU.
940 944
941 The Linux Performance Counter subsystem provides an abstraction of 945 The Linux Performance Event subsystem provides an abstraction of
942 these hardware capabilities, available via a system call. It 946 these software and hardware cevent apabilities, available via a
947 system call and used by the "perf" utility in tools/perf/. It
943 provides per task and per CPU counters, and it provides event 948 provides per task and per CPU counters, and it provides event
944 capabilities on top of those. 949 capabilities on top of those.
945 950
@@ -950,14 +955,26 @@ config EVENT_PROFILE
950 depends on PERF_EVENTS && EVENT_TRACING 955 depends on PERF_EVENTS && EVENT_TRACING
951 default y 956 default y
952 help 957 help
953 Allow the use of tracepoints as software performance counters. 958 Allow the use of tracepoints as software performance events.
954 959
955 When this is enabled, you can create perf counters based on 960 When this is enabled, you can create perf events based on
956 tracepoints using PERF_TYPE_TRACEPOINT and the tracepoint ID 961 tracepoints using PERF_TYPE_TRACEPOINT and the tracepoint ID
957 found in debugfs://tracing/events/*/*/id. (The -e/--events 962 found in debugfs://tracing/events/*/*/id. (The -e/--events
958 option to the perf tool can parse and interpret symbolic 963 option to the perf tool can parse and interpret symbolic
959 tracepoints, in the subsystem:tracepoint_name format.) 964 tracepoints, in the subsystem:tracepoint_name format.)
960 965
966config PERF_COUNTERS
967 bool "Kernel performance counters (old config option)"
968 depends on HAVE_PERF_EVENTS
969 help
970 This config has been obsoleted by the PERF_EVENTS
971 config option - please see that one for details.
972
973 It has no effect on the kernel whether you enable
974 it or not, it is a compatibility placeholder.
975
976 Say N if unsure.
977
961endmenu 978endmenu
962 979
963config VM_EVENT_COUNTERS 980config VM_EVENT_COUNTERS