HEX
Server: LiteSpeed
System: Linux w5304130.sdnsbox.com 4.18.0-425.3.1.lve.el8.x86_64 #1 SMP Tue Nov 22 22:59:23 EST 2022 x86_64
User: makefitmeserver (1001)
PHP: 8.2.30
Disabled: NONE
Upload Files
File: //usr/share/systemtap/runtime/linux/autoconf-perf-structpid.c
#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);  
}