aboutsummaryrefslogtreecommitdiffstats
path: root/include/linux
diff options
context:
space:
mode:
Diffstat (limited to 'include/linux')
-rw-r--r--include/linux/perf_counter.h43
-rw-r--r--include/linux/syscalls.h9
2 files changed, 26 insertions, 26 deletions
diff --git a/include/linux/perf_counter.h b/include/linux/perf_counter.h
index 32cd1acb7386..186efaf49665 100644
--- a/include/linux/perf_counter.h
+++ b/include/linux/perf_counter.h
@@ -13,20 +13,8 @@
13#ifndef _LINUX_PERF_COUNTER_H 13#ifndef _LINUX_PERF_COUNTER_H
14#define _LINUX_PERF_COUNTER_H 14#define _LINUX_PERF_COUNTER_H
15 15
16#include <asm/atomic.h> 16#include <linux/types.h>
17#include <asm/ioctl.h> 17#include <linux/ioctl.h>
18
19#ifdef CONFIG_PERF_COUNTERS
20# include <asm/perf_counter.h>
21#endif
22
23#include <linux/list.h>
24#include <linux/mutex.h>
25#include <linux/rculist.h>
26#include <linux/rcupdate.h>
27#include <linux/spinlock.h>
28
29struct task_struct;
30 18
31/* 19/*
32 * User-space ABI bits: 20 * User-space ABI bits:
@@ -78,12 +66,12 @@ enum perf_counter_record_type {
78 * Hardware event to monitor via a performance monitoring counter: 66 * Hardware event to monitor via a performance monitoring counter:
79 */ 67 */
80struct perf_counter_hw_event { 68struct perf_counter_hw_event {
81 s64 type; 69 __s64 type;
82 70
83 u64 irq_period; 71 __u64 irq_period;
84 u32 record_type; 72 __u32 record_type;
85 73
86 u32 disabled : 1, /* off by default */ 74 __u32 disabled : 1, /* off by default */
87 nmi : 1, /* NMI sampling */ 75 nmi : 1, /* NMI sampling */
88 raw : 1, /* raw event type */ 76 raw : 1, /* raw event type */
89 inherit : 1, /* children inherit it */ 77 inherit : 1, /* children inherit it */
@@ -95,7 +83,7 @@ struct perf_counter_hw_event {
95 83
96 __reserved_1 : 23; 84 __reserved_1 : 23;
97 85
98 u64 __reserved_2; 86 __u64 __reserved_2;
99}; 87};
100 88
101/* 89/*
@@ -104,10 +92,24 @@ struct perf_counter_hw_event {
104#define PERF_COUNTER_IOC_ENABLE _IO('$', 0) 92#define PERF_COUNTER_IOC_ENABLE _IO('$', 0)
105#define PERF_COUNTER_IOC_DISABLE _IO('$', 1) 93#define PERF_COUNTER_IOC_DISABLE _IO('$', 1)
106 94
95#ifdef __KERNEL__
107/* 96/*
108 * Kernel-internal data types: 97 * Kernel-internal data types and definitions:
109 */ 98 */
110 99
100#ifdef CONFIG_PERF_COUNTERS
101# include <asm/perf_counter.h>
102#endif
103
104#include <linux/list.h>
105#include <linux/mutex.h>
106#include <linux/rculist.h>
107#include <linux/rcupdate.h>
108#include <linux/spinlock.h>
109#include <asm/atomic.h>
110
111struct task_struct;
112
111/** 113/**
112 * struct hw_perf_counter - performance counter hardware details: 114 * struct hw_perf_counter - performance counter hardware details:
113 */ 115 */
@@ -293,4 +295,5 @@ static inline int perf_counter_task_disable(void) { return -EINVAL; }
293static inline int perf_counter_task_enable(void) { return -EINVAL; } 295static inline int perf_counter_task_enable(void) { return -EINVAL; }
294#endif 296#endif
295 297
298#endif /* __KERNEL__ */
296#endif /* _LINUX_PERF_COUNTER_H */ 299#endif /* _LINUX_PERF_COUNTER_H */
diff --git a/include/linux/syscalls.h b/include/linux/syscalls.h
index 88255d3261a4..28ef2be839c7 100644
--- a/include/linux/syscalls.h
+++ b/include/linux/syscalls.h
@@ -696,10 +696,7 @@ asmlinkage long sys_pipe(int __user *);
696int kernel_execve(const char *filename, char *const argv[], char *const envp[]); 696int kernel_execve(const char *filename, char *const argv[], char *const envp[]);
697 697
698 698
699asmlinkage int sys_perf_counter_open( 699asmlinkage long sys_perf_counter_open(
700 700 const struct perf_counter_hw_event __user *hw_event_uptr,
701 struct perf_counter_hw_event *hw_event_uptr __user, 701 pid_t pid, int cpu, int group_fd);
702 pid_t pid,
703 int cpu,
704 int group_fd);
705#endif 702#endif