The Linux Kernel Mailing List
 help / color / mirror / Atom feed
* [PATCH v2 0/1] ftrace: add unit test for removing trace function
@ 2021-09-18 15:30 Carles Pey
  2021-09-18 15:30 ` [PATCH v2 1/1] " Carles Pey
  2021-09-19 16:11 ` [PATCH v2 0/1] " Steven Rostedt
  0 siblings, 2 replies; 4+ messages in thread
From: Carles Pey @ 2021-09-18 15:30 UTC (permalink / raw)
  To: Steven Rostedt, Ingo Molnar, linux-kernel; +Cc: Carles Pey

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


^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2021-10-11  2:21 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2021-09-18 15:30 [PATCH v2 0/1] ftrace: add unit test for removing trace function Carles Pey
2021-09-18 15:30 ` [PATCH v2 1/1] " Carles Pey
2021-10-11  2:21   ` Steven Rostedt
2021-09-19 16:11 ` [PATCH v2 0/1] " Steven Rostedt

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox