1 # SPDX-License-Identifier: GPL-2.0 2 # 3 # Makefile for the powerpc trace subsystem 4 # 5 6 ifdef CONFIG_FUNCTION_TRACER 7 # do not trace tracer code 8 CFLAGS_REMOVE_ftrace.o = $(CC_FLAGS_FTRACE) 9 CFLAGS_REMOVE_ftrace_64_pg.o = $(CC_FLAGS_FTRACE) 10 endif 11 12 obj32-$(CONFIG_FUNCTION_TRACER) += ftrace.o ftrace_entry.o 13 ifdef CONFIG_MPROFILE_KERNEL 14 obj64-$(CONFIG_FUNCTION_TRACER) += ftrace.o ftrace_entry.o 15 else 16 obj64-$(CONFIG_FUNCTION_TRACER) += ftrace_64_pg.o ftrace_64_pg_entry.o 17 endif 18 obj-$(CONFIG_TRACING) += trace_clock.o 19 20 obj-$(CONFIG_PPC64) += $(obj64-y) 21 obj-$(CONFIG_PPC32) += $(obj32-y) 22 23 # Disable GCOV, KCOV & sanitizers in odd or sensitive code 24 GCOV_PROFILE_ftrace.o := n 25 KCOV_INSTRUMENT_ftrace.o := n 26 KCSAN_SANITIZE_ftrace.o := n 27 UBSAN_SANITIZE_ftrace.o := n 28 GCOV_PROFILE_ftrace_64_pg.o := n 29 KCOV_INSTRUMENT_ftrace_64_pg.o := n 30 KCSAN_SANITIZE_ftrace_64_pg.o := n 31 UBSAN_SANITIZE_ftrace_64_pg.o := n
Linux® is a registered trademark of Linus Torvalds in the United States and other countries.
TOMOYO® is a registered trademark of NTT DATA CORPORATION.