Skip to content

ftrace: Add sample code with dynamic ftrace_ops

Mark Rutland linux-trace-kernel lkml 2 versions – In review

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v2 Latest3 patches 7 repliesIn review
  2. v13 patches 3 repliesSuperseded

Patches in v2 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/3ftrace: Maintain samples/ftraceMAINTAINERS+1 -01 reply
2/3ftrace: Export ftrace_free_filter() to moduleskernel/trace/ftrace.c samples/ftrace/ftrace-direct-multi-modify.c samples/ftrace/ftrace-direct-multi.c+24 -13 replies
3/3ftrace: Add sample with custom opssamples/Kconfig samples/Makefile samples/ftrace/Makefile +1 more+261 -03 replies

Reviews trailers per patch

All 3 patches have a Reviewed-by or Acked-by.

PatchSteven Rostedt (Google)Masami Hiramatsu (Google)
1/3A-b
2/3R-b R-b
3/3A-b

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

Read the v2 thread

Cover letter [PATCH v2 0/3] ftrace: Add sample code with dynamic ftrace_ops

This series adds sample code to manipulate dynamic ftrace_ops, which I've been using to benchmark/test some changes I've been making in this area for arm64.

In the process of writing that I spotted a couple of minor issues, addressed by the first two patches.

I'm not sure whether this should be a sample or something under lib/; I'm happy to change that if folk have strong opinions.

Since v1 [1]:
* Rebase to v6.2-rc2 (trivial)
* Fix typos
* Fix commit title style
* Apply Steve's Reviewed-by to patch 2
* Fix "save_regs" module parameter name
* Add example output from sample module

[1] https://lore.kernel.org/lkml/[email protected]/

Thanks,
Mark.

Mark Rutland (3):
ftrace: Maintain samples/ftrace
ftrace: Export ftrace_free_filter() to modules
ftrace: Add sample with custom ops

 MAINTAINERS                                 |   1 +
 kernel/trace/ftrace.c                       |  23 +-
 samples/Kconfig                             |   7 +
 samples/Makefile                            |   1 +
 samples/ftrace/Makefile                     |   1 +
 samples/ftrace/ftrace-direct-multi-modify.c |   1 +
 samples/ftrace/ftrace-direct-multi.c        |   1 +
 samples/ftrace/ftrace-ops.c                 | 252 ++++++++++++++++++++
 8 files changed, 286 insertions(+), 1 deletion(-)
 create mode 100644 samples/ftrace/ftrace-ops.c
Signature · 1 line
2.30.2