aboutsummaryrefslogtreecommitdiffstats
path: root/include/linux/perf_event.h
diff options
context:
space:
mode:
authorPeter Zijlstra <a.p.zijlstra@chello.nl>2010-05-20 13:07:56 -0400
committerIngo Molnar <mingo@elte.hu>2010-05-21 05:37:59 -0400
commit3cafa9fbb5c1d564b7b8e7224f493effbf04ffee (patch)
treec046895789900e8a031b241e79e7f0d45d7e39f0 /include/linux/perf_event.h
parent5d967a8be636a4f301a8daad642bd1007299d9ec (diff)
perf: Optimize the !vmalloc backed buffer
Reduce code and data by using the knowledge that for !PERF_USE_VMALLOC data_order is always 0. Signed-off-by: Peter Zijlstra <a.p.zijlstra@chello.nl> Cc: Arnaldo Carvalho de Melo <acme@redhat.com> Cc: Frederic Weisbecker <fweisbec@gmail.com> Cc: Paul Mackerras <paulus@samba.org> Cc: Mike Galbraith <efault@gmx.de> Cc: Steven Rostedt <rostedt@goodmis.org> LKML-Reference: <20100521090710.795019386@chello.nl> Signed-off-by: Ingo Molnar <mingo@elte.hu>
Diffstat (limited to 'include/linux/perf_event.h')
-rw-r--r--include/linux/perf_event.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/linux/perf_event.h b/include/linux/perf_event.h
index 7bd17f0488f8..09cd9c1abfda 100644
--- a/include/linux/perf_event.h
+++ b/include/linux/perf_event.h
@@ -588,8 +588,8 @@ struct perf_mmap_data {
588 struct rcu_head rcu_head; 588 struct rcu_head rcu_head;
589#ifdef CONFIG_PERF_USE_VMALLOC 589#ifdef CONFIG_PERF_USE_VMALLOC
590 struct work_struct work; 590 struct work_struct work;
591 int page_order; /* allocation order */
591#endif 592#endif
592 int data_order; /* allocation order */
593 int nr_pages; /* nr of data pages */ 593 int nr_pages; /* nr of data pages */
594 int writable; /* are we writable */ 594 int writable; /* are we writable */
595 int nr_locked; /* nr pages mlocked */ 595 int nr_locked; /* nr pages mlocked */