Skip to content

RFC Ftrace functions hashlist

Frederic Weisbecker lkml 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 RFC Latest10 patches 23 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/10ftrace: Generalize the function hashlist from function profilerkernel/trace/Makefile kernel/trace/ftrace.c kernel/trace/functions_hlist.c +1 more+286 -2590 replies
2/10ftrace: Ensure tracing has really stopped before leaving unregister_ftrace_graphkernel/trace/ftrace.c+12 -02 replies
3/10ftrace: Drop the ftrace_profile_enabled checks in tracing hot pathkernel/trace/ftrace.c+2 -525 replies
4/10ftrace: Ensure buffers are visibles to tracing callbacks right awaykernel/trace/ftrace.c+8 -00 replies
5/10ftrace: Drop buffer check in function profiler callbackskernel/trace/ftrace.c+0 -52 replies
6/10ftrace: Release the function hlist if we don't need it anymorekernel/trace/ftrace.c kernel/trace/functions_hlist.c kernel/trace/functions_hlist.h+28 -352 replies
7/10ftrace: Make the function hashlist concurrently usablekernel/trace/ftrace.c kernel/trace/functions_hlist.c kernel/trace/functions_hlist.h+60 -60 replies
8/10tracing: Simplify test for function_graph tracingkernel/trace/trace.h kernel/trace/trace_functions_graph.c+3 -70 replies
9/10tracing: Use the hashlist for graph functionkernel/trace/ftrace.c kernel/trace/functions_hlist.c kernel/trace/functions_hlist.h +2 more+133 -212 replies
10/10ftrace: Factorize search and insertion in the function hashlistkernel/trace/ftrace.c kernel/trace/functions_hlist.h kernel/trace/trace_functions_graph.c+25 -220 replies

Reviews trailers per patch

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

PatchMathieu DesnoyersAnanth N Mavinakayanahalli
1/10
2/10
3/10A-b A-b
4/10
5/10
6/10
7/10
8/10
9/10
10/10

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

Read the v1 thread

Cover letter [RFC PATCH 00/10] Ftrace functions hashlist

Hi,

This set exports the functions hashlist in use by the functions profiler for more general uses.

For now it has fixed a scalability problem in the function graph tracer concerning the function start filtering (toward set_graph_function file).

This is especially the beginning of a work to allow multiple function (and function graph) tracers instances usable in parallel with their own dynamic ftrace parameters. The plan is then to make these tracers available for wider uses like perf, toward the trace event api or whatever...

This is still in RFC stage because with this patchset, the set of function filters from set_graph_function is only active after the function graph tracer is enabled. If set_graph_function is changed in the middle of the tracing, the filters will be actually updated only after you switch to another tracer and re-switch to the grah tracer. But that should be fixed in a further iteration.

Frederic Weisbecker (9):
ftrace: Generalize the function hashlist from function profiler
ftrace: Ensure tracing has really stopped before leaving unregister_ftrace_graph
ftrace: Drop the ftrace_profile_enabled checks in tracing hot path
ftrace: Ensure buffers are visibles to tracing callbacks right away
ftrace: Drop buffer check in function profiler callbacks
ftrace: Release the function hlist if we don't need it anymore
ftrace: Make the function hashlist concurrently usable
tracing: Use the hashlist for graph function
ftrace: Factorize search and insertion in the function hashlist

Lai Jiangshan (1):
tracing: Simplify test for function_graph tracing

 kernel/trace/Makefile                |    1 +
 kernel/trace/ftrace.c                |  378 ++++++++++------------------------
 kernel/trace/functions_hlist.c       |  289 ++++++++++++++++++++++++++
 kernel/trace/functions_hlist.h       |   54 +++++
 kernel/trace/trace.h                 |   21 +--
 kernel/trace/trace_functions_graph.c |   46 ++++-
 6 files changed, 493 insertions(+), 296 deletions(-)
 create mode 100644 kernel/trace/functions_hlist.c
 create mode 100644 kernel/trace/functions_hlist.h