The patch titled gcov: enable GCOV_PROFILE_ALL for x86_64 has been removed from the -mm tree. Its filename was gcov-enable-gcov_profile_all-for-x86_64.patch This patch was dropped because it was merged into mainline or a subsystem tree The current -mm tree may be found at http://userweb.kernel.org/~akpm/mmotm/ ------------------------------------------------------ Subject: gcov: enable GCOV_PROFILE_ALL for x86_64 From: Peter Oberparleiter <oberpar@xxxxxxxxxxxxxxxxxx> 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) Signed-off-by: Peter Oberparleiter <oberpar@xxxxxxxxxxxxxxxxxx> Cc: Andi Kleen <andi@xxxxxxxxxxxxxx> Cc: Huang Ying <ying.huang@xxxxxxxxx> Cc: Li Wei <W.Li@xxxxxxx> Cc: Michael Ellerman <michaele@xxxxxxxxxxx> Cc: Ingo Molnar <mingo@xxxxxxx> Cc: Heiko Carstens <heicars2@xxxxxxxxxxxxxxxxxx> Cc: Martin Schwidefsky <mschwid2@xxxxxxxxxxxxxxxxxx> Cc: Rusty Russell <rusty@xxxxxxxxxxxxxxx> Cc: WANG Cong <xiyou.wangcong@xxxxxxxxx> Cc: Sam Ravnborg <sam@xxxxxxxxxxxx> Cc: Jeff Dike <jdike@xxxxxxxxxxx> Cc: Al Viro <viro@xxxxxxxxxxxxxxxxxx> Signed-off-by: Andrew Morton <akpm@xxxxxxxxxxxxxxxxxxxx> --- arch/x86/boot/Makefile | 1 + arch/x86/boot/compressed/Makefile | 1 + arch/x86/kernel/Makefile | 2 ++ arch/x86/kernel/acpi/realmode/Makefile | 1 + arch/x86/vdso/Makefile | 1 + kernel/gcov/Kconfig | 2 +- 6 files changed, 7 insertions(+), 1 deletion(-) diff -puN arch/x86/boot/Makefile~gcov-enable-gcov_profile_all-for-x86_64 arch/x86/boot/Makefile --- a/arch/x86/boot/Makefile~gcov-enable-gcov_profile_all-for-x86_64 +++ a/arch/x86/boot/Makefile @@ -70,6 +70,7 @@ KBUILD_CFLAGS := $(LINUXINCLUDE) -g -Os $(call cc-option, -mpreferred-stack-boundary=2) KBUILD_CFLAGS += $(call cc-option, -m32) KBUILD_AFLAGS := $(KBUILD_CFLAGS) -D__ASSEMBLY__ +GCOV_PROFILE := n $(obj)/bzImage: asflags-y := $(SVGA_MODE) diff -puN arch/x86/boot/compressed/Makefile~gcov-enable-gcov_profile_all-for-x86_64 arch/x86/boot/compressed/Makefile --- a/arch/x86/boot/compressed/Makefile~gcov-enable-gcov_profile_all-for-x86_64 +++ a/arch/x86/boot/compressed/Makefile @@ -15,6 +15,7 @@ KBUILD_CFLAGS += $(call cc-option,-ffree KBUILD_CFLAGS += $(call cc-option,-fno-stack-protector) KBUILD_AFLAGS := $(KBUILD_CFLAGS) -D__ASSEMBLY__ +GCOV_PROFILE := n LDFLAGS := -m elf_$(UTS_MACHINE) LDFLAGS_vmlinux := -T diff -puN arch/x86/kernel/Makefile~gcov-enable-gcov_profile_all-for-x86_64 arch/x86/kernel/Makefile --- a/arch/x86/kernel/Makefile~gcov-enable-gcov_profile_all-for-x86_64 +++ a/arch/x86/kernel/Makefile @@ -24,6 +24,8 @@ CFLAGS_vsyscall_64.o := $(PROFILING) -g0 CFLAGS_hpet.o := $(nostackp) CFLAGS_tsc.o := $(nostackp) CFLAGS_paravirt.o := $(nostackp) +GCOV_PROFILE_vsyscall_64.o := n +GCOV_PROFILE_hpet.o := n obj-y := process_$(BITS).o signal.o entry_$(BITS).o obj-y += traps.o irq.o irq_$(BITS).o dumpstack_$(BITS).o diff -puN arch/x86/kernel/acpi/realmode/Makefile~gcov-enable-gcov_profile_all-for-x86_64 arch/x86/kernel/acpi/realmode/Makefile --- a/arch/x86/kernel/acpi/realmode/Makefile~gcov-enable-gcov_profile_all-for-x86_64 +++ a/arch/x86/kernel/acpi/realmode/Makefile @@ -42,6 +42,7 @@ KBUILD_CFLAGS := $(LINUXINCLUDE) -g -Os $(call cc-option, -mpreferred-stack-boundary=2) KBUILD_CFLAGS += $(call cc-option, -m32) KBUILD_AFLAGS := $(KBUILD_CFLAGS) -D__ASSEMBLY__ +GCOV_PROFILE := n WAKEUP_OBJS = $(addprefix $(obj)/,$(wakeup-y)) diff -puN arch/x86/vdso/Makefile~gcov-enable-gcov_profile_all-for-x86_64 arch/x86/vdso/Makefile --- a/arch/x86/vdso/Makefile~gcov-enable-gcov_profile_all-for-x86_64 +++ a/arch/x86/vdso/Makefile @@ -123,6 +123,7 @@ quiet_cmd_vdso = VDSO $@ -Wl,-T,$(filter %.lds,$^) $(filter %.o,$^) VDSO_LDFLAGS = -fPIC -shared $(call ld-option, -Wl$(comma)--hash-style=sysv) +GCOV_PROFILE := n # # Install the unstripped copy of vdso*.so listed in $(vdso-install-y). diff -puN kernel/gcov/Kconfig~gcov-enable-gcov_profile_all-for-x86_64 kernel/gcov/Kconfig --- a/kernel/gcov/Kconfig~gcov-enable-gcov_profile_all-for-x86_64 +++ a/kernel/gcov/Kconfig @@ -34,7 +34,7 @@ config GCOV_KERNEL config GCOV_PROFILE_ALL bool "Profile entire Kernel" depends on GCOV_KERNEL - depends on S390 || X86_32 + depends on S390 || X86 default n ---help--- This options activates profiling for the entire kernel. _ Patches currently in -mm which might be from oberpar@xxxxxxxxxxxxxxxxxx are origin.patch -- To unsubscribe from this list: send the line "unsubscribe mm-commits" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html