From: Peter O. <obe...@us...> - 2006-02-21 15:07:19
|
Update of /cvsroot/ltp/utils/analysis/gcov-kernel/ia64 In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv15821/ia64 Added Files: gcov-2.6.15-ia64.patch Log Message: gcov-kernel: added patch for linux-2.6.15 (submitted by and...@gm...) --- NEW FILE: gcov-2.6.15-ia64.patch --- diff -Naurp linux-2.6.15/arch/ia64/Kconfig linux-2.6.15-gcov/arch/ia64/Kconfig --- linux-2.6.15/arch/ia64/Kconfig 2006-02-06 18:20:57.000000000 +0000 +++ linux-2.6.15-gcov/arch/ia64/Kconfig 2006-02-06 20:25:40.000000000 +0000 @@ -449,6 +449,8 @@ menu "Instrumentation Support" source "arch/ia64/oprofile/Kconfig" +source "drivers/gcov/Kconfig" + config KPROBES bool "Kprobes (EXPERIMENTAL)" help diff -Naurp linux-2.6.15/arch/ia64/kernel/head.S linux-2.6.15-gcov/arch/ia64/kernel/head.S --- linux-2.6.15/arch/ia64/kernel/head.S 2006-02-06 18:20:57.000000000 +0000 +++ linux-2.6.15-gcov/arch/ia64/kernel/head.S 2006-02-06 20:25:40.000000000 +0000 @@ -1218,3 +1218,24 @@ END(ia64_jump_to_sal) #endif /* CONFIG_HOTPLUG_CPU */ #endif /* CONFIG_SMP */ + +#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 |