]> git.baikalelectronics.ru Git - kernel.git/commit
perf_counter: Subtract the buffer size field from the event record size
authorFrederic Weisbecker <fweisbec@gmail.com>
Mon, 10 Aug 2009 14:11:32 +0000 (16:11 +0200)
committerIngo Molnar <mingo@elte.hu>
Mon, 10 Aug 2009 14:18:50 +0000 (16:18 +0200)
commit68d2aabc85439d2ec2cf02cf1060fc2ae04d9eeb
treebd233c6fd72d1d674c4a9537cfd6519069914d74
parentf003865b1e27fff53a83e2c595f8b1ade488c418
perf_counter: Subtract the buffer size field from the event record size

We compute the perf raw sample size by aligning the raw ftrace
event size plus the buffer size field itself. We do that
instead of aligning only the perf raw sample size, so that we
might economize some in some cases.

But this buffer size field is not stored in the perf raw
sample, we must then substract its size from the buffer once we
computed the alignment unless we may get a useless u32 field in
the buffer.

Signed-off-by: Frederic Weisbecker <fweisbec@gmail.com>
Acked-by: Peter Zijlstra <peterz@infradead.org>
Cc: Arnaldo Carvalho de Melo <acme@redhat.com>
Cc: Mike Galbraith <efault@gmx.de>
Cc: Paul Mackerras <paulus@samba.org>
LKML-Reference: <20090810141129.GA5124@nowhere>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
include/trace/ftrace.h