All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] perf/core: allow ftrace for functions in kernel/event/core.c
@ 2021-10-06 21:07 Song Liu
  2021-10-12 12:42 ` Peter Zijlstra
  2021-10-15  9:31 ` [tip: perf/core] perf/core: Allow " tip-bot2 for Song Liu
  0 siblings, 2 replies; 8+ messages in thread
From: Song Liu @ 2021-10-06 21:07 UTC (permalink / raw)
  To: linux-kernel
  Cc: kernel-team, acme, peterz, mingo, Song Liu, Steven Rostedt,
	Andrii Nakryiko, KP Singh

It is useful to trace functions in kernel/event/core.c. Allow ftrace for
them by removing $(CC_FLAGS_FTRACE) from Makefile.

---
We had some discussions about this last year [1]. Seems that enabling
ftrace in kernel/events won't really cause fatal recursion in the tests.
Shall we give it another try?

[1] https://www.mail-archive.com/linux-kernel@vger.kernel.org/msg2174018.html

Cc: Steven Rostedt (VMware) <rostedt@goodmis.org>
Cc: Peter Zijlstra <peterz@infradead.org>
Cc: Andrii Nakryiko <andrii@kernel.org>
Cc: KP Singh <kpsingh@kernel.org>
Signed-off-by: Song Liu <songliubraving@fb.com>
---
 kernel/events/Makefile | 5 -----
 1 file changed, 5 deletions(-)

diff --git a/kernel/events/Makefile b/kernel/events/Makefile
index 3c022e33c1091..8591c180b52b3 100644
--- a/kernel/events/Makefile
+++ b/kernel/events/Makefile
@@ -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
-
-- 
2.30.2


^ permalink raw reply related	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2021-10-15 14:06 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-10-06 21:07 [PATCH] perf/core: allow ftrace for functions in kernel/event/core.c Song Liu
2021-10-12 12:42 ` Peter Zijlstra
2021-10-13 15:46   ` Song Liu
2021-10-13 16:33     ` KP Singh
2021-10-13 16:47   ` Steven Rostedt
2021-10-15 13:27     ` Peter Zijlstra
2021-10-15 14:06       ` Steven Rostedt
2021-10-15  9:31 ` [tip: perf/core] perf/core: Allow " tip-bot2 for Song Liu

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.