diff options
author | Riku Voipio <riku.voipio@linaro.org> | 2014-12-12 19:57:44 -0500 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2014-12-13 15:42:51 -0500 |
commit | 957e3facd147510f2cf8780e38606f1d707f0e33 (patch) | |
tree | 4de83d3fa35704e465d930f2d7b94f6be166b98f /kernel/gcov | |
parent | d5393955c33e09c72695acabfcecf00ef6d289b0 (diff) |
gcov: enable GCOV_PROFILE_ALL from ARCH Kconfigs
Following the suggestions from Andrew Morton and Stephen Rothwell,
Dont expand the ARCH list in kernel/gcov/Kconfig. Instead,
define a ARCH_HAS_GCOV_PROFILE_ALL bool which architectures
can enable.
set ARCH_HAS_GCOV_PROFILE_ALL on Architectures where it was
previously allowed + ARM64 which I tested.
Signed-off-by: Riku Voipio <riku.voipio@linaro.org>
Cc: Peter Oberparleiter <oberpar@linux.vnet.ibm.com>
Cc: Stephen Rothwell <sfr@canb.auug.org.au>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'kernel/gcov')
-rw-r--r-- | kernel/gcov/Kconfig | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/kernel/gcov/Kconfig b/kernel/gcov/Kconfig index 3b7408759bdf..c92e44855ddd 100644 --- a/kernel/gcov/Kconfig +++ b/kernel/gcov/Kconfig | |||
@@ -32,10 +32,13 @@ config GCOV_KERNEL | |||
32 | Note that the debugfs filesystem has to be mounted to access | 32 | Note that the debugfs filesystem has to be mounted to access |
33 | profiling data. | 33 | profiling data. |
34 | 34 | ||
35 | config ARCH_HAS_GCOV_PROFILE_ALL | ||
36 | def_bool n | ||
37 | |||
35 | config GCOV_PROFILE_ALL | 38 | config GCOV_PROFILE_ALL |
36 | bool "Profile entire Kernel" | 39 | bool "Profile entire Kernel" |
37 | depends on GCOV_KERNEL | 40 | depends on GCOV_KERNEL |
38 | depends on SUPERH || S390 || X86 || PPC || MICROBLAZE || ARM || ARM64 | 41 | depends on ARCH_HAS_GCOV_PROFILE_ALL |
39 | default n | 42 | default n |
40 | ---help--- | 43 | ---help--- |
41 | This options activates profiling for the entire kernel. | 44 | This options activates profiling for the entire kernel. |