From: Thomas Gleixner Date: Tue, 30 Nov 2010 17:49:53 +0000 (+0000) Subject: perf session: Cache sample objects X-Git-Tag: v2.6.38-rc1~490^2~58 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=020bb75a6deeca5ebeae531dc7378c157affc8fd;p=pandora-kernel.git perf session: Cache sample objects When the sample queue is flushed we free the sample reference objects. Though we need to malloc new objects when we process further. Stop the malloc/free orgy and cache the already allocated object for resuage. Only allocate when the cache is empty. Performance gain: ~ 10% Cc: Ingo Molnar Cc: Peter Zijlstra Cc: Frederic Weisbecker LKML-Reference: <20101130163820.338488630@linutronix.de> Signed-off-by: Thomas Gleixner Signed-off-by: Arnaldo Carvalho de Melo --- Reading git-diff-tree failed