Skip to content

Commit c8afde7

Browse files
committed
sh: Don't profile return_address().
This adds return_address.c to the -pg exclusion list, as this is the building block for CALLER_ADDRx we do not want to profile this. Signed-off-by: Paul Mundt <lethal@linux-sh.org>
1 parent 5a3abba commit c8afde7

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

‎arch/sh/kernel/Makefile‎

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,8 @@ ifdef CONFIG_FUNCTION_TRACER
99
CFLAGS_REMOVE_ftrace.o = -pg
1010
endif
1111

12+
CFLAGS_REMOVE_return_address.o = -pg
13+
1214
obj-y := debugtraps.o dumpstack.o idle.o io.o io_generic.o irq.o \
1315
machvec.o nmi_debug.o process_$(BITS).o ptrace_$(BITS).o \
1416
return_address.o \

0 commit comments

Comments
 (0)