]> git.baikalelectronics.ru Git - kernel.git/commit
tracing: Make tp_printk work on syscall tracepoints
authorJeff Xie <xiehuan09@gmail.com>
Sun, 10 Apr 2022 14:50:25 +0000 (22:50 +0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 14 Jun 2022 16:36:14 +0000 (18:36 +0200)
commite8d9468695be40dc4f1f434ad4c7c543ece853fc
treedaba70b4fbeb8d91bb3149a7011ccd67ef95a559
parentb57aacbbf79f551cebadfed15fb4d71278dd6a53
tracing: Make tp_printk work on syscall tracepoints

[ Upstream commit 8aa24b7e97dbfd3c817f84151c84b0380fc563d5 ]

Currently the tp_printk option has no effect on syscall tracepoint.
When adding the kernel option parameter tp_printk, then:

echo 1 > /sys/kernel/debug/tracing/events/syscalls/enable

When running any application, no trace information is printed on the
terminal.

Now added printk for syscall tracepoints.

Link: https://lkml.kernel.org/r/20220410145025.681144-1-xiehuan09@gmail.com
Signed-off-by: Jeff Xie <xiehuan09@gmail.com>
Signed-off-by: Steven Rostedt (Google) <rostedt@goodmis.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
kernel/trace/trace_syscalls.c