Skip to content

fgraph: Do not save calltime in shadow stack

Steven Rostedt linux-trace-kernel lkml 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest3 patches 1 replyIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/3fgraph: Use fgraph data to store subtime for profilerinclude/linux/ftrace.h kernel/trace/fgraph.c kernel/trace/ftrace.c+62 -290 replies
2/3ftrace: Use a running sleeptime instead of saving on shadow stackinclude/linux/sched.h kernel/trace/fgraph.c kernel/trace/ftrace.c +2 more+60 -250 replies
3/3ftrace: Have calltime be saved in the fgraph storageinclude/linux/ftrace.h kernel/trace/fgraph.c kernel/trace/ftrace.c +1 more+51 -340 replies

Reviews trailers per patch

None of the 3 patches has a Reviewed-by or Acked-by of their own; the series has one for all of them.

PatchMasami Hiramatsu (Google)
SeriesA-b
1/3
2/3
3/3

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v1 thread

Cover letter [PATCH 0/3] fgraph: Do not save calltime in shadow stack

Now that there's more users of the function graph infrastructure, the calltime field on the shadow stack wastes space and also getting the timestamp is a waste of time for those that do not use it.

Instead, have the only two users of it (function graph tracer and the profiler) store it in its own shadow stack variable.

Steven Rostedt (3):
fgraph: Use fgraph data to store subtime for profiler
ftrace: Use a running sleeptime instead of saving in shadow stack
ftrace: Have calltime be saved in the fgraph storage

----

 include/linux/ftrace.h               |  5 +--
 include/linux/sched.h                |  1 +
 kernel/trace/fgraph.c                | 85 +++++++++++++++++++++---------------
 kernel/trace/ftrace.c                | 45 +++++++++++++------
 kernel/trace/trace.h                 |  1 +
 kernel/trace/trace_functions_graph.c | 52 +++++++++++++++++++++-
 6 files changed, 137 insertions(+), 52 deletions(-)