Messages in this thread Patch in this message | | | From | Frederic Weisbecker <> | Subject | [PATCH 3/3] perfcounter: Align ftrace events raw samples to 8 bytes | Date | Sat, 8 Aug 2009 04:26:39 +0200 |
| |
Align the ftrace events raw samples to 8 bytes so that they meet the perf output event alignements requirements.
Reported-by: Peter Zijlstra <peterz@infradead.org> Signed-off-by: Frederic Weisbecker <fweisbec@gmail.com> Cc: 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> --- include/trace/ftrace.h | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/include/trace/ftrace.h b/include/trace/ftrace.h index 80e5f6c..7b0834c 100644 --- a/include/trace/ftrace.h +++ b/include/trace/ftrace.h @@ -687,7 +687,7 @@ static void ftrace_profile_##call(proto) \ pc = preempt_count(); \ \ __data_size = ftrace_get_offsets_##call(&__data_offsets, args); \ - __entry_size = __data_size + sizeof(*entry); \ + __entry_size = ALIGN(__data_size + sizeof(*entry), sizeof(u64));\ \ do { \ char raw_data[__entry_size]; \ -- 1.6.2.3
| |