OSDN Git Service

tracing: Make tp_printk work on syscall tracepoints
authorJeff Xie <xiehuan09@gmail.com>
Sun, 10 Apr 2022 14:50:25 +0000 (22:50 +0800)
committerSteven Rostedt (Google) <rostedt@goodmis.org>
Tue, 26 Apr 2022 21:58:52 +0000 (17:58 -0400)
commitcb1c45fb68b8a4285ccf750842b1136f26cfe267
tree8e45f4f4712cef7374a9cfdaa8ab56935be5828c
parent2f51efc6b71dc7e47acd26e4610107905feb074b
tracing: Make tp_printk work on syscall tracepoints

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>
kernel/trace/trace_syscalls.c