mirror of
https://github.com/torvalds/linux.git
synced 2024-10-30 16:51:45 +00:00
096ff2ddba
Split ftrace_64.S further retaining the core ftrace 64-bit aspects in ftrace_64.S and moving ftrace_caller() and ftrace_graph_caller() into separate files based on -mprofile-kernel. The livepatch routines are all now contained within the mprofile file. Signed-off-by: Naveen N. Rao <naveen.n.rao@linux.vnet.ibm.com> Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
30 lines
822 B
Makefile
30 lines
822 B
Makefile
#
|
|
# Makefile for the powerpc trace subsystem
|
|
#
|
|
|
|
subdir-ccflags-$(CONFIG_PPC_WERROR) := -Werror
|
|
|
|
ifdef CONFIG_FUNCTION_TRACER
|
|
# do not trace tracer code
|
|
CFLAGS_REMOVE_ftrace.o = -mno-sched-epilog $(CC_FLAGS_FTRACE)
|
|
endif
|
|
|
|
obj32-$(CONFIG_FUNCTION_TRACER) += ftrace_32.o
|
|
obj64-$(CONFIG_FUNCTION_TRACER) += ftrace_64.o
|
|
ifdef CONFIG_MPROFILE_KERNEL
|
|
obj64-$(CONFIG_FUNCTION_TRACER) += ftrace_64_mprofile.o
|
|
else
|
|
obj64-$(CONFIG_FUNCTION_TRACER) += ftrace_64_pg.o
|
|
endif
|
|
obj-$(CONFIG_DYNAMIC_FTRACE) += ftrace.o
|
|
obj-$(CONFIG_FUNCTION_GRAPH_TRACER) += ftrace.o
|
|
obj-$(CONFIG_FTRACE_SYSCALLS) += ftrace.o
|
|
obj-$(CONFIG_TRACING) += trace_clock.o
|
|
|
|
obj-$(CONFIG_PPC64) += $(obj64-y)
|
|
obj-$(CONFIG_PPC32) += $(obj32-y)
|
|
|
|
# Disable GCOV & sanitizers in odd or sensitive code
|
|
GCOV_PROFILE_ftrace.o := n
|
|
UBSAN_SANITIZE_ftrace.o := n
|