lkml.org 
[lkml]   [2021]   [Sep]   [18]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
From
Subject[PATCH v2 0/1] ftrace: add unit test for removing trace function
Date
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(+)

--
2.26.3

\
 
 \ /
  Last update: 2021-09-18 17:32    [W:0.257 / U:0.048 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site