* [lttng-dev] [PATCH lttng-ust] Default to no unaligned access on unsupported archs
@ 2015-06-30 15:55 Michael Jeanson
2015-06-30 17:05 ` Mathieu Desnoyers
0 siblings, 1 reply; 2+ messages in thread
From: Michael Jeanson @ 2015-06-30 15:55 UTC (permalink / raw)
Signed-off-by: Michael Jeanson <mjeanson at efficios.com>
---
configure.ac | 10 +++++++++-
1 file changed, 9 insertions(+), 1 deletion(-)
diff --git a/configure.ac b/configure.ac
index 03483a7..5901dfb 100644
--- a/configure.ac
+++ b/configure.ac
@@ -241,7 +241,10 @@ changequote([,])dnl
aarch64) NO_UNALIGNED_ACCESS=1 ;;
mips*) NO_UNALIGNED_ACCESS=1 ;;
tile*) NO_UNALIGNED_ACCESS=1 ;;
- *) AC_MSG_ERROR([unable to detect alignment requirements (unsupported architecture ($host_cpu)?)]) ;;
+ *)
+ UNSUPPORTED_ARCH=1
+ NO_UNALIGNED_ACCESS=1
+ ;;
esac
AC_MSG_RESULT([$host_cpu])
@@ -423,5 +426,10 @@ AS_ECHO_N("sdt.h integration: ")
AS_IF([test "x$with_sdt" = "xyes"], [AS_ECHO("Enabled")], [AS_ECHO("Disabled")])
AS_ECHO()
+AS_ECHO_N("Architecture ($host_cpu) has efficient unaligned memory access: ")
+AS_IF([test "x$NO_UNALIGNED_ACCESS" != "x1"], [AS_ECHO("yes")], [AS_IF([test "x$UNSUPPORTED_ARCH" != "x1"], [AS_ECHO("no")], [AS_ECHO("unknown")])])
+AS_IF([test "x$UNSUPPORTED_ARCH" = "x1"], [AC_MSG_WARN([Your architecture ($host_cpu) is unsupported, using safe default of no unaligned access])])
+AS_ECHO()
+
AS_ECHO("Type 'make' to compile.")
--
1.9.1
^ permalink raw reply [flat|nested] 2+ messages in thread
* [lttng-dev] [PATCH lttng-ust] Default to no unaligned access on unsupported archs
2015-06-30 15:55 [lttng-dev] [PATCH lttng-ust] Default to no unaligned access on unsupported archs Michael Jeanson
@ 2015-06-30 17:05 ` Mathieu Desnoyers
0 siblings, 0 replies; 2+ messages in thread
From: Mathieu Desnoyers @ 2015-06-30 17:05 UTC (permalink / raw)
Merged with a small configure output layout modification.
Thanks!
Mathieu
----- On Jun 30, 2015, at 11:55 AM, Michael Jeanson mjeanson at efficios.com wrote:
> Signed-off-by: Michael Jeanson <mjeanson at efficios.com>
> ---
> configure.ac | 10 +++++++++-
> 1 file changed, 9 insertions(+), 1 deletion(-)
>
> diff --git a/configure.ac b/configure.ac
> index 03483a7..5901dfb 100644
> --- a/configure.ac
> +++ b/configure.ac
> @@ -241,7 +241,10 @@ changequote([,])dnl
> aarch64) NO_UNALIGNED_ACCESS=1 ;;
> mips*) NO_UNALIGNED_ACCESS=1 ;;
> tile*) NO_UNALIGNED_ACCESS=1 ;;
> - *) AC_MSG_ERROR([unable to detect alignment requirements (unsupported
> architecture ($host_cpu)?)]) ;;
> + *)
> + UNSUPPORTED_ARCH=1
> + NO_UNALIGNED_ACCESS=1
> + ;;
> esac
> AC_MSG_RESULT([$host_cpu])
>
> @@ -423,5 +426,10 @@ AS_ECHO_N("sdt.h integration: ")
> AS_IF([test "x$with_sdt" = "xyes"], [AS_ECHO("Enabled")], [AS_ECHO("Disabled")])
>
> AS_ECHO()
> +AS_ECHO_N("Architecture ($host_cpu) has efficient unaligned memory access: ")
> +AS_IF([test "x$NO_UNALIGNED_ACCESS" != "x1"], [AS_ECHO("yes")], [AS_IF([test
> "x$UNSUPPORTED_ARCH" != "x1"], [AS_ECHO("no")], [AS_ECHO("unknown")])])
> +AS_IF([test "x$UNSUPPORTED_ARCH" = "x1"], [AC_MSG_WARN([Your architecture
> ($host_cpu) is unsupported, using safe default of no unaligned access])])
> +AS_ECHO()
> +
> AS_ECHO("Type 'make' to compile.")
>
> --
> 1.9.1
--
Mathieu Desnoyers
EfficiOS Inc.
http://www.efficios.com
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2015-06-30 17:05 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2015-06-30 15:55 [lttng-dev] [PATCH lttng-ust] Default to no unaligned access on unsupported archs Michael Jeanson
2015-06-30 17:05 ` Mathieu Desnoyers
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox