diff options
author | Peter Zijlstra <a.p.zijlstra@chello.nl> | 2009-06-04 11:08:58 -0400 |
---|---|---|
committer | Ingo Molnar <mingo@elte.hu> | 2009-06-04 11:51:38 -0400 |
commit | d99e9446200c1ffab28cb0e39b76c34a2bfafd06 (patch) | |
tree | 10cd2f67f3bffaf8dcec79c197689f440faf9265 /include/linux/perf_counter.h | |
parent | 60313ebed739b331e8e61079da27a11ee3b73a30 (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.h | 11 |
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); | |||
622 | extern void perf_counter_mmap(unsigned long addr, unsigned long len, | 620 | extern 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 | ||
625 | extern void perf_counter_munmap(unsigned long addr, unsigned long len, | ||
626 | unsigned long pgoff, struct file *file); | ||
627 | |||
628 | extern void perf_counter_comm(struct task_struct *tsk); | 623 | extern void perf_counter_comm(struct task_struct *tsk); |
629 | extern void perf_counter_fork(struct task_struct *tsk); | 624 | extern void perf_counter_fork(struct task_struct *tsk); |
630 | 625 | ||
@@ -677,10 +672,6 @@ static inline void | |||
677 | perf_counter_mmap(unsigned long addr, unsigned long len, | 672 | perf_counter_mmap(unsigned long addr, unsigned long len, |
678 | unsigned long pgoff, struct file *file) { } | 673 | unsigned long pgoff, struct file *file) { } |
679 | 674 | ||
680 | static inline void | ||
681 | perf_counter_munmap(unsigned long addr, unsigned long len, | ||
682 | unsigned long pgoff, struct file *file) { } | ||
683 | |||
684 | static inline void perf_counter_comm(struct task_struct *tsk) { } | 675 | static inline void perf_counter_comm(struct task_struct *tsk) { } |
685 | static inline void perf_counter_fork(struct task_struct *tsk) { } | 676 | static inline void perf_counter_fork(struct task_struct *tsk) { } |
686 | static inline void perf_counter_init(void) { } | 677 | static inline void perf_counter_init(void) { } |