https://github.com/torvalds/linux
Raw File
Tip revision: 754e0b0e35608ed5206d6a67a791563c631cec07 authored by Linus Torvalds on 13 February 2022, 20:13:30 UTC
Linux 5.17-rc4
Tip revision: 754e0b0
perf-sys.h
/* SPDX-License-Identifier: GPL-2.0 */
#ifndef _PERF_SYS_H
#define _PERF_SYS_H

#include <unistd.h>
#include <sys/types.h>
#include <sys/syscall.h>
#include <linux/compiler.h>

struct perf_event_attr;

static inline int
sys_perf_event_open(struct perf_event_attr *attr,
		      pid_t pid, int cpu, int group_fd,
		      unsigned long flags)
{
	return syscall(__NR_perf_event_open, attr, pid, cpu,
		       group_fd, flags);
}

#endif /* _PERF_SYS_H */
back to top