summaryrefslogtreecommitdiff
path: root/include/linux/perf_event.h
diff options
context:
space:
mode:
authorArnaldo Carvalho de Melo <acme@redhat.com>2010-10-20 12:50:11 -0200
committerArnaldo Carvalho de Melo <acme@redhat.com>2010-11-30 19:19:04 -0200
commitc320c7b7d380e630f595de1236d9d085b035d5b4 (patch)
treee1544fa8cc259a1d300fac9104dd3c46458572fe /include/linux/perf_event.h
parent068ffaa8bfb67c2ddb3ecaf38cc90f94a1a92fe3 (diff)
downloadlinux-stable-c320c7b7d380e630f595de1236d9d085b035d5b4.tar.gz
linux-stable-c320c7b7d380e630f595de1236d9d085b035d5b4.tar.bz2
linux-stable-c320c7b7d380e630f595de1236d9d085b035d5b4.zip
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 <a.p.zijlstra@chello.nl> Cc: Frédéric Weisbecker <fweisbec@gmail.com> Cc: Ian Munsie <imunsie@au1.ibm.com> Cc: Mike Galbraith <efault@gmx.de> Cc: Peter Zijlstra <a.p.zijlstra@chello.nl> Cc: Paul Mackerras <paulus@samba.org> Cc: Stephane Eranian <eranian@google.com> LKML-Reference: <new-submission> Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
Diffstat (limited to 'include/linux/perf_event.h')
-rw-r--r--include/linux/perf_event.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/include/linux/perf_event.h b/include/linux/perf_event.h
index cbf04cc1e630..adf6d9931643 100644
--- a/include/linux/perf_event.h
+++ b/include/linux/perf_event.h
@@ -758,6 +758,8 @@ struct perf_event {
u64 shadow_ctx_time;
struct perf_event_attr attr;
+ u16 header_size;
+ u16 read_size;
struct hw_perf_event hw;
struct perf_event_context *ctx;