From: Peter O. <obe...@us...> - 2005-11-03 09:49:17
|
Update of /cvsroot/ltp/utils/analysis/gcov-kernel/i386 In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv25026/i386 Added Files: gcov-2.6.14-i386.patch Log Message: gcov-kernel: updated kernel patch for linux-2.6.14 --- NEW FILE: gcov-2.6.14-i386.patch --- diff -ruN linux-2.6.14/arch/i386/boot/compressed/Makefile linux-2.6.14-gcov/arch/i386/boot/compressed/Makefile --- linux-2.6.14/arch/i386/boot/compressed/Makefile 2005-10-28 02:02:08.000000000 +0200 +++ linux-2.6.14-gcov/arch/i386/boot/compressed/Makefile 2005-11-03 10:20:11.551635024 +0100 @@ -7,6 +7,7 @@ targets := vmlinux vmlinux.bin vmlinux.bin.gz head.o misc.o piggy.o EXTRA_AFLAGS := -traditional +CFLAGS := $(CFLAGS_NOGCOV) LDFLAGS_vmlinux := -Ttext $(IMAGE_OFFSET) -e startup_32 $(obj)/vmlinux: $(obj)/head.o $(obj)/misc.o $(obj)/piggy.o FORCE diff -ruN linux-2.6.14/arch/i386/Kconfig linux-2.6.14-gcov/arch/i386/Kconfig --- linux-2.6.14/arch/i386/Kconfig 2005-10-28 02:02:08.000000000 +0200 +++ linux-2.6.14-gcov/arch/i386/Kconfig 2005-11-03 10:20:11.554634568 +0100 @@ -984,6 +984,7 @@ Generate crash dump after being started by kexec. endmenu +source "drivers/gcov/Kconfig" menu "Power management options (ACPI, APM)" depends on !X86_VOYAGER diff -ruN linux-2.6.14/arch/i386/kernel/head.S linux-2.6.14-gcov/arch/i386/kernel/head.S --- linux-2.6.14/arch/i386/kernel/head.S 2005-10-28 02:02:08.000000000 +0200 +++ linux-2.6.14-gcov/arch/i386/kernel/head.S 2005-11-03 10:21:48.402911392 +0100 @@ -525,3 +525,23 @@ .quad 0x0000000000000000 /* 0xf0 - unused */ .quad 0x0000000000000000 /* 0xf8 - GDT entry 31: double-fault TSS */ +#ifdef CONFIG_GCOV_PROFILE +/* + * The .ctors-section contains a list of pointers to constructor + * functions which are used to initialize gcov structures. + * + * Because there is no NULL at the end of the constructor list + * in the kernel we need the addresses of both the constructor + * as well as the destructor list which are supposed to be + * adjacent. + */ + +.section ".ctors","aw" +.globl __CTOR_LIST__ +.type __CTOR_LIST__,@object +__CTOR_LIST__: +.section ".dtors","aw" +.globl __DTOR_LIST__ +.type __DTOR_LIST__,@object +__DTOR_LIST__: +#endif |