/usr/share/systemtap/runtime/linux/autoconf-perf-structpid.c is in systemtap-common 2.6-0.2.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 | #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);
}
|