samples/trace_printk: Wait for IRQ work to finishtrace_printk schedules work via irq_work_queue(), but doesn'twait until it was processed. The kprobe_module.tc testcase does::;: "Load module aga
samples/trace_printk: Wait for IRQ work to finishtrace_printk schedules work via irq_work_queue(), but doesn'twait until it was processed. The kprobe_module.tc testcase does::;: "Load module again, which means the event1 should be recorded";:modprobe trace-printkgrep "event1:" traceso the grep which checks the trace file might run before the irq workwas processed. Fix this by adding a irq_work_sync().Link: http://lore.kernel.org/linux-trace-devel/20191218074427.96184-3-svens@linux.ibm.comCc: stable@vger.kernel.orgFixes: 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>
show more ...
treewide: Add SPDX license identifier - Makefile/KconfigAdd SPDX license identifiers to all Make/Kconfig files which: - Have no license information of any formThese files fall under the project
treewide: Add SPDX license identifier - Makefile/KconfigAdd SPDX license identifiers to all Make/Kconfig files which: - Have no license information of any formThese files fall under the project license, GPL v2 only. The resulting SPDXlicense identifier is: GPL-2.0-onlySigned-off-by: Thomas Gleixner <tglx@linutronix.de>Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
treewide: Add SPDX license identifier for more missed filesAdd SPDX license identifiers to all files which: - Have no license information of any form - Have MODULE_LICENCE("GPL*") inside which
treewide: Add SPDX license identifier for more missed filesAdd SPDX license identifiers to all files which: - Have no license information of any form - Have MODULE_LICENCE("GPL*") inside which was used in the initial scan/conversion to ignore the fileThese files fall under the project license, GPL v2 only. The resulting SPDXlicense identifier is: GPL-2.0-onlySigned-off-by: Thomas Gleixner <tglx@linutronix.de>Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
tracing: Add trace_printk sample codeAdd sample code to test trace_printk(). The trace_printk() functions shouldnever be used in production code. This makes testing it a bit moredifficult. Having
tracing: Add trace_printk sample codeAdd sample code to test trace_printk(). The trace_printk() functions shouldnever be used in production code. This makes testing it a bit moredifficult. Having a sample module that can test use cases of trace_printk()can help out.Currently it just tests trace_printk() where it will be converted into: trace_bputs() trace_puts() trace_bprintk()as well as staying as the normal _trace_printk().It also tests its use in interrupt context as that will test the auxilerybuffers.Signed-off-by: Steven Rostedt <rostedt@goodmis.org>