1# SPDX-License-Identifier: GPL-2.0 2# 3# Makefile for the powerpc trace subsystem 4# 5 6ifdef CONFIG_FUNCTION_TRACER 7# do not trace tracer code 8CFLAGS_REMOVE_ftrace.o = $(CC_FLAGS_FTRACE) 9endif 10 11obj32-$(CONFIG_FUNCTION_TRACER) += ftrace_mprofile.o 12ifdef CONFIG_MPROFILE_KERNEL 13obj64-$(CONFIG_FUNCTION_TRACER) += ftrace_mprofile.o 14else 15obj64-$(CONFIG_FUNCTION_TRACER) += ftrace_64_pg.o 16endif 17obj-$(CONFIG_FUNCTION_TRACER) += ftrace_low.o 18obj-$(CONFIG_DYNAMIC_FTRACE) += ftrace.o 19obj-$(CONFIG_FUNCTION_GRAPH_TRACER) += ftrace.o 20obj-$(CONFIG_FTRACE_SYSCALLS) += ftrace.o 21obj-$(CONFIG_TRACING) += trace_clock.o 22 23obj-$(CONFIG_PPC64) += $(obj64-y) 24obj-$(CONFIG_PPC32) += $(obj32-y) 25 26# Disable GCOV, KCOV & sanitizers in odd or sensitive code 27GCOV_PROFILE_ftrace.o := n 28KCOV_INSTRUMENT_ftrace.o := n 29UBSAN_SANITIZE_ftrace.o := n 30