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) 9CFLAGS_REMOVE_ftrace_pg.o = $(CC_FLAGS_FTRACE) 10endif 11 12obj32-$(CONFIG_FUNCTION_TRACER) += ftrace_mprofile.o ftrace.o 13ifdef CONFIG_MPROFILE_KERNEL 14obj64-$(CONFIG_FUNCTION_TRACER) += ftrace_mprofile.o ftrace.o 15else 16obj64-$(CONFIG_FUNCTION_TRACER) += ftrace_64_pg.o ftrace_pg.o 17endif 18obj-$(CONFIG_FUNCTION_TRACER) += ftrace_low.o 19obj-$(CONFIG_TRACING) += trace_clock.o 20 21obj-$(CONFIG_PPC64) += $(obj64-y) 22obj-$(CONFIG_PPC32) += $(obj32-y) 23 24# Disable GCOV, KCOV & sanitizers in odd or sensitive code 25GCOV_PROFILE_ftrace.o := n 26KCOV_INSTRUMENT_ftrace.o := n 27KCSAN_SANITIZE_ftrace.o := n 28UBSAN_SANITIZE_ftrace.o := n 29GCOV_PROFILE_ftrace_pg.o := n 30KCOV_INSTRUMENT_ftrace_pg.o := n 31KCSAN_SANITIZE_ftrace_pg.o := n 32UBSAN_SANITIZE_ftrace_pg.o := n 33