All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH 0/2] Ftrace fixes
@ 2017-11-01 14:33 Julien Thierry
  2017-11-01 14:33 ` [PATCH 1/2] arm64: Fix static use of function graph Julien Thierry
  2017-11-01 14:33   ` Julien Thierry
  0 siblings, 2 replies; 19+ messages in thread
From: Julien Thierry @ 2017-11-01 14:33 UTC (permalink / raw)
  To: linux-arm-kernel

Hi,

>From what Steve Rostedt said, we shouldn't rely on ftrace_trace_function
not being ftrace_stub when using the function graph tracer. As x86 does,
always check whether function graph tracing is requested in static tracing.

While testing that I didn't break things, I discovered that the perf ftrace
builtin doesn't handle kernels built without function graph tracer
(regardless of whether tracing is dynamic or not).

First patch fixes the ftrace issue.
Second patch fixes the perf front-end.

Cheers,

Julien Thierry (2):
  arm64: Fix static use of function graph
  perf: Fix ftrace builtin when kernel doesn't have function_graph

 arch/arm64/kernel/entry-ftrace.S | 12 +++---------
 tools/perf/builtin-ftrace.c      |  3 ++-
 2 files changed, 5 insertions(+), 10 deletions(-)

--
1.9.1

^ permalink raw reply	[flat|nested] 19+ messages in thread
* [PATCH 0/2] ftrace fixes
@ 2024-03-26 20:30 ` Alexandre Ghiti
  0 siblings, 0 replies; 19+ messages in thread
From: Alexandre Ghiti @ 2024-03-26 20:30 UTC (permalink / raw)
  To: Paul Walmsley, Palmer Dabbelt, Albert Ou, Jisheng Zhang,
	Björn Töpel, Pu Lehui, Daniel Borkmann, Puranjay Mohan,
	Zong Li, Masami Hiramatsu, linux-riscv, linux-kernel
  Cc: Alexandre Ghiti

Both were reported recently as there are efforts ongoing to
reimplement ftrace on riscv and both are independent of this rework,
so here they are.

Alexandre Ghiti (2):
  riscv: Fix warning by declaring arch_cpu_idle() as noinstr
  riscv: Disable preemption when using patch_map()

 arch/riscv/kernel/patch.c   | 8 ++++++++
 arch/riscv/kernel/process.c | 2 +-
 2 files changed, 9 insertions(+), 1 deletion(-)

-- 
2.39.2


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

end of thread, other threads:[~2024-04-04 22:20 UTC | newest]

Thread overview: 19+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-11-01 14:33 [PATCH 0/2] Ftrace fixes Julien Thierry
2017-11-01 14:33 ` [PATCH 1/2] arm64: Fix static use of function graph Julien Thierry
2017-11-01 16:43   ` Steven Rostedt
2017-11-02  4:43   ` AKASHI Takahiro
2017-11-02 10:18     ` Russell King - ARM Linux
2017-11-03  9:25       ` Julien Thierry
2017-11-06  1:36         ` AKASHI Takahiro
2017-11-01 14:33 ` [PATCH 2/2] perf: Fix ftrace builtin when kernel doesn't have function_graph Julien Thierry
2017-11-01 14:33   ` Julien Thierry
2017-11-01 16:44   ` Steven Rostedt
2017-11-01 16:44     ` Steven Rostedt
2017-11-01 16:58     ` Julien Thierry
2017-11-01 16:58       ` Julien Thierry
2024-03-26 20:30 [PATCH 0/2] ftrace fixes Alexandre Ghiti
2024-03-26 20:30 ` Alexandre Ghiti
2024-03-26 22:30 ` Puranjay Mohan
2024-03-26 22:30   ` Puranjay Mohan
2024-04-04 22:20 ` patchwork-bot+linux-riscv
2024-04-04 22:20   ` patchwork-bot+linux-riscv

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.