Re: [PATCH 1/7] kernel: call constructors

From: Peter Oberparleiter
Date: Tue May 20 2008 - 02:45:27 EST

Andrew Morton wrote:
> On Mon, 19 May 2008 10:43:14 +0200
> Peter Oberparleiter <peter.oberparleiter@xxxxxxxxxx> wrote:
>> From: Peter Oberparleiter <peter.oberparleiter@xxxxxxxxxx>
>> Call constructors during kernel init and module load. Required by the
>> gcov profiling infrastructure: gcc's profiling code uses constructors
>> to register profiling data structures.
> What happens with architectures which do not use
> include/asm-generic/ A quicky grep points at

In that case, no constructors would be called and as a result the gcov
debugfs directory would be empty. This should be easily fixable as the
case arises though. I've re-checked arch/*/vmlinux* and all of those
linker scripts seem to include asm-generic/ at most via
one indirection.

> arch/m68k/kernel/

Includes asm-generic/ either via or

> arch/sh/kernel/

Includes asm-generic/ either via or

> arch/um/kernel/

Includes asm-generic/ either via or

To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at
Please read the FAQ at