Skip to content

selftests/ftrace: Add tests for kprobes and optimized probes

Akanksha J N linux-kselftest 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. v3 Latest2 patches 5 repliesIn review
  2. v22 patches 6 repliesSuperseded

Changes in v3 from the cover letter

* Add Acked-by for kprobe_insn_boundary.tc
* Simplify test for optimized probe, as suggested by Masami
* Add exit_unresolved to exit as unresolved in case no probe was optimized

Patches in v3 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/2selftests/ftrace: Add new test case which adds multiple consecutive probes in a functiontools/testing/selftests/ftrace/test.d/kprobe/kprobe_insn_boundary.tc+19 -00 replies
2/2selftests/ftrace: Add new test case which checks for optimized probestools/testing/selftests/ftrace/test.d/kprobe/kprobe_opt_types.tc+34 -05 replies

Reviews trailers per patch

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

PatchNaveen N. RaoMasami Hiramatsu (Google)Shuah KhanSteven Rostedt (Google)
1/2A-b A-b
2/2A-b A-b A-b

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

Read the v3 thread

Cover letter [PATCH v3 0/2] selftests/ftrace: Add tests for kprobes and optimized probes

This patchset adds a stress test for kprobes and a test for checking optimized probes.
The two tests are being added based on the below discussion:
https://lore.kernel.org/all/[email protected]/
kprobe_opt_types.tc is modified as per the below review comments:
https://lore.kernel.org/all/[email protected]/#t

Changelog:

v3:

* Add Acked-by for kprobe_insn_boundary.tc
* Simplify test for optimized probe, as suggested by Masami
* Add exit_unresolved to exit as unresolved in case no probe was optimized

v2:

* Add an explicit fork after enabling the events ( echo "forked" )
* Remove the extended test from multiple_kprobe_types.tc which adds multiple consecutive probes in a function and add it as a separate test case.
* Add new test case which checks for optimized probes.

Akanksha J N (2):
selftests/ftrace: Add new test case which adds multiple consecutive
probes in a function
selftests/ftrace: Add new test case which checks for optimized probes

 .../test.d/kprobe/kprobe_insn_boundary.tc     | 19 +++++++++++
 .../ftrace/test.d/kprobe/kprobe_opt_types.tc  | 34 +++++++++++++++++++
 2 files changed, 53 insertions(+)
 create mode 100644 tools/testing/selftests/ftrace/test.d/kprobe/kprobe_insn_boundary.tc
 create mode 100644 tools/testing/selftests/ftrace/test.d/kprobe/kprobe_opt_types.tc
Signature · 1 line
2.31.1