aboutsummaryrefslogtreecommitdiffstats
path: root/include/linux/perf_event.h
diff options
context:
space:
mode:
authorPeter Zijlstra <a.p.zijlstra@chello.nl>2010-05-20 10:46:39 -0400
committerIngo Molnar <mingo@elte.hu>2010-05-21 05:37:59 -0400
commit5d967a8be636a4f301a8daad642bd1007299d9ec (patch)
treea55fa9c068f4a25a0de62797994353a36e165ca5 /include/linux/perf_event.h
parentadb8e118f288dc4c569ac9a89010b81a4745fbf0 (diff)
perf: Optimize perf_output_copy()
Reduce the clutter in perf_output_copy() by keeping an interator in perf_output_handle. 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.742809176@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.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/include/linux/perf_event.h b/include/linux/perf_event.h
index 7098ebbb3b3a..7bd17f0488f8 100644
--- a/include/linux/perf_event.h
+++ b/include/linux/perf_event.h
@@ -806,6 +806,9 @@ struct perf_output_handle {
806 unsigned long head; 806 unsigned long head;
807 unsigned long offset; 807 unsigned long offset;
808 unsigned long wakeup; 808 unsigned long wakeup;
809 unsigned long size;
810 void *addr;
811 int page;
809 int nmi; 812 int nmi;
810 int sample; 813 int sample;
811}; 814};