perf: Improve the perf_sample_data struct layout
authorPeter Zijlstra <peterz@infradead.org>
Wed, 24 Sep 2014 11:48:42 +0000 (13:48 +0200)
committerIngo Molnar <mingo@kernel.org>
Sun, 16 Nov 2014 10:42:04 +0000 (11:42 +0100)
commit2565711fb7d7c28e0cd93c8971b520d1b10b857c
treeace1ace82ecd5f2490b65a20df5b1d781d8a62c3
parent4b6c51773d86883a2e80cffadbe4f178ac1babd8
perf: Improve the perf_sample_data struct layout

This patch reorders fields in the perf_sample_data struct in order to
minimize the number of cachelines touched in perf_sample_data_init().
It also removes some intializations which are redundant with the code
in kernel/events/core.c

Signed-off-by: Peter Zijlstra (Intel) <peterz@infradead.org>
Link: http://lkml.kernel.org/r/1411559322-16548-7-git-send-email-eranian@google.com
Cc: cebbert.lkml@gmail.com
Cc: Arnaldo Carvalho de Melo <acme@kernel.org>
Cc: jolsa@redhat.com
Cc: Linus Torvalds <torvalds@linux-foundation.org>
Signed-off-by: Ingo Molnar <mingo@kernel.org>
include/linux/perf_event.h
kernel/events/core.c