void my_direct_func(struct task_struct *p)
{
- trace_printk("wakeing up %s-%d\n", p->comm, p->pid);
+ trace_printk("waking up %s-%d\n", p->comm, p->pid);
}
extern void my_tramp(void *);
echo "Let the module run a little"
sleep 1
-grep -q "my_direct_func: wakeing up" trace
+grep -q "my_direct_func: waking up" trace
rmmod ftrace-direct
echo "Let the module run a little"
sleep 1
-grep -q "my_direct_func: wakeing up" trace
+grep -q "my_direct_func: waking up" trace
rmmod ftrace-direct
echo > trace
modprobe ftrace-direct
sleep 1
- grep -q "my_direct_func: wakeing up" trace
+ grep -q "my_direct_func: waking up" trace
}
stop_direct() {