Blame view

tools/perf/perf-sys.h 452 Bytes
b24413180   Greg Kroah-Hartman   License cleanup: ...
1
  /* SPDX-License-Identifier: GPL-2.0 */
43599d1f7   Jiri Olsa   perf tools: Move ...
2
3
  #ifndef _PERF_SYS_H
  #define _PERF_SYS_H
82baa0eb4   Jiri Olsa   perf tools: Move ...
4
5
6
  #include <unistd.h>
  #include <sys/types.h>
  #include <sys/syscall.h>
14f0652b4   Arnaldo Carvalho de Melo   perf tools: Add m...
7
  #include <linux/compiler.h>
91854f9a0   Arnaldo Carvalho de Melo   perf tools: Move ...
8
9
  
  struct perf_event_attr;
82baa0eb4   Jiri Olsa   perf tools: Move ...
10
11
12
13
14
  static inline int
  sys_perf_event_open(struct perf_event_attr *attr,
  		      pid_t pid, int cpu, int group_fd,
  		      unsigned long flags)
  {
8366f0d26   Jiri Olsa   perf tests: Call ...
15
16
  	return syscall(__NR_perf_event_open, attr, pid, cpu,
  		       group_fd, flags);
82baa0eb4   Jiri Olsa   perf tools: Move ...
17
  }
43599d1f7   Jiri Olsa   perf tools: Move ...
18
  #endif /* _PERF_SYS_H */