aboutsummaryrefslogtreecommitdiffstats
path: root/include/linux/perf_counter.h
diff options
context:
space:
mode:
authorPeter Zijlstra <a.p.zijlstra@chello.nl>2009-06-04 11:08:58 -0400
committerIngo Molnar <mingo@elte.hu>2009-06-04 11:51:38 -0400
commitd99e9446200c1ffab28cb0e39b76c34a2bfafd06 (patch)
tree10cd2f67f3bffaf8dcec79c197689f440faf9265 /include/linux/perf_counter.h
parent60313ebed739b331e8e61079da27a11ee3b73a30 (diff)
perf_counter: Remove munmap stuff
In name of keeping it simple, only track mmap events. Userspace will have to remove old overlapping maps when it encounters them. Signed-off-by: Peter Zijlstra <a.p.zijlstra@chello.nl> Cc: Mike Galbraith <efault@gmx.de> Cc: Paul Mackerras <paulus@samba.org> Cc: Arnaldo Carvalho de Melo <acme@redhat.com> LKML-Reference: <new-submission> Signed-off-by: Ingo Molnar <mingo@elte.hu>
Diffstat (limited to 'include/linux/perf_counter.h')
-rw-r--r--include/linux/perf_counter.h11
1 files changed, 1 insertions, 10 deletions
diff --git a/include/linux/perf_counter.h b/include/linux/perf_counter.h
index 380247bdb918..6ca403acd419 100644
--- a/include/linux/perf_counter.h
+++ b/include/linux/perf_counter.h
@@ -148,11 +148,10 @@ struct perf_counter_attr {
148 exclude_hv : 1, /* ditto hypervisor */ 148 exclude_hv : 1, /* ditto hypervisor */
149 exclude_idle : 1, /* don't count when idle */ 149 exclude_idle : 1, /* don't count when idle */
150 mmap : 1, /* include mmap data */ 150 mmap : 1, /* include mmap data */
151 munmap : 1, /* include munmap data */
152 comm : 1, /* include comm data */ 151 comm : 1, /* include comm data */
153 freq : 1, /* use freq, not period */ 152 freq : 1, /* use freq, not period */
154 153
155 __reserved_1 : 52; 154 __reserved_1 : 53;
156 155
157 __u32 wakeup_events; /* wakeup every n events */ 156 __u32 wakeup_events; /* wakeup every n events */
158 __u32 __reserved_2; 157 __u32 __reserved_2;
@@ -246,7 +245,6 @@ enum perf_event_type {
246 * }; 245 * };
247 */ 246 */
248 PERF_EVENT_MMAP = 1, 247 PERF_EVENT_MMAP = 1,
249 PERF_EVENT_MUNMAP = 2,
250 248
251 /* 249 /*
252 * struct { 250 * struct {
@@ -622,9 +620,6 @@ extern void perf_swcounter_event(u32, u64, int, struct pt_regs *, u64);
622extern void perf_counter_mmap(unsigned long addr, unsigned long len, 620extern void perf_counter_mmap(unsigned long addr, unsigned long len,
623 unsigned long pgoff, struct file *file); 621 unsigned long pgoff, struct file *file);
624 622
625extern void perf_counter_munmap(unsigned long addr, unsigned long len,
626 unsigned long pgoff, struct file *file);
627
628extern void perf_counter_comm(struct task_struct *tsk); 623extern void perf_counter_comm(struct task_struct *tsk);
629extern void perf_counter_fork(struct task_struct *tsk); 624extern void perf_counter_fork(struct task_struct *tsk);
630 625
@@ -677,10 +672,6 @@ static inline void
677perf_counter_mmap(unsigned long addr, unsigned long len, 672perf_counter_mmap(unsigned long addr, unsigned long len,
678 unsigned long pgoff, struct file *file) { } 673 unsigned long pgoff, struct file *file) { }
679 674
680static inline void
681perf_counter_munmap(unsigned long addr, unsigned long len,
682 unsigned long pgoff, struct file *file) { }
683
684static inline void perf_counter_comm(struct task_struct *tsk) { } 675static inline void perf_counter_comm(struct task_struct *tsk) { }
685static inline void perf_counter_fork(struct task_struct *tsk) { } 676static inline void perf_counter_fork(struct task_struct *tsk) { }
686static inline void perf_counter_init(void) { } 677static inline void perf_counter_init(void) { }