mirror of
https://github.com/torvalds/linux.git
synced 2026-09-26 10:02:02 +02:00
selftests/ftrace: Add test case for a symbol in a module without module name
Add a test case for probing on a symbol in a module without module name. When probing on a symbol in a module, ftrace accepts both the syntax that <MODNAME>:<SYMBOL> and <SYMBOL>. Current test case only checks the former syntax. This adds a test for the latter one. Link: https://lore.kernel.org/all/169846405196.88147.17766692778800222203.stgit@devnote2/ Signed-off-by: Masami Hiramatsu (Google) <mhiramat@kernel.org>
This commit is contained in:
parent
1a0ffe10bf
commit
1a416ae446
|
|
@ -13,6 +13,12 @@ fi
|
|||
MOD=trace_printk
|
||||
FUNC=trace_printk_irq_work
|
||||
|
||||
:;: "Add an event on a module function without module name" ;:
|
||||
|
||||
echo "p:event0 $FUNC" > kprobe_events
|
||||
test -d events/kprobes/event0 || exit_failure
|
||||
echo "-:kprobes/event0" >> kprobe_events
|
||||
|
||||
:;: "Add an event on a module function without specifying event name" ;:
|
||||
|
||||
echo "p $MOD:$FUNC" > kprobe_events
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user