Skip to content

ftrace: Add fprobe updates for 6.14

Steven Rostedt bpf lkml 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest18 patches 1 replyIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/18fgraph: Pass ftrace_regs to entryfuncarch/arm64/kernel/ftrace.c arch/loongarch/kernel/ftrace_dyn.c arch/powerpc/kernel/trace/ftrace.c +11 more+114 -420 replies
2/18fgraph: Replace fgraph_ret_regs with ftrace_regsarch/arm64/Kconfig arch/arm64/include/asm/ftrace.h arch/arm64/kernel/asm-offsets.c +21 more+119 -2070 replies
3/18fgraph: Pass ftrace_regs to retfuncinclude/linux/ftrace.h kernel/trace/fgraph.c kernel/trace/ftrace.c +5 more+27 -140 replies
4/18fprobe: Use ftrace_regs in fprobe entry handlerinclude/linux/fprobe.h kernel/trace/Kconfig kernel/trace/bpf_trace.c +4 more+23 -120 replies
5/18fprobe: Use ftrace_regs in fprobe exit handlerarch/loongarch/Kconfig arch/s390/Kconfig arch/x86/Kconfig +8 more+33 -80 replies
6/18tracing: Add ftrace_partial_regs() for converting ftrace_regs to pt_regsarch/arm64/include/asm/ftrace.h arch/riscv/include/asm/ftrace.h include/linux/ftrace.h+44 -00 replies
7/18tracing: Add ftrace_fill_perf_regs() for perf eventarch/arm64/include/asm/ftrace.h arch/powerpc/include/asm/ftrace.h arch/s390/include/asm/ftrace.h +2 more+58 -00 replies
8/18tracing/fprobe: Enable fprobe events with CONFIG_DYNAMIC_FTRACE_WITH_ARGSinclude/linux/ftrace.h kernel/trace/Kconfig kernel/trace/trace_fprobe.c +1 more+86 -420 replies
9/18bpf: Enable kprobe_multi feature if CONFIG_FPROBE is enabledkernel/trace/bpf_trace.c+14 -130 replies
10/18ftrace: Add CONFIG_HAVE_FTRACE_GRAPH_FUNCarch/arm64/Kconfig arch/loongarch/Kconfig arch/powerpc/Kconfig +3 more+10 -00 replies
11/18s390/tracing: Enable HAVE_FTRACE_GRAPH_FUNCarch/s390/Kconfig arch/s390/include/asm/ftrace.h arch/s390/kernel/entry.h +2 more+20 -460 replies
12/18fprobe: Rewrite fprobe on function-graph tracerarch/arm64/include/asm/ftrace.h arch/loongarch/include/asm/ftrace.h arch/powerpc/include/asm/ftrace.h +7 more+538 -2450 replies
13/18fprobe: Add fprobe_header encoding featurearch/arm64/include/asm/Kbuild arch/loongarch/include/asm/fprobe.h arch/riscv/include/asm/Kbuild +4 more+100 -00 replies
14/18tracing/fprobe: Remove nr_maxactive from fprobeinclude/linux/fprobe.h kernel/trace/trace_fprobe.c+6 -390 replies
15/18selftests: ftrace: Remove obsolate maxactive syntax checktools/testing/selftests/ftrace/test.d/dynevent/fprobe_syntax_errors.tc+1 -31 reply
16/18selftests/ftrace: Add a test case for repeating register/unregister fprobetools/testing/selftests/ftrace/test.d/dynevent/add_remove_fprobe_repeat.tc+19 -00 replies
17/18Documentation: probes: Update fprobe on function-graph tracerDocumentation/trace/fprobe.rst+27 -150 replies
18/18ftrace: Add ftrace_get_symaddr to convert fentry_ip to symaddrarch/arm64/include/asm/ftrace.h arch/arm64/kernel/ftrace.c arch/x86/include/asm/ftrace.h +1 more+99 -00 replies

Reviews trailers per patch

9 of 18 patches have a Reviewed-by or Acked-by.

PatchHeiko CarstensWill DeaconFlorent Revest
1/18
2/18A-b A-b
3/18
4/18A-b
5/18A-b
6/18A-b
7/18A-b A-b
8/18
9/18A-b
10/18
11/18A-b
12/18A-b
13/18A-b
14/18
15/18
16/18
17/18
18/18

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes. Scroll the table sideways for all 3 reviewers.

Read the v1 thread

Cover letter [for-next][PATCH 00/18] ftrace: Add fprobe updates for 6.14

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

Head SHA1: 2bc56fdae1ba3fc80ee37a648346abc5f152357d

