All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH v2 0/3] Ftrace fixes
@ 2017-11-03 11:44 Julien Thierry
  2017-11-03 11:44 ` [PATCH v2 1/3] arm64: Fix static use of function graph Julien Thierry
                   ` (2 more replies)
  0 siblings, 3 replies; 6+ messages in thread
From: Julien Thierry @ 2017-11-03 11:44 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 and second patches fixe the ftrace issue for arm64 and arm
respectively.
Third patch fixes the perf front-end.

Changes since v1:
* Added fix for arm suggested by Akashi Takahiro
* Reset graph depth file when it exists

Cheers,

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

 arch/arm/kernel/entry-ftrace.S   | 14 +++++++-------
 arch/arm64/kernel/entry-ftrace.S | 12 +++---------
 tools/perf/builtin-ftrace.c      | 14 +++++++++++++-
 3 files changed, 23 insertions(+), 17 deletions(-)

--
1.9.1

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

end of thread, other threads:[~2017-11-03 12:06 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2017-11-03 11:44 [PATCH v2 0/3] Ftrace fixes Julien Thierry
2017-11-03 11:44 ` [PATCH v2 1/3] arm64: Fix static use of function graph Julien Thierry
2017-11-03 12:06   ` Will Deacon
2017-11-03 11:44 ` [PATCH v2 2/3] arm: ftrace: function_graph with DYNAMIC_FTRACE Julien Thierry
2017-11-03 11:44 ` [PATCH v2 3/3] perf: Fix ftrace builtin when kernel doesn't have function_graph Julien Thierry
2017-11-03 11:44   ` Julien Thierry

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.