diff options
author | Tuomas Tynkkynen <ttynkkynen@nvidia.com> | 2012-11-09 18:20:44 +0200 |
---|---|---|
committer | Dan Willemsen <dwillemsen@nvidia.com> | 2013-09-14 12:42:07 -0700 |
commit | de9070669f8b7c2c6136b7fadbec2923250d284b (patch) | |
tree | 223ca25d9c387bcc6192f06760c1a43e5188e7c0 /kernel/gcov/Kconfig | |
parent | a986e4d70b11b65f2dbf77d9eff60d73e7819259 (diff) |
gcov-kernel: Make gcov work on vanilla gcc again.
Commit "gcov-kernel: patch for Android toolchain 4.4.x support" broke
support for gcov on vanilla gcc. Introduce #ifdefs to make it work on
both of them.
Since the gcov ABI for Android gcc is different, the build system
must set CONFIG_GCOV_TOOLCHAIN_IS_ANDROID when compiling with an
Android toolchain.
Also remove a few magic numbers from the original gcov code and fix a
unused function warning.
Bug 1155439
Change-Id: I7c18938e5503df4ee1c3f8de2b6f5a99ceef7f71
Signed-off-by: Tuomas Tynkkynen <ttynkkynen@nvidia.com>
Reviewed-on: http://git-master/r/162711
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit
Reviewed-by: Juha Tukkinen <jtukkinen@nvidia.com>
Diffstat (limited to 'kernel/gcov/Kconfig')
-rw-r--r-- | kernel/gcov/Kconfig | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/kernel/gcov/Kconfig b/kernel/gcov/Kconfig index 5223238a1246..417e41948e40 100644 --- a/kernel/gcov/Kconfig +++ b/kernel/gcov/Kconfig @@ -46,6 +46,17 @@ config GCOV_PROFILE_ALL larger and run slower. Also be sure to exclude files from profiling which are not linked to the kernel image to prevent linker errors. +config GCOV_TOOLCHAIN_IS_ANDROID + bool "Use Android toolchain ABI for gcov instead of vanilla gcc ABI" + default n + ---help--- + This option must be set if a gcov-enabled kernel is being built with an + Android toolchain. The gcov ABI in Android gcc is not compatible with + vanilla gcc, and choosing this option incorrectly might lead to kernel + panics during boot or when dumping the gcov data. + + If unsure, say N. + config GCOV_CTORS string depends on CONSTRUCTORS |