xref: /kernel/linux/linux-5.10/tools/perf/perf-sys.h
  • Home
  • History
  • Annotate Annotate
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
  • only in /kernel/linux/linux-5.10/tools/perf/
18c2ecf20Sopenharmony_ci/* SPDX-License-Identifier: GPL-2.0 */
28c2ecf20Sopenharmony_ci#ifndef _PERF_SYS_H
38c2ecf20Sopenharmony_ci#define _PERF_SYS_H
48c2ecf20Sopenharmony_ci
58c2ecf20Sopenharmony_ci#include <unistd.h>
68c2ecf20Sopenharmony_ci#include <sys/types.h>
78c2ecf20Sopenharmony_ci#include <sys/syscall.h>
88c2ecf20Sopenharmony_ci#include <linux/compiler.h>
98c2ecf20Sopenharmony_ci
108c2ecf20Sopenharmony_cistruct perf_event_attr;
118c2ecf20Sopenharmony_ci
128c2ecf20Sopenharmony_cistatic inline int
138c2ecf20Sopenharmony_cisys_perf_event_open(struct perf_event_attr *attr,
148c2ecf20Sopenharmony_ci		      pid_t pid, int cpu, int group_fd,
158c2ecf20Sopenharmony_ci		      unsigned long flags)
168c2ecf20Sopenharmony_ci{
178c2ecf20Sopenharmony_ci	return syscall(__NR_perf_event_open, attr, pid, cpu,
188c2ecf20Sopenharmony_ci		       group_fd, flags);
198c2ecf20Sopenharmony_ci}
208c2ecf20Sopenharmony_ci
218c2ecf20Sopenharmony_ci#endif /* _PERF_SYS_H */
22

Indexes created Thu Nov 07 10:32:03 CST 2024