mbox series

[v2,0/2] selftests/ftrace: Add tests for kprobes and optimized probes

Message ID 20230418095557.19061-1-akanksha@linux.ibm.com (mailing list archive)
Headers show
Series selftests/ftrace: Add tests for kprobes and optimized probes | expand

Message

Akanksha J N April 18, 2023, 9:55 a.m. UTC
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/20230128101622.ce6f8e64d929e29d36b08b73@kernel.org/

Changelog:


* 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

Comments

Naveen N. Rao April 24, 2023, 11:09 a.m. UTC | #1
Akanksha J N wrote:
> 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/20230128101622.ce6f8e64d929e29d36b08b73@kernel.org/
> 
> Changelog:
> 
> 
> * 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

This series looks good to me.
Acked-by: Naveen N. Rao <naveen.n.rao@linux.vnet.ibm.com>



- Naveen