From: Michael Jeanson Date: Fri, 12 Feb 2016 20:26:23 +0000 (-0500) Subject: Cleanup: Remove unused lttng-types module X-Git-Tag: v2.8.0-rc1~28 X-Git-Url: https://git.lttng.org./?a=commitdiff_plain;h=63d6e6603fb7dec20778b1276b2e67e3e16bdffc;p=lttng-modules.git Cleanup: Remove unused lttng-types module Signed-off-by: Michael Jeanson Signed-off-by: Mathieu Desnoyers --- diff --git a/lttng-events.h b/lttng-events.h index 1b4f39c4..2eccf869 100644 --- a/lttng-events.h +++ b/lttng-events.h @@ -43,7 +43,6 @@ struct lib_ring_buffer_config; /* Type description */ -/* Update the astract_types name table in lttng-types.c along with this enum */ enum abstract_types { atype_integer, atype_enum, @@ -53,7 +52,6 @@ enum abstract_types { NR_ABSTRACT_TYPES, }; -/* Update the string_encodings name table in lttng-types.c along with this enum */ enum lttng_string_encodings { lttng_encode_none = 0, lttng_encode_UTF8 = 1, diff --git a/probes/Kbuild b/probes/Kbuild index 13e7bd80..0be49d7f 100644 --- a/probes/Kbuild +++ b/probes/Kbuild @@ -3,7 +3,6 @@ MAKEFILEDIR = $(shell dirname $(lastword $(MAKEFILE_LIST))) include $(MAKEFILEDIR)/../Makefile.ABI.workarounds ccflags-y += -I$(PWD)/probes -obj-$(CONFIG_LTTNG) += lttng-types.o obj-$(CONFIG_LTTNG) += lttng-probe-sched.o obj-$(CONFIG_LTTNG) += lttng-probe-irq.o diff --git a/probes/lttng-type-list.h b/probes/lttng-type-list.h deleted file mode 100644 index 564a13fd..00000000 --- a/probes/lttng-type-list.h +++ /dev/null @@ -1,33 +0,0 @@ -/* - * lttng-type-list.h - * - * Copyright (C) 2010-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 - */ - -/* Type list, used to create metadata */ - -/* Enumerations */ -TRACE_EVENT_ENUM(hrtimer_mode, - V(HRTIMER_MODE_ABS), - V(HRTIMER_MODE_REL), - V(HRTIMER_MODE_PINNED), - V(HRTIMER_MODE_ABS_PINNED), - V(HRTIMER_MODE_REL_PINNED), - R(HRTIMER_MODE_UNDEFINED, 0x04, 0x20), /* Example (to remove) */ -) - -TRACE_EVENT_TYPE(hrtimer_mode, enum, unsigned char) diff --git a/probes/lttng-types.c b/probes/lttng-types.c deleted file mode 100644 index 09734543..00000000 --- a/probes/lttng-types.c +++ /dev/null @@ -1,66 +0,0 @@ -/* - * probes/lttng-types.c - * - * LTTng types. - * - * Copyright (C) 2010-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 "../wrapper/vmalloc.h" /* for wrapper_vmalloc_sync_all() */ -#include "../lttng-events.h" -#include "lttng-types.h" -#include -#include "../lttng-tracer.h" - -#define STAGE_EXPORT_ENUMS -#include "lttng-types.h" -#include "lttng-type-list.h" -#undef STAGE_EXPORT_ENUMS - -struct lttng_enum lttng_enums[] = { -#define STAGE_EXPORT_TYPES -#include "lttng-types.h" -#include "lttng-type-list.h" -#undef STAGE_EXPORT_TYPES -}; - -static int lttng_types_init(void) -{ - int ret = 0; - - wrapper_vmalloc_sync_all(); - /* TODO */ - return ret; -} - -module_init(lttng_types_init); - -static void lttng_types_exit(void) -{ -} - -module_exit(lttng_types_exit); - -MODULE_LICENSE("GPL and additional rights"); -MODULE_AUTHOR("Mathieu Desnoyers "); -MODULE_DESCRIPTION("LTTng types"); -MODULE_VERSION(__stringify(LTTNG_MODULES_MAJOR_VERSION) "." - __stringify(LTTNG_MODULES_MINOR_VERSION) "." - __stringify(LTTNG_MODULES_PATCHLEVEL_VERSION) - LTTNG_MODULES_EXTRAVERSION);