![]() Server : Apache System : Linux server2.corals.io 4.18.0-348.2.1.el8_5.x86_64 #1 SMP Mon Nov 15 09:17:08 EST 2021 x86_64 User : corals ( 1002) PHP Version : 7.4.33 Disable Function : exec,passthru,shell_exec,system Directory : /opt/rh/gcc-toolset-11/root/usr/share/systemtap/runtime/linux/ |
#include <linux/tracepoint.h> #include <trace/events/sched.h> void baz (void *cb_data, struct task_struct *parent, struct task_struct *child) { (void) cb_data; (void) parent; (void) child; } /* Until 2.6.35 (commit 38516ab59fbc5b), register_trace_* took one argument. Until 5.7.0 (commit a2806ef77ff9a9), this could be checked by checking for the absence of DECLARE_TRACE_NOARGS. Now _NOARGS variant is removed. */ void bar (void) { register_trace_sched_process_fork(baz, NULL); }