xref: /openbmc/linux/arch/powerpc/kernel/trace/Makefile (revision 4ee83a2c)
1b2441318SGreg Kroah-Hartman# SPDX-License-Identifier: GPL-2.0
27853f9c0SNaveen N. Rao#
37853f9c0SNaveen N. Rao# Makefile for the powerpc trace subsystem
47853f9c0SNaveen N. Rao#
57853f9c0SNaveen N. Rao
67853f9c0SNaveen N. Raoifdef CONFIG_FUNCTION_TRACER
77853f9c0SNaveen N. Rao# do not trace tracer code
82a056f58SNicholas PigginCFLAGS_REMOVE_ftrace.o = $(CC_FLAGS_FTRACE)
97853f9c0SNaveen N. Raoendif
107853f9c0SNaveen N. Rao
11*4ee83a2cSChristophe Leroyobj32-$(CONFIG_FUNCTION_TRACER)		+= ftrace_mprofile.o
12096ff2ddSNaveen N. Raoifdef CONFIG_MPROFILE_KERNEL
13*4ee83a2cSChristophe Leroyobj64-$(CONFIG_FUNCTION_TRACER)		+= ftrace_mprofile.o
14096ff2ddSNaveen N. Raoelse
15096ff2ddSNaveen N. Raoobj64-$(CONFIG_FUNCTION_TRACER)		+= ftrace_64_pg.o
16096ff2ddSNaveen N. Raoendif
17*4ee83a2cSChristophe Leroyobj-$(CONFIG_FUNCTION_TRACER)		+= ftrace_low.o
187853f9c0SNaveen N. Raoobj-$(CONFIG_DYNAMIC_FTRACE)		+= ftrace.o
197853f9c0SNaveen N. Raoobj-$(CONFIG_FUNCTION_GRAPH_TRACER)	+= ftrace.o
207853f9c0SNaveen N. Raoobj-$(CONFIG_FTRACE_SYSCALLS)		+= ftrace.o
217853f9c0SNaveen N. Raoobj-$(CONFIG_TRACING)			+= trace_clock.o
227853f9c0SNaveen N. Rao
237853f9c0SNaveen N. Raoobj-$(CONFIG_PPC64)			+= $(obj64-y)
247853f9c0SNaveen N. Raoobj-$(CONFIG_PPC32)			+= $(obj32-y)
257853f9c0SNaveen N. Rao
26fb0b0a73SAndrew Donnellan# Disable GCOV, KCOV & sanitizers in odd or sensitive code
277853f9c0SNaveen N. RaoGCOV_PROFILE_ftrace.o := n
28fb0b0a73SAndrew DonnellanKCOV_INSTRUMENT_ftrace.o := n
297853f9c0SNaveen N. RaoUBSAN_SANITIZE_ftrace.o := n
30