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