Masami Hiramatsu (Google) (17):
fgraph: Pass ftrace_regs to entryfunc
fgraph: Replace fgraph_ret_regs with ftrace_regs
fgraph: Pass ftrace_regs to retfunc
fprobe: Use ftrace_regs in fprobe entry handler
fprobe: Use ftrace_regs in fprobe exit handler
tracing: Add ftrace_partial_regs() for converting ftrace_regs to pt_regs
tracing: Add ftrace_fill_perf_regs() for perf event tracing/fprobe: Enable fprobe events with CONFIG_DYNAMIC_FTRACE_WITH_ARGS
bpf: Enable kprobe_multi feature if CONFIG_FPROBE is enabled
ftrace: Add CONFIG_HAVE_FTRACE_GRAPH_FUNC
fprobe: Rewrite fprobe on function-graph tracer
fprobe: Add fprobe_header encoding feature
tracing/fprobe: Remove nr_maxactive from fprobe
selftests: ftrace: Remove obsolate maxactive syntax check selftests/ftrace: Add a test case for repeating register/unregister fprobe
Documentation: probes: Update fprobe on function-graph tracer
ftrace: Add ftrace_get_symaddr to convert fentry_ip to symaddr

Sven Schnelle (1):
s390/tracing: Enable HAVE_FTRACE_GRAPH_FUNC

----

 Documentation/trace/fprobe.rst                     |  42 +-
 arch/arm64/Kconfig                                 |   2 +
 arch/arm64/include/asm/Kbuild                      |   1 +
 arch/arm64/include/asm/ftrace.h                    |  51 +-
 arch/arm64/kernel/asm-offsets.c                    |  12 -
 arch/arm64/kernel/entry-ftrace.S                   |  32 +-
 arch/arm64/kernel/ftrace.c                         |  78 ++-
 arch/loongarch/Kconfig                             |   4 +-
 arch/loongarch/include/asm/fprobe.h                |  12 +
 arch/loongarch/include/asm/ftrace.h                |  32 +-
 arch/loongarch/kernel/asm-offsets.c                |  12 -
 arch/loongarch/kernel/ftrace_dyn.c                 |  10 +-
 arch/loongarch/kernel/mcount.S                     |  17 +-
 arch/loongarch/kernel/mcount_dyn.S                 |  14 +-
 arch/powerpc/Kconfig                               |   1 +
 arch/powerpc/include/asm/ftrace.h                  |  13 +
 arch/powerpc/kernel/trace/ftrace.c                 |   2 +-
 arch/powerpc/kernel/trace/ftrace_64_pg.c           |  10 +-
 arch/riscv/Kconfig                                 |   3 +-
 arch/riscv/include/asm/Kbuild                      |   1 +
 arch/riscv/include/asm/ftrace.h                    |  45 +-
 arch/riscv/kernel/ftrace.c                         |  17 +-
 arch/riscv/kernel/mcount.S                         |  24 +-
 arch/s390/Kconfig                                  |   4 +-
 arch/s390/include/asm/fprobe.h                     |  10 +
 arch/s390/include/asm/ftrace.h                     |  37 +-
 arch/s390/kernel/asm-offsets.c                     |   6 -
 arch/s390/kernel/entry.h                           |   1 -
 arch/s390/kernel/ftrace.c                          |  48 +-
 arch/s390/kernel/mcount.S                          |  23 +-
 arch/x86/Kconfig                                   |   4 +-
 arch/x86/include/asm/Kbuild                        |   1 +
 arch/x86/include/asm/ftrace.h                      |  54 +-
 arch/x86/kernel/ftrace.c                           |  42 +-
 arch/x86/kernel/ftrace_32.S                        |  13 +-
 arch/x86/kernel/ftrace_64.S                        |  17 +-
 include/asm-generic/fprobe.h                       |  46 ++
 include/linux/fprobe.h                             |  62 +-
 include/linux/ftrace.h                             | 116 +++-
 include/linux/ftrace_regs.h                        |   2 +
 kernel/trace/Kconfig                               |  22 +-
 kernel/trace/bpf_trace.c                           |  19 +-
 kernel/trace/fgraph.c                              |  57 +-
 kernel/trace/fprobe.c                              | 664 +++++++++++++++------
 kernel/trace/ftrace.c                              |   6 +-
 kernel/trace/trace.h                               |   6 +-
 kernel/trace/trace_fprobe.c                        | 146 ++---
 kernel/trace/trace_functions_graph.c               |  10 +-
 kernel/trace/trace_irqsoff.c                       |   6 +-
 kernel/trace/trace_probe_tmpl.h                    |   2 +-
 kernel/trace/trace_sched_wakeup.c                  |   6 +-
 kernel/trace/trace_selftest.c                      |  11 +-
 lib/test_fprobe.c                                  |  51 +-
 samples/fprobe/fprobe_example.c                    |   4 +-
 .../test.d/dynevent/add_remove_fprobe_repeat.tc    |  19 +
 .../ftrace/test.d/dynevent/fprobe_syntax_errors.tc |   4 +-
 56 files changed, 1303 insertions(+), 651 deletions(-)
 create mode 100644 arch/loongarch/include/asm/fprobe.h
 create mode 100644 arch/s390/include/asm/fprobe.h
 create mode 100644 include/asm-generic/fprobe.h
 create mode 100644 tools/testing/selftests/ftrace/test.d/dynevent/add_remove_fprobe_repeat.tc