xref: /openbmc/linux/arch/powerpc/kernel/trace/Makefile (revision 7853f9c0)
17853f9c0SNaveen N. Rao#
27853f9c0SNaveen N. Rao# Makefile for the powerpc trace subsystem
37853f9c0SNaveen N. Rao#
47853f9c0SNaveen N. Rao
57853f9c0SNaveen N. Raosubdir-ccflags-$(CONFIG_PPC_WERROR)	:= -Werror
67853f9c0SNaveen N. Rao
77853f9c0SNaveen N. Raoifdef CONFIG_FUNCTION_TRACER
87853f9c0SNaveen N. Rao# do not trace tracer code
97853f9c0SNaveen N. RaoCFLAGS_REMOVE_ftrace.o = -mno-sched-epilog $(CC_FLAGS_FTRACE)
107853f9c0SNaveen N. Raoendif
117853f9c0SNaveen N. Rao
127853f9c0SNaveen N. Raoobj32-$(CONFIG_FUNCTION_TRACER)		+= ftrace_32.o
137853f9c0SNaveen N. Raoobj64-$(CONFIG_FUNCTION_TRACER)		+= ftrace_64.o
147853f9c0SNaveen N. Raoobj-$(CONFIG_DYNAMIC_FTRACE)		+= ftrace.o
157853f9c0SNaveen N. Raoobj-$(CONFIG_FUNCTION_GRAPH_TRACER)	+= ftrace.o
167853f9c0SNaveen N. Raoobj-$(CONFIG_FTRACE_SYSCALLS)		+= ftrace.o
177853f9c0SNaveen N. Raoobj-$(CONFIG_TRACING)			+= trace_clock.o
187853f9c0SNaveen N. Rao
197853f9c0SNaveen N. Raoobj-$(CONFIG_PPC64)			+= $(obj64-y)
207853f9c0SNaveen N. Raoobj-$(CONFIG_PPC32)			+= $(obj32-y)
217853f9c0SNaveen N. Rao
227853f9c0SNaveen N. Rao# Disable GCOV & sanitizers in odd or sensitive code
237853f9c0SNaveen N. RaoGCOV_PROFILE_ftrace.o := n
247853f9c0SNaveen N. RaoUBSAN_SANITIZE_ftrace.o := n
25