X-Git-Url: http://git.liburcu.org/?p=lttng-modules.git;a=blobdiff_plain;f=lttng-context-vpid.c;h=982ce5584d5e626234d9bef3595f8242f008d706;hp=9a8df9a972b89f7c32dfa4335cde048f6b9ae1e5;hb=1aca53e11bbd4a28fb88f8466744abf66447c92f;hpb=07dfc1d0e4b093ad02682499a702dc11e54e8302 diff --git a/lttng-context-vpid.c b/lttng-context-vpid.c index 9a8df9a9..982ce558 100644 --- a/lttng-context-vpid.c +++ b/lttng-context-vpid.c @@ -1,32 +1,19 @@ -/* +/* SPDX-License-Identifier: (GPL-2.0 or LGPL-2.1) + * * lttng-context-vpid.c * * LTTng vPID context. * * Copyright (C) 2009-2012 Mathieu Desnoyers - * - * 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 */ #include #include #include -#include "lttng-events.h" -#include "wrapper/ringbuffer/frontend_types.h" -#include "wrapper/vmalloc.h" -#include "lttng-tracer.h" +#include +#include +#include +#include static size_t vpid_get_size(size_t offset) @@ -58,6 +45,7 @@ void vpid_record(struct lttng_ctx_field *field, static void vpid_get_value(struct lttng_ctx_field *field, + struct lttng_probe_ctx *lttng_probe_ctx, union lttng_ctx_value *value) { pid_t vpid; @@ -99,11 +87,3 @@ int lttng_add_vpid_to_ctx(struct lttng_ctx **ctx) return 0; } EXPORT_SYMBOL_GPL(lttng_add_vpid_to_ctx); - -MODULE_LICENSE("GPL and additional rights"); -MODULE_AUTHOR("Mathieu Desnoyers"); -MODULE_DESCRIPTION("Linux Trace Toolkit vPID Context"); -MODULE_VERSION(__stringify(LTTNG_MODULES_MAJOR_VERSION) "." - __stringify(LTTNG_MODULES_MINOR_VERSION) "." - __stringify(LTTNG_MODULES_PATCHLEVEL_VERSION) - LTTNG_MODULES_EXTRAVERSION);