diff options
Diffstat (limited to 'init')
-rw-r--r-- | init/Kconfig | 13 | ||||
-rw-r--r-- | init/main.c | 2 |
2 files changed, 12 insertions, 3 deletions
diff --git a/init/Kconfig b/init/Kconfig index 1ce05a4cb5f6..3f7e60995c80 100644 --- a/init/Kconfig +++ b/init/Kconfig | |||
@@ -940,6 +940,7 @@ menu "Performance Counters" | |||
940 | 940 | ||
941 | config PERF_COUNTERS | 941 | config PERF_COUNTERS |
942 | bool "Kernel Performance Counters" | 942 | bool "Kernel Performance Counters" |
943 | default y if PROFILING | ||
943 | depends on HAVE_PERF_COUNTERS | 944 | depends on HAVE_PERF_COUNTERS |
944 | select ANON_INODES | 945 | select ANON_INODES |
945 | help | 946 | help |
@@ -961,9 +962,17 @@ config PERF_COUNTERS | |||
961 | Say Y if unsure. | 962 | Say Y if unsure. |
962 | 963 | ||
963 | config EVENT_PROFILE | 964 | config EVENT_PROFILE |
964 | bool "Tracepoint profile sources" | 965 | bool "Tracepoint profiling sources" |
965 | depends on PERF_COUNTERS && EVENT_TRACER | 966 | depends on PERF_COUNTERS && EVENT_TRACING |
966 | default y | 967 | default y |
968 | help | ||
969 | Allow the use of tracepoints as software performance counters. | ||
970 | |||
971 | When this is enabled, you can create perf counters based on | ||
972 | tracepoints using PERF_TYPE_TRACEPOINT and the tracepoint ID | ||
973 | found in debugfs://tracing/events/*/*/id. (The -e/--events | ||
974 | option to the perf tool can parse and interpret symbolic | ||
975 | tracepoints, in the subsystem:tracepoint_name format.) | ||
967 | 976 | ||
968 | endmenu | 977 | endmenu |
969 | 978 | ||
diff --git a/init/main.c b/init/main.c index 71832858c5a2..2f9544d8435a 100644 --- a/init/main.c +++ b/init/main.c | |||
@@ -560,8 +560,8 @@ asmlinkage void __init start_kernel(void) | |||
560 | setup_arch(&command_line); | 560 | setup_arch(&command_line); |
561 | mm_init_owner(&init_mm, &init_task); | 561 | mm_init_owner(&init_mm, &init_task); |
562 | setup_command_line(command_line); | 562 | setup_command_line(command_line); |
563 | setup_per_cpu_areas(); | ||
564 | setup_nr_cpu_ids(); | 563 | setup_nr_cpu_ids(); |
564 | setup_per_cpu_areas(); | ||
565 | smp_prepare_boot_cpu(); /* arch-specific boot-cpu hooks */ | 565 | smp_prepare_boot_cpu(); /* arch-specific boot-cpu hooks */ |
566 | 566 | ||
567 | build_all_zonelists(); | 567 | build_all_zonelists(); |