From b874d3f33576e84221ae1be02505c47c0e7899bf Mon Sep 17 00:00:00 2001 From: Francis Deslauriers Date: Thu, 7 Jun 2018 14:48:04 -0400 Subject: [PATCH] Enable userspace callstack contexts only on x86 Signed-off-by: Francis Deslauriers Signed-off-by: Mathieu Desnoyers --- lttng-context-callstack.c | 2 ++ 1 file changed, 2 insertions(+) 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; } -- 2.34.1