Update of /cvsroot/ltp/utils/analysis/gcov-kernel/i386
In directory sc8-pr-cvs1:/tmp/cvs-serv2710/i386
Added Files:
gcov-2.4.21-i386.patch
Log Message:
Broken out patches for the 2.4.21 gcov patch
I added preliminary support for ppc64 and x86-64 here, but they have not yet been tested.
--- NEW FILE: gcov-2.4.21-i386.patch ---
--- linux-2.4.21/arch/i386/config.in Fri Jun 13 09:51:29 2003
+++ linux-2.4.21-gcov/arch/i386/config.in Wed Jun 25 17:42:29 2003
@@ -484,4 +484,14 @@ fi
endmenu
+mainmenu_option next_comment
+comment 'GCOV coverage profiling'
+
+bool 'GCOV kernel' CONFIG_GCOV_PROFILE
+if [ "$CONFIG_GCOV_PROFILE" != "n" ]; then
+ bool ' GCOV kernel profiler' CONFIG_GCOV_ALL
+ tristate ' gcov-proc module' CONFIG_GCOV_PROC
+fi
+endmenu
+
source lib/Config.in
--- linux-2.4.21/arch/i386/kernel/head.S Fri Jun 13 09:51:29 2003
+++ linux-2.4.21-gcov/arch/i386/kernel/head.S Wed Jun 25 17:42:29 2003
@@ -446,3 +446,26 @@ ENTRY(gdt_table)
.quad 0x00009a0000000000 /* 0x50 APM CS 16 code (16 bit) */
.quad 0x0040920000000000 /* 0x58 APM DS data */
.fill NR_CPUS*4,8,0 /* space for TSS's and LDT's */
+
+
+ #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
+
|