Skip to content

tracing: function graph output for preempt/irqs-off tracers

Jiri Olsa lkml 6 versions – In review

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v6 Latest4 patches 10 repliesIn review
  2. v54 patches 1 replySuperseded
  3. v42 patches 0 repliesSuperseded
Earlier versions · 3
VersionPostedPatchesRepliesStatus
v32 patches8 repliesSuperseded
v24 patches4 repliesSuperseded
v14 patches4 repliesSuperseded

Changes in v6 from the cover letter

- using stubs instead of ifdef in trace_irqsoff for graph tracer's calls

Patches in v6 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/4tracing: adding ftrace events for graph tracerkernel/trace/trace_functions_graph.c+27 -11 reply
2/4tracing: graph tracer - adding support for passing flags to ouput functionskernel/trace/trace.h kernel/trace/trace_functions_graph.c+73 -561 reply
3/4tracing: graph output support for irqsoff tracerinclude/linux/ftrace.h kernel/trace/trace.c kernel/trace/trace.h +2 more+312 -334 replies
4/4tracing: graph output support for preemptirqsoff/preemptoff tracerskernel/trace/trace_irqsoff.c+12 -02 replies

Reviews trailers per patch

1 of 4 patches has a Reviewed-by or Acked-by.

PatchFrederic Weisbecker
1/4
2/4
3/4A-b
4/4

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

Read the v6 thread

Cover letter [PATCHv6 0/4] tracing: function graph output for preempt/irqs-off tracers

hi,

updates based on comments by Frederic Weisbecker,
also rebase to latest master.

I'm sending reworked version of the graph output support for preemptirqsoff/preemptoff/irqsoff tracers.

v6:
- using stubs instead of ifdef in trace_irqsoff for graph tracer's calls

v5:
- function graph events are back in game
- changed function graph tracer interface to be able to pass custom tracer flags
- changed calls to trace_function to trace graph records when the display-graph otion is enabled. As function tracer and graph tracer have different spacing during the record output, this way it looks better, and the info stays.

This could be also done via TRACE_PRINT, then it'd be displayed as comment.. I chose the first way, though it could be easily changed.

v4:
- fixed header to display all the info as for
current irqsoff tracer
- fixed reset of the max_tr buffer during the
display-graph switch

v3:
- the function_graph tracer should have the same output as current version even with events enabled, unless I missed something again ;)
- I gave up the idea of function_graph events, since it was unsuitable for outputing other events as comments "/* */"
- I'm not including the raw function_graph for now

attached patches:
- 1/4 adding ftrace events for graph tracer
- 2/4 graph tracer - adding support for passing flags to ouput functions
- 3/4 graph output support for irqsoff tracer
- 4/4 graph output support for preemptirqsoff/preemptoff tracers

plz let me know what you think

wbr,
jirka
---