Enable userspace callstack contexts only on x86
authorFrancis Deslauriers <francis.deslauriers@efficios.com>
Thu, 7 Jun 2018 18:48:04 +0000 (14:48 -0400)
committerMathieu Desnoyers <mathieu.desnoyers@efficios.com>
Mon, 11 Jun 2018 18:39:22 +0000 (14:39 -0400)
Signed-off-by: Francis Deslauriers <francis.deslauriers@efficios.com>
Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
lttng-context-callstack.c

index 2fa5f52dbf19929ff2686a1e594dc5d22cbd724a..432fadb652f349566ae1eee7e646ed29f83b507b 100644 (file)
@@ -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;
        }
This page took 0.025952 seconds and 4 git commands to generate.