perf: Improve the perf_sample_data struct layout 90/160790/5
authorPeter Zijlstra <peterz@infradead.org>
Wed, 24 Sep 2014 11:48:42 +0000 (13:48 +0200)
committerSeung-Woo Kim <sw0312.kim@samsung.com>
Mon, 20 Nov 2017 10:36:20 +0000 (19:36 +0900)
commit458583f32ee6252ae0cf90c06adc114076392835
tree111538118fd3ac173986521e8a884851eb5915dd
parentf85e61c4be91884d868287c5ef6efe957455d578
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>
[inki.dae: backport mainline commit 2565711fb7d7 to show proper perf result graph]
Signed-off-by: Inki Dae <inki.dae@samsung.com>
Change-Id: I92db818e36740e3601da3a5a00fc5973840ef8c2
include/linux/perf_event.h
kernel/events/core.c