Skip to content

tracing: More updates for 4.12

Steven Rostedt lkml stable 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest33 patches 2 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/33ftrace: Fix removing of second function probekernel/trace/ftrace.c+16 -40 replies
2/33ftrace: Fix indexing of t_hash_start() from t_next()kernel/trace/ftrace.c+3 -20 replies
3/33tracing: Have the trace_event benchmark thread call cond_resched_rcu_qs()kernel/trace/trace_benchmark.c+11 -30 replies
4/33ftrace: Add function-fork trace optionkernel/trace/ftrace.c kernel/trace/trace.c kernel/trace/trace.h+46 -20 replies
5/33selftests: ftrace: Add -l/--logdir optiontools/testing/selftests/ftrace/ftracetest+5 -00 replies
6/33selftests: ftrace: Add a way to reset triggers in the set_ftrace_filter filetools/testing/selftests/ftrace/test.d/functions+21 -00 replies
7/33selftests: ftrace: Add a selftest to test event enable/disable func triggertools/testing/selftests/ftrace/test.d/ftrace/func_event_triggers.tc+113 -00 replies
8/33selftests: ftrace: Add a test to test function triggers to start and stop tracingtools/testing/selftests/ftrace/test.d/ftrace/func_traceonoff_triggers.tc+171 -00 replies
9/33selftests: ftrace: Add test to test reading of set_ftrace_filetools/testing/selftests/ftrace/test.d/ftrace/func_set_ftrace_file.tc+132 -02 replies
10/33ftrace: Move the probe function into the tracing directoryinclude/linux/ftrace.h kernel/trace/trace.h+25 -240 replies
11/33ftrace: Move the function commands into the tracing directoryinclude/linux/ftrace.h kernel/trace/trace.h+20 -190 replies
12/33ftrace: Remove unused "flags" field from struct ftrace_func_probekernel/trace/ftrace.c+0 -10 replies
13/33ftrace: Pass probe ops to probe functionkernel/trace/ftrace.c kernel/trace/trace.c kernel/trace/trace.h +2 more+27 -140 replies
14/33ftrace: Added ftrace_func_mapper for function probe triggerskernel/trace/ftrace.c kernel/trace/trace.h kernel/trace/trace_events.c+210 -150 replies
15/33tracing: Have the snapshot trigger use the mapping helper functionskernel/trace/trace.c+44 -80 replies
16/33ftrace: Convert the rest of the function trigger over to the mapping functionskernel/trace/trace_functions.c+85 -380 replies
17/33ftrace: Remove unused unregister_ftrace_function_probe() functionkernel/trace/ftrace.c kernel/trace/trace.h+3 -180 replies
18/33ftrace: Remove unused unregister_ftrace_function_probe_all() functionkernel/trace/ftrace.c kernel/trace/trace.h+3 -200 replies
19/33ftrace: Remove printing of data in showing of a function probekernel/trace/ftrace.c+1 -50 replies
20/33ftrace: Remove data field from ftrace_func_probe structurekernel/trace/ftrace.c kernel/trace/trace.c kernel/trace/trace.h +2 more+11 -150 replies
21/33ftrace: Add helper function ftrace_hash_move_and_update_ops()kernel/trace/ftrace.c+53 -520 replies
22/33ftrace: Have unregister_ftrace_function_probe_func() return a valuekernel/trace/ftrace.c kernel/trace/trace.c kernel/trace/trace.h +2 more+17 -140 replies
23/33ftrace: Have each function probe use its own ftrace_opskernel/trace/ftrace.c kernel/trace/trace.h+99 -1480 replies
24/33ftrace: Have the function probes call their own functioninclude/linux/ftrace.h kernel/trace/ftrace.c kernel/trace/trace.h+101 -1290 replies
25/33ftrace: If the hash for a probe fails to update then free what was initializedkernel/trace/ftrace.c+15 -10 replies
26/33tracing: Have the trace_array hold the list of registered func probeskernel/trace/ftrace.c kernel/trace/trace.c kernel/trace/trace.h +2 more+56 -300 replies
27/33tracing: Pass the trace_array into ftrace_probe_ops functionskernel/trace/ftrace.c kernel/trace/trace.c kernel/trace/trace.h +2 more+51 -300 replies
28/33ftrace: Dynamically create the probe ftrace_ops for the trace_arraykernel/trace/ftrace.c kernel/trace/trace.c kernel/trace/trace.h +2 more+146 -570 replies
29/33tracing/ftrace: Add a better way to pass data via the probe functionskernel/trace/ftrace.c kernel/trace/trace.c kernel/trace/trace.h +2 more+153 -1070 replies
30/33tracing/ftrace: Allow instances to have their own function probeskernel/trace/ftrace.c+2 -20 replies
31/33tracing/ftrace: Enable snapshot function trigger to work with instanceskernel/trace/trace.c+25 -190 replies
32/33tracing/ftrace: Allow for the traceonoff probe be unique to instanceskernel/trace/trace.c kernel/trace/trace.h kernel/trace/trace_functions.c+15 -120 replies
33/33tracing/ftrace: Allow for instances to trigger their own stacktrace probeskernel/trace/trace_functions.c+14 -30 replies

