X-Git-Url: http://git.lttng.org/?a=blobdiff_plain;f=liblttng-ust%2Flttng-context-ip.c;h=d10c9b45ae90ff852d17d9acbaeec16219033057;hb=c0c0989ab70574e09b2f7e8b48c2da6af664a849;hp=84c7349981fe6936d9c9cc29fa374fcdb725735e;hpb=53569322d40ed45abe0368ddb08eb4a2738afc37;p=lttng-ust.git diff --git a/liblttng-ust/lttng-context-ip.c b/liblttng-ust/lttng-context-ip.c index 84c73499..d10c9b45 100644 --- a/liblttng-ust/lttng-context-ip.c +++ b/liblttng-ust/lttng-context-ip.c @@ -1,25 +1,13 @@ /* - * lttng-context-ip.c - * - * LTTng UST Instruction Pointer Context. + * SPDX-License-Identifier: LGPL-2.1-only * * 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 + * LTTng UST Instruction Pointer Context. */ +#define _LGPL_SOURCE +#include #include #include #include @@ -61,12 +49,12 @@ int lttng_add_ip_to_ctx(struct lttng_ctx **ctx) } field->event_field.name = "ip"; field->event_field.type.atype = atype_integer; - field->event_field.type.u.basic.integer.size = sizeof(void *) * CHAR_BIT; - field->event_field.type.u.basic.integer.alignment = lttng_alignof(void *) * CHAR_BIT; - field->event_field.type.u.basic.integer.signedness = lttng_is_signed_type(void *); - field->event_field.type.u.basic.integer.reverse_byte_order = 0; - field->event_field.type.u.basic.integer.base = 16; - field->event_field.type.u.basic.integer.encoding = lttng_encode_none; + field->event_field.type.u.integer.size = sizeof(void *) * CHAR_BIT; + field->event_field.type.u.integer.alignment = lttng_alignof(void *) * CHAR_BIT; + field->event_field.type.u.integer.signedness = lttng_is_signed_type(void *); + field->event_field.type.u.integer.reverse_byte_order = 0; + field->event_field.type.u.integer.base = 16; + field->event_field.type.u.integer.encoding = lttng_encode_none; field->get_size = ip_get_size; field->record = ip_record; lttng_context_update(*ctx);