Searched hist:"01 f36a554e3ef32f9fc4b81a4437cf08fd0e4742" (Results 1 – 1 of 1) sorted by relevance
/linux/samples/trace_printk/ |
H A D | trace-printk.c | diff 01f36a554e3ef32f9fc4b81a4437cf08fd0e4742 Wed Dec 18 08:44:26 CET 2019 Sven Schnelle <svens@linux.ibm.com> samples/trace_printk: Wait for IRQ work to finish
trace_printk schedules work via irq_work_queue(), but doesn't wait until it was processed. The kprobe_module.tc testcase does:
:;: "Load module again, which means the event1 should be recorded";: modprobe trace-printk grep "event1:" trace
so the grep which checks the trace file might run before the irq work was processed. Fix this by adding a irq_work_sync().
Link: http://lore.kernel.org/linux-trace-devel/20191218074427.96184-3-svens@linux.ibm.com
Cc: stable@vger.kernel.org Fixes: af2a0750f3749 ("selftests/ftrace: Improve kprobe on module testcase to load/unload module") Signed-off-by: Sven Schnelle <svens@linux.ibm.com> Signed-off-by: Steven Rostedt (VMware) <rostedt@goodmis.org>
|