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