Reviews trailers per patch

2 of 33 patches have a Reviewed-by or Acked-by.

PatchPaul E. McKenneyMasami Hiramatsu
1/33
2/33
3/33A-b
4/33
5/33A-b
6/33
7/33
8/33
9/33
10/33
11/33
12/33
13/33
14/33
15/33
16/33
17/33
18/33
19/33
20/33
21/33
22/33
23/33
24/33
25/33
26/33
27/33
28/33
29/33
30/33
31/33
32/33
33/33

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

Read the v1 thread

Cover letter [for-next][PATCH 00/33] tracing: More updates for 4.12

The biggest change is the rewrite of the function probe trigger code. I need to make a few enhancements on that code and it was basically created with a hack on top of an hack, and I didn't want to add more hacks. Instead, I gutted it and rewrote it in a way that the patch series is still bisectable. Now the probe triggers can be unique to a tracing instance. You can add stacktrace to a function within a tracing instance, or just stop a tracing instance from tracing.

git://git.kernel.org/pub/scm/linux/kernel/git/rostedt/linux-trace.git
for-next

Head SHA1: dcc19d28091a86d5baf78e3fbb32e3fc3de524be

Namhyung Kim (2):
ftrace: Add 'function-fork' trace option
selftests: ftrace: Add -l/--logdir option

Steven Rostedt (VMware) (31):
ftrace: Fix removing of second function probe
ftrace: Fix indexing of t_hash_start() from t_next()
tracing: Have the trace_event benchmark thread call cond_resched_rcu_qs()
selftests: ftrace: Add a way to reset triggers in the set_ftrace_filter file
selftests: ftrace: Add a selftest to test event enable/disable func trigger
selftests: ftrace: Add a test to test function triggers to start and stop tracing
selftests: ftrace: Add test to test reading of set_ftrace_file
ftrace: Move the probe function into the tracing directory
ftrace: Move the function commands into the tracing directory
ftrace: Remove unused "flags" field from struct ftrace_func_probe
ftrace: Pass probe ops to probe function
ftrace: Added ftrace_func_mapper for function probe triggers
tracing: Have the snapshot trigger use the mapping helper functions
ftrace: Convert the rest of the function trigger over to the mapping functions
ftrace: Remove unused unregister_ftrace_function_probe() function
ftrace: Remove unused unregister_ftrace_function_probe_all() function
ftrace: Remove printing of data in showing of a function probe
ftrace: Remove data field from ftrace_func_probe structure
ftrace: Add helper function ftrace_hash_move_and_update_ops()
ftrace: Have unregister_ftrace_function_probe_func() return a value
ftrace: Have each function probe use its own ftrace_ops
ftrace: Have the function probes call their own function
ftrace: If the hash for a probe fails to update then free what was initialized
tracing: Have the trace_array hold the list of registered func probes
tracing: Pass the trace_array into ftrace_probe_ops functions
ftrace: Dynamically create the probe ftrace_ops for the trace_array tracing/ftrace: Add a better way to pass data via the probe functions tracing/ftrace: Allow instances to have their own function probes tracing/ftrace: Enable snapshot function trigger to work with instances tracing/ftrace: Allow for the traceonoff probe be unique to instances tracing/ftrace: Allow for instances to trigger their own stacktrace probes

----

 include/linux/ftrace.h                             |  47 +-
 kernel/trace/ftrace.c                              | 832 +++++++++++++--------
 kernel/trace/trace.c                               | 133 +++-
 kernel/trace/trace.h                               |  75 +-
 kernel/trace/trace_benchmark.c                     |  14 +-
 kernel/trace/trace_events.c                        | 151 ++--
 kernel/trace/trace_functions.c                     | 224 ++++--
 tools/testing/selftests/ftrace/ftracetest          |   5 +
 .../ftrace/test.d/ftrace/func_event_triggers.tc    | 113 +++
 .../ftrace/test.d/ftrace/func_set_ftrace_file.tc   | 132 ++++
 .../test.d/ftrace/func_traceonoff_triggers.tc      | 171 +++++
 tools/testing/selftests/ftrace/test.d/functions    |  21 +
 12 files changed, 1410 insertions(+), 508 deletions(-)
 create mode 100644 tools/testing/selftests/ftrace/test.d/ftrace/func_event_triggers.tc
 create mode 100644 tools/testing/selftests/ftrace/test.d/ftrace/func_set_ftrace_file.tc
 create mode 100644 tools/testing/selftests/ftrace/test.d/ftrace/func_traceonoff_triggers.tc