X-Git-Url: http://git.liburcu.org/?p=lttng-modules.git;a=blobdiff_plain;f=lttng-context-callstack.c;h=0876b12269ecc26a90c73b948d8c0dc9bb954f6e;hp=2fa5f52dbf19929ff2686a1e594dc5d22cbd724a;hb=cef5d79ec834edb32f33cdf45ad10b3b32e59726;hpb=a2b0231a9ae996cc69e48d75c338ad7d081a0f85 diff --git a/lttng-context-callstack.c b/lttng-context-callstack.c index 2fa5f52d..0876b122 100644 --- a/lttng-context-callstack.c +++ b/lttng-context-callstack.c @@ -1,4 +1,5 @@ -/* +/* SPDX-License-Identifier: (GPL-2.0 or LGPL-2.1) + * * lttng-context-callstack.c * * LTTng callstack event context. @@ -6,20 +7,6 @@ * Copyright (C) 2014 Mathieu Desnoyers * Copyright (C) 2014 Francis Giraldeau * - * This library is free software; you can redistribute it and/or - * modify it under the terms of the GNU Lesser General Public - * License as published by the Free Software Foundation; only - * version 2.1 of the License. - * - * This library is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU - * Lesser General Public License for more details. - * - * You should have received a copy of the GNU Lesser General Public - * License along with this library; if not, write to the Free Software - * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA - * * The callstack context can be added to any kernel event. It records * either the kernel or the userspace callstack, up to a max depth. The * context is a CTF sequence, such that it uses only the space required @@ -367,14 +354,12 @@ 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; } } EXPORT_SYMBOL_GPL(lttng_add_callstack_to_ctx); - -MODULE_LICENSE("GPL and additional rights"); -MODULE_AUTHOR("Francis Giraldeau"); -MODULE_DESCRIPTION("Linux Trace Toolkit Callstack Support");