aboutsummaryrefslogtreecommitdiffstats
path: root/include/linux/perf_event.h
diff options
context:
space:
mode:
authorZhang, Yanmin <yanmin_zhang@linux.intel.com>2010-04-19 22:13:58 -0400
committerIngo Molnar <mingo@elte.hu>2010-04-20 02:08:28 -0400
commitdcf46b9443ad48a227a61713adea001228925adf (patch)
tree1055614c98e8f6584e40fc4ca73ad611b5a77530 /include/linux/perf_event.h
parenta1645ce12adb6c9cc9e19d7695466204e3f017fe (diff)
perf & kvm: Clean up some of the guest profiling callback API details
Fix some build bug and programming style issues: - use valid C - fix up various style details Signed-off-by: Zhang Yanmin <yanmin_zhang@linux.intel.com> Cc: Avi Kivity <avi@redhat.com> Cc: Peter Zijlstra <a.p.zijlstra@chello.nl> Cc: Sheng Yang <sheng@linux.intel.com> Cc: Marcelo Tosatti <mtosatti@redhat.com> Cc: oerg Roedel <joro@8bytes.org> Cc: Jes Sorensen <Jes.Sorensen@redhat.com> Cc: Gleb Natapov <gleb@redhat.com> Cc: Zachary Amsden <zamsden@redhat.com> Cc: zhiteng.huang@intel.com Cc: tim.c.chen@intel.com Cc: Arnaldo Carvalho de Melo <acme@infradead.org> LKML-Reference: <1271729638.2078.624.camel@ymzhang.sh.intel.com> Signed-off-by: Ingo Molnar <mingo@elte.hu>
Diffstat (limited to 'include/linux/perf_event.h')
-rw-r--r--include/linux/perf_event.h10
1 files changed, 4 insertions, 6 deletions
diff --git a/include/linux/perf_event.h b/include/linux/perf_event.h
index 24de5f181a41..ace31fbac513 100644
--- a/include/linux/perf_event.h
+++ b/include/linux/perf_event.h
@@ -941,10 +941,8 @@ static inline void perf_event_mmap(struct vm_area_struct *vma)
941} 941}
942 942
943extern struct perf_guest_info_callbacks *perf_guest_cbs; 943extern struct perf_guest_info_callbacks *perf_guest_cbs;
944extern int perf_register_guest_info_callbacks( 944extern int perf_register_guest_info_callbacks(struct perf_guest_info_callbacks *callbacks);
945 struct perf_guest_info_callbacks *); 945extern int perf_unregister_guest_info_callbacks(struct perf_guest_info_callbacks *callbacks);
946extern int perf_unregister_guest_info_callbacks(
947 struct perf_guest_info_callbacks *);
948 946
949extern void perf_event_comm(struct task_struct *tsk); 947extern void perf_event_comm(struct task_struct *tsk);
950extern void perf_event_fork(struct task_struct *tsk); 948extern void perf_event_fork(struct task_struct *tsk);
@@ -1016,9 +1014,9 @@ static inline void
1016perf_bp_event(struct perf_event *event, void *data) { } 1014perf_bp_event(struct perf_event *event, void *data) { }
1017 1015
1018static inline int perf_register_guest_info_callbacks 1016static inline int perf_register_guest_info_callbacks
1019(struct perf_guest_info_callbacks *) {return 0; } 1017(struct perf_guest_info_callbacks *callbacks) { return 0; }
1020static inline int perf_unregister_guest_info_callbacks 1018static inline int perf_unregister_guest_info_callbacks
1021(struct perf_guest_info_callbacks *) {return 0; } 1019(struct perf_guest_info_callbacks *callbacks) { return 0; }
1022 1020
1023static inline void perf_event_mmap(struct vm_area_struct *vma) { } 1021static inline void perf_event_mmap(struct vm_area_struct *vma) { }
1024static inline void perf_event_comm(struct task_struct *tsk) { } 1022static inline void perf_event_comm(struct task_struct *tsk) { }