perf: Optimize perf_output_copy()
authorPeter Zijlstra <a.p.zijlstra@chello.nl>
Thu, 20 May 2010 14:46:39 +0000 (16:46 +0200)
committerIngo Molnar <mingo@elte.hu>
Fri, 21 May 2010 09:37:59 +0000 (11:37 +0200)
commit5d967a8be636a4f301a8daad642bd1007299d9ec
treea55fa9c068f4a25a0de62797994353a36e165ca5
parentadb8e118f288dc4c569ac9a89010b81a4745fbf0
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>
include/linux/perf_event.h
kernel/perf_event.c