X-Git-Url: http://git.liburcu.org/?a=blobdiff_plain;f=liblttng-ust%2Flttng-context-net-ns.c;h=08b6134069a54d816c4cb759810f9698cddaa68b;hb=dc11f93f7d30cd383e35be41483cc024da59c7b8;hp=3ce139f62049d1cd287c012e300a22a43ed7c9de;hpb=cc58956cca1b3864a02b80882ead818b23225295;p=lttng-ust.git diff --git a/liblttng-ust/lttng-context-net-ns.c b/liblttng-ust/lttng-context-net-ns.c index 3ce139f6..08b61340 100644 --- a/liblttng-ust/lttng-context-net-ns.c +++ b/liblttng-ust/lttng-context-net-ns.c @@ -1,24 +1,10 @@ /* - * lttng-context-net-ns.c - * - * LTTng UST net namespace context. + * SPDX-License-Identifier: LGPL-2.1-only * * Copyright (C) 2009-2012 Mathieu Desnoyers - * 2019 Michael Jeanson - * - * 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. + * Copyright (C) 2019 Michael Jeanson * - * 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 + * LTTng UST net namespace context. */ #define _LGPL_SOURCE @@ -29,8 +15,10 @@ #include #include #include -#include +#include #include + +#include "context-internal.h" #include "lttng-tracer-core.h" #include "ns.h" @@ -142,12 +130,12 @@ int lttng_add_net_ns_to_ctx(struct lttng_ctx **ctx) } field->event_field.name = "net_ns"; field->event_field.type.atype = atype_integer; - field->event_field.type.u.basic.integer.size = sizeof(ino_t) * CHAR_BIT; - field->event_field.type.u.basic.integer.alignment = lttng_alignof(ino_t) * CHAR_BIT; - field->event_field.type.u.basic.integer.signedness = lttng_is_signed_type(ino_t); - field->event_field.type.u.basic.integer.reverse_byte_order = 0; - field->event_field.type.u.basic.integer.base = 10; - field->event_field.type.u.basic.integer.encoding = lttng_encode_none; + field->event_field.type.u.integer.size = sizeof(ino_t) * CHAR_BIT; + field->event_field.type.u.integer.alignment = lttng_alignof(ino_t) * CHAR_BIT; + field->event_field.type.u.integer.signedness = lttng_is_signed_type(ino_t); + field->event_field.type.u.integer.reverse_byte_order = 0; + field->event_field.type.u.integer.base = 10; + field->event_field.type.u.integer.encoding = lttng_encode_none; field->get_size = net_ns_get_size; field->record = net_ns_record; field->get_value = net_ns_get_value;