]> git.baikalelectronics.ru Git - kernel.git/commit
perf/scripts: Remove unnecessary PyTuple resizes
authorTom Zanussi <tzanussi@gmail.com>
Mon, 22 Feb 2010 07:12:59 +0000 (01:12 -0600)
committerFrederic Weisbecker <fweisbec@gmail.com>
Thu, 25 Feb 2010 03:07:49 +0000 (04:07 +0100)
commitdb60212abc51140c43324b57521d69d9df2c3503
tree33a5fc4e7100eb43989f48ea252214ea2e5157e2
parent4a5d6cabc5171b325edcdf5c4d52ccea76b7b982
perf/scripts: Remove unnecessary PyTuple resizes

If we know the size of a tuple in advance, there's no need to resize
it - start out with the known size in the first place.

Signed-off-by: Tom Zanussi <tzanussi@gmail.com>
Cc: Ingo Molnar <mingo@elte.hu>
Cc: Steven Rostedt <rostedt@goodmis.org>
Cc: Keiichi KII <k-keiichi@bx.jp.nec.com>
Cc: Peter Zijlstra <a.p.zijlstra@chello.nl>
Cc: Paul Mackerras <paulus@samba.org>
Cc: Arnaldo Carvalho de Melo <acme@redhat.com>
LKML-Reference: <1266822779.6426.4.camel@tropicana>
Signed-off-by: Frederic Weisbecker <fweisbec@gmail.com>
tools/perf/util/scripting-engines/trace-event-python.c