Skip to contentSkip to conversation

MIPS: Disable Function Tracer for Compressed kernel support part

PATCH In review Wu Zhangjin 2 participants 2 messages Oct 16, 2009 MIPS

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 MIPS: Disable Function Tracer for Compressed kernel support part

There is no need to trace the compressed support part, so, dislable it. and also, if we not disable it, there will be compiling error about no defined _mcount.

---
 arch/mips/boot/compressed/Makefile |    3 +++
 1 files changed, 3 insertions(+), 0 deletions(-)
arch/mips/boot/compressed/Makefile +3 -0
index 9bc435d..e27f40b 100644
@@ -20,6 +20,9 @@ VMLINUZ_LOAD_ADDRESS := 0x$(shell [ -n "$(VMLINUX_SIZE)" ] && printf %x $$(($(VM
 # set the default size of the mallocing area for decompressing
 BOOT_HEAP_SIZE := 0x400000
 
+# Disable Function Tracer
+KBUILD_CFLAGS := $(shell echo $(KBUILD_CFLAGS) | sed -e "s/-pg//")
+
 KBUILD_CFLAGS := $(LINUXINCLUDE) $(KBUILD_CFLAGS) -D__KERNEL__ \
 	-DBOOT_HEAP_SIZE=$(BOOT_HEAP_SIZE) -D"VMLINUX_LOAD_ADDRESS_ULL=$(VMLINUX_LOAD_ADDRESS)ull" \
 
Signature · 1 line
1.6.2.1
#1 lore raw
Quoted 3 lines · Wu Zhangjin

There is no need to trace the compressed support part, so, dislable it. and also, if we not disable it, there will be compiling error about no defined _mcount.

Thanks, folded into the other compression patch in -queue.

Ralf