ftrace: add unit test for removing trace function
Get series with b4
b4 am [email protected]Versions newest first · linked by author and title
- v2 Latest1 patch 2 repliesIn review
- v11 patch 1 replySuperseded
Changes in v2 from the cover letter
- Added changelog and sign-off line.
Patches in v2 No applies recorded yet
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/1 | ftrace: add unit test for removing trace functionkernel/ | +34 | 1 reply |
Reviews trailers per patch
No Reviewed-by, Acked-by or Tested-by trailers for v2 yet.
Cover letter [PATCH v2 0/1] ftrace: add unit test for removing trace function
Hi,
This patch adds a basic startup self-test for removing a traced function.
Being kallsyms_lookup_name made unexported there is no easy use of ftrace_set_filter_ip from kernel modules, leaving with ftrace_set_filter as the way to set trace functions. The ftrace_set_filter API is not explicit on how to remove trace functions, and there is no such use case either in the kernel source-tree for which I decided to add an example of it use as a self-test.
Changes since v1:
- Added changelog and sign-off line.
Carles Pey (1):
ftrace: add unit test for removing trace function
kernel/trace/trace_selftest.c | 34 ++++++++++++++++++++++++++++++++++ 1 file changed, 34 insertions(+)
Signature · 1 line
2.26.3