Re: [PATCH V6] GCOV: Add config to check the preqequisites situation

From: Peter Oberparleiter
Date: Thu Jul 23 2020 - 05:48:13 EST


On 16.07.2020 14:38, Cixi Geng wrote:
> Hi All:
> Does this patch need more modification?

Yes. As it is now there's still a prompt for the prereq symbol. There
should be no prompt for this symbol in the config dialog.

[...]


>> diff --git a/kernel/gcov/Kconfig b/kernel/gcov/Kconfig
>> index 3941a9c48f83..f415c4aaf0ab 100644
>> --- a/kernel/gcov/Kconfig
>> +++ b/kernel/gcov/Kconfig
>> @@ -51,6 +51,16 @@ 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_PROFILE_PREREQS
>> + bool "Profile Kernel for prereqs"
>> + default y if GCOV_KERNEL && !COMPILE_TEST
>> + help
>> + This options activates profiling for the specified kernel modules.
>> +
>> + When some modules need Gcov data, enable this config, then configure
>> + with gcov on the corresponding modules,The directories or files of
>> + these modules will be added profiling flags after kernel compile.
>> +

Replace the portion above with these lines:

config GCOV_PROFILE_PREREQS
def_bool y if GCOV_KERNEL && !COMPILE_TEST



--
Peter Oberparleiter
Linux on Z Development - IBM Germany