From: Arnaldo Carvalho de Melo Date: Wed, 20 Oct 2010 14:50:11 +0000 (-0200) Subject: perf events: Precalculate the header space for PERF_SAMPLE_ fields X-Git-Tag: v2.6.38-rc1~490^2~66 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=c320c7b7d380e630f595de1236d9d085b035d5b4;p=pandora-kernel.git perf events: Precalculate the header space for PERF_SAMPLE_ fields PERF_SAMPLE_{CALLCHAIN,RAW} have variable lenghts per sample, but the others can be precalculated, reducing a bit the per sample cost. Acked-by: Peter Zijlstra Cc: Frédéric Weisbecker Cc: Ian Munsie Cc: Mike Galbraith Cc: Peter Zijlstra Cc: Paul Mackerras Cc: Stephane Eranian LKML-Reference: Signed-off-by: Arnaldo Carvalho de Melo --- Reading git-diff-tree failed