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) 9*bad90aa5SNaveen N RaoCFLAGS_REMOVE_ftrace_64_pg.o = $(CC_FLAGS_FTRACE) 107853f9c0SNaveen N. Raoendif 117853f9c0SNaveen N. Rao 12*bad90aa5SNaveen N Raoobj32-$(CONFIG_FUNCTION_TRACER) += ftrace.o ftrace_entry.o 13096ff2ddSNaveen N. Raoifdef CONFIG_MPROFILE_KERNEL 14*bad90aa5SNaveen N Raoobj64-$(CONFIG_FUNCTION_TRACER) += ftrace.o ftrace_entry.o 15096ff2ddSNaveen N. Raoelse 16*bad90aa5SNaveen N Raoobj64-$(CONFIG_FUNCTION_TRACER) += ftrace_64_pg.o ftrace_64_pg_entry.o 17096ff2ddSNaveen N. Raoendif 187853f9c0SNaveen N. Raoobj-$(CONFIG_TRACING) += trace_clock.o 197853f9c0SNaveen N. Rao 207853f9c0SNaveen N. Raoobj-$(CONFIG_PPC64) += $(obj64-y) 217853f9c0SNaveen N. Raoobj-$(CONFIG_PPC32) += $(obj32-y) 227853f9c0SNaveen N. Rao 23fb0b0a73SAndrew Donnellan# Disable GCOV, KCOV & sanitizers in odd or sensitive code 247853f9c0SNaveen N. RaoGCOV_PROFILE_ftrace.o := n 25fb0b0a73SAndrew DonnellanKCOV_INSTRUMENT_ftrace.o := n 262fb857bcSRohan McLureKCSAN_SANITIZE_ftrace.o := n 277853f9c0SNaveen N. RaoUBSAN_SANITIZE_ftrace.o := n 28*bad90aa5SNaveen N RaoGCOV_PROFILE_ftrace_64_pg.o := n 29*bad90aa5SNaveen N RaoKCOV_INSTRUMENT_ftrace_64_pg.o := n 30*bad90aa5SNaveen N RaoKCSAN_SANITIZE_ftrace_64_pg.o := n 31*bad90aa5SNaveen N RaoUBSAN_SANITIZE_ftrace_64_pg.o := n 32