HEX
Server: Apache
System: Linux wp02.tdr-lab.com 3.10.0-1160.42.2.el7.x86_64 #1 SMP Tue Sep 7 14:49:57 UTC 2021 x86_64
User: kusanagi (1001)
PHP: 7.4.23
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);  
}