From: Francis Deslauriers Date: Thu, 7 Jun 2018 18:48:04 +0000 (-0400) Subject: Enable userspace callstack contexts only on x86 X-Git-Tag: v2.11.0-rc1~23 X-Git-Url: http://git.liburcu.org/?p=lttng-modules.git;a=commitdiff_plain;h=b874d3f33576e84221ae1be02505c47c0e7899bf Enable userspace callstack contexts only on x86 Signed-off-by: Francis Deslauriers Signed-off-by: Mathieu Desnoyers --- diff --git a/lttng-context-callstack.c b/lttng-context-callstack.c index 2fa5f52d..432fadb6 100644 --- a/lttng-context-callstack.c +++ b/lttng-context-callstack.c @@ -367,8 +367,10 @@ int lttng_add_callstack_to_ctx(struct lttng_ctx **ctx, int type) switch (type) { case LTTNG_KERNEL_CONTEXT_CALLSTACK_KERNEL: return __lttng_add_callstack_generic(ctx, CALLSTACK_KERNEL); +#ifdef CONFIG_X86 case LTTNG_KERNEL_CONTEXT_CALLSTACK_USER: return __lttng_add_callstack_generic(ctx, CALLSTACK_USER); +#endif default: return -EINVAL; }