[lttng-dev] [PATCH v2] Fix: Align buffers from objstack_alloc on sizeof(void *)

2014-05-16 Thread rongqing.li
From: Fredrik Markström fredrik.markst...@gmail.com The buffers from objstack_alloc will store the pointer, so it must be aligned on pointer, or else it will cause issue on the cpu which does not support unaligned addresses access Signed-off-by: Fredrik Markstrom fredrik.markst...@gmail.com

[lttng-dev] [PATCH] Fixed alignment problems on targets not supporting unaligned access.

2014-05-15 Thread rongqing.li
From: Fredrik Markström fredrik.markst...@gmail.com Accessing floats, doubles and 64 bit int at unalign addresses is not supported on all configurations of arm processors and if it is it's emualted and slow. This patch replaces direct assignments with memcpy. Signed-off-by: Fredrik Markstr枚m

[lttng-dev] [PATCH] FIX: Align buffers on 4 bytes for 64bit access

2014-05-15 Thread rongqing.li
From: Fredrik Markström fredrik.markst...@gmail.com Signed-off-by: Fredrik Markstr枚m fredrik.markst...@gmail.com --- formats/ctf/metadata/objstack.c |2 ++ 1 file changed, 2 insertions(+) diff --git a/formats/ctf/metadata/objstack.c b/formats/ctf/metadata/objstack.c index 9e264a4..9643b9b

[lttng-dev] [PATCH v2] Fix: alignment problems on targets not supporting unaligned access.

2014-05-15 Thread rongqing.li
From: Fredrik Markström fredrik.markst...@gmail.com Accessing floats, doubles and 64 bit int at unaligned addresses is not supported on all configurations of arm processors and if it is it's emulated and slow. This patch replaces direct assignments with memcpy. Signed-off-by: Fredrik Markström