diff options
Diffstat (limited to 'include')
| -rw-r--r-- | include/linux/hw_breakpoint.h | 4 | ||||
| -rw-r--r-- | include/linux/perf_event.h | 5 |
2 files changed, 6 insertions, 3 deletions
diff --git a/include/linux/hw_breakpoint.h b/include/linux/hw_breakpoint.h index 42da1ce19ec0..69f07a9f1277 100644 --- a/include/linux/hw_breakpoint.h +++ b/include/linux/hw_breakpoint.h | |||
| @@ -55,7 +55,7 @@ register_user_hw_breakpoint(struct perf_event_attr *attr, | |||
| 55 | struct task_struct *tsk); | 55 | struct task_struct *tsk); |
| 56 | 56 | ||
| 57 | /* FIXME: only change from the attr, and don't unregister */ | 57 | /* FIXME: only change from the attr, and don't unregister */ |
| 58 | extern struct perf_event * | 58 | extern int |
| 59 | modify_user_hw_breakpoint(struct perf_event *bp, struct perf_event_attr *attr); | 59 | modify_user_hw_breakpoint(struct perf_event *bp, struct perf_event_attr *attr); |
| 60 | 60 | ||
| 61 | /* | 61 | /* |
| @@ -91,7 +91,7 @@ static inline struct perf_event * | |||
| 91 | register_user_hw_breakpoint(struct perf_event_attr *attr, | 91 | register_user_hw_breakpoint(struct perf_event_attr *attr, |
| 92 | perf_overflow_handler_t triggered, | 92 | perf_overflow_handler_t triggered, |
| 93 | struct task_struct *tsk) { return NULL; } | 93 | struct task_struct *tsk) { return NULL; } |
| 94 | static inline struct perf_event * | 94 | static inline int |
| 95 | modify_user_hw_breakpoint(struct perf_event *bp, | 95 | modify_user_hw_breakpoint(struct perf_event *bp, |
| 96 | struct perf_event_attr *attr) { return NULL; } | 96 | struct perf_event_attr *attr) { return NULL; } |
| 97 | static inline struct perf_event * | 97 | static inline struct perf_event * |
diff --git a/include/linux/perf_event.h b/include/linux/perf_event.h index bf3329413e18..64a53f74c9a9 100644 --- a/include/linux/perf_event.h +++ b/include/linux/perf_event.h | |||
| @@ -872,6 +872,8 @@ extern void perf_output_copy(struct perf_output_handle *handle, | |||
| 872 | const void *buf, unsigned int len); | 872 | const void *buf, unsigned int len); |
| 873 | extern int perf_swevent_get_recursion_context(void); | 873 | extern int perf_swevent_get_recursion_context(void); |
| 874 | extern void perf_swevent_put_recursion_context(int rctx); | 874 | extern void perf_swevent_put_recursion_context(int rctx); |
| 875 | extern void perf_event_enable(struct perf_event *event); | ||
| 876 | extern void perf_event_disable(struct perf_event *event); | ||
| 875 | #else | 877 | #else |
| 876 | static inline void | 878 | static inline void |
| 877 | perf_event_task_sched_in(struct task_struct *task, int cpu) { } | 879 | perf_event_task_sched_in(struct task_struct *task, int cpu) { } |
| @@ -902,7 +904,8 @@ static inline void perf_event_fork(struct task_struct *tsk) { } | |||
| 902 | static inline void perf_event_init(void) { } | 904 | static inline void perf_event_init(void) { } |
| 903 | static inline int perf_swevent_get_recursion_context(void) { return -1; } | 905 | static inline int perf_swevent_get_recursion_context(void) { return -1; } |
| 904 | static inline void perf_swevent_put_recursion_context(int rctx) { } | 906 | static inline void perf_swevent_put_recursion_context(int rctx) { } |
| 905 | 907 | static inline void perf_event_enable(struct perf_event *event) { } | |
| 908 | static inline void perf_event_disable(struct perf_event *event) { } | ||
| 906 | #endif | 909 | #endif |
| 907 | 910 | ||
| 908 | #define perf_output_put(handle, x) \ | 911 | #define perf_output_put(handle, x) \ |
