Re: gcov: enable GCOV_PROFILE_ALL for x86_64

From: Peter Oberparleiter
Date: Mon Jun 22 2009 - 05:28:33 EST


Ingo Molnar wrote:
> * Linux Kernel Mailing List <linux-kernel@xxxxxxxxxxxxxxx> wrote:
>
>> Gitweb: http://git.kernel.org/linus/7bf99fb673f18408be1ebc958321ef4c3f6da9e2
>> Commit: 7bf99fb673f18408be1ebc958321ef4c3f6da9e2
>> Parent: 2521f2c228ad750701ba4702484e31d876dbc386
>> Author: Peter Oberparleiter <oberpar@xxxxxxxxxxxxxxxxxx>
>> AuthorDate: Wed Jun 17 16:28:09 2009 -0700
>> Committer: Linus Torvalds <torvalds@xxxxxxxxxxxxxxxxxxxx>
>> CommitDate: Thu Jun 18 13:03:58 2009 -0700
>>
>> gcov: enable GCOV_PROFILE_ALL for x86_64
>>
>> Enable gcov profiling of the entire kernel on x86_64. Required changes
>> include disabling profiling for:
>>
>> * arch/kernel/acpi/realmode and arch/kernel/boot/compressed:
>> not linked to main kernel
>> * arch/vdso, arch/kernel/vsyscall_64 and arch/kernel/hpet:
>> profiling causes segfaults during boot (incompatible context)
>
> This feature crashes on bootup:

I can recreate the crash using your config. It looks like another object file in arch/x86 is incompatible with gcov profiling (most likely due to special stack usage) and needs to be excluded from profiling. I'm working on identifying this file but it will take a bit more time.
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/