![]() 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/perf_event.h> void fn (void) { struct perf_event_attr *attr = NULL; int cpu = 0; struct task_struct *tsk = NULL; perf_overflow_handler_t callback = NULL; /* linux-2.6 commit 38a81da2205f94 */ (void) perf_event_create_kernel_counter(attr, cpu, tsk, /* as opposed to int pid */ callback); }