Skip to content

Commit

Permalink
perf/core: Allow ftrace for functions in kernel/event/core.c
Browse files Browse the repository at this point in the history
It is useful to trace functions in kernel/event/core.c. Allow ftrace for
them by removing $(CC_FLAGS_FTRACE) from Makefile.

Signed-off-by: Song Liu <songliubraving@fb.com>
Signed-off-by: Peter Zijlstra (Intel) <peterz@infradead.org>
Link: https://lkml.kernel.org/r/20211006210732.2826289-1-songliubraving@fb.com
  • Loading branch information
Song Liu authored and Peter Zijlstra committed Oct 15, 2021
1 parent 8b8ff8c commit 79df457
Showing 1 changed file with 0 additions and 5 deletions.
5 changes: 0 additions & 5 deletions kernel/events/Makefile
Original file line number Diff line number Diff line change
@@ -1,10 +1,5 @@
# SPDX-License-Identifier: GPL-2.0
ifdef CONFIG_FUNCTION_TRACER
CFLAGS_REMOVE_core.o = $(CC_FLAGS_FTRACE)
endif

obj-y := core.o ring_buffer.o callchain.o

obj-$(CONFIG_HAVE_HW_BREAKPOINT) += hw_breakpoint.o
obj-$(CONFIG_UPROBES) += uprobes.o

0 comments on commit 79df457

Please sign in to comment.