Cleanup: modinfo keys
Subsystems (3)
A message that is not in the archive (sent off-list or not yet received): [email protected]
PATCH 2/4 Cleanup: modinfo keys
Remove duplicates keys, add missing keys, add missing information and fix the description of some modules.
--- lib/ringbuffer/ring_buffer_vfs.c | 4 ++-- lttng-context-callstack.c | 4 ---- lttng-events.c | 2 +- lttng-ring-buffer-client-discard.c | 8 -------- lttng-ring-buffer-client-mmap-discard.c | 8 -------- lttng-ring-buffer-client-mmap-overwrite.c | 8 -------- lttng-ring-buffer-client-overwrite.c | 8 -------- lttng-ring-buffer-client.h | 6 +++++- lttng-ring-buffer-metadata-client.c | 8 -------- lttng-ring-buffer-metadata-client.h | 6 +++++- lttng-ring-buffer-metadata-mmap-client.c | 8 -------- lttng-statedump-impl.c | 2 +- probes/lttng-ftrace.c | 4 ++-- probes/lttng-kprobes.c | 4 ++-- probes/lttng-kretprobes.c | 4 ++-- probes/lttng-probe-asoc.c | 4 +++- probes/lttng-probe-jbd2.c | 3 ++- probes/lttng-probe-kmem.c | 3 ++- probes/lttng-probe-module.c | 3 ++- probes/lttng-probe-power.c | 3 ++- probes/lttng-probe-scsi.c | 3 ++- probes/lttng-probe-skb.c | 3 ++- probes/lttng-probe-vmscan.c | 4 +++- tests/clock-plugin/lttng-clock-plugin-test.c | 5 +++++ 24 files changed, 43 insertions(+), 72 deletions(-)
lib/ringbuffer/ring_buffer_vfs.c +2 -2
@@ -459,8 +459,8 @@ const struct file_operations lib_ring_buffer_file_operations = {EXPORT_SYMBOL_GPL (lib_ring_buffer_file_operations);MODULE_LICENSE ("GPL and additional rights" ); -MODULE_AUTHOR ("Mathieu Desnoyers" ); -MODULE_DESCRIPTION ("Ring Buffer Library VFS" ); +MODULE_AUTHOR ("Mathieu Desnoyers <[email protected]>" ); +MODULE_DESCRIPTION ("LTTng ring buffer library" ); MODULE_VERSION(__stringify(LTTNG_MODULES_MAJOR_VERSION) "." __stringify(LTTNG_MODULES_MINOR_VERSION) "." __stringify(LTTNG_MODULES_PATCHLEVEL_VERSION )
lttng-context-callstack.c +0 -4
@@ -376,7 +376,3 @@ int lttng_add_callstack_to_ctx(struct lttng_ctx **ctx, int type) } }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" );
lttng-events.c +1 -1
@@ -2899,7 +2899,7 @@ MODULE_INFO(extra_version_name, LTTNG_EXTRA_VERSION_NAME);#endif MODULE_LICENSE ("GPL and additional rights" );MODULE_AUTHOR ("Mathieu Desnoyers <[email protected]>" ); -MODULE_DESCRIPTION ("LTTng Events" ); +MODULE_DESCRIPTION ("LTTng tracer" ); MODULE_VERSION(__stringify(LTTNG_MODULES_MAJOR_VERSION) "." __stringify(LTTNG_MODULES_MINOR_VERSION) "." __stringify(LTTNG_MODULES_PATCHLEVEL_VERSION )
lttng-ring-buffer-client-discard.c +0 -8
@@ -27,11 +27,3 @@#define RING_BUFFER_MODE_TEMPLATE_STRING "discard"#define RING_BUFFER_OUTPUT_TEMPLATE RING_BUFFER_SPLICE#include "lttng-ring-buffer-client.h" - -MODULE_LICENSE ("GPL and additional rights" ); -MODULE_AUTHOR ("Mathieu Desnoyers" ); -MODULE_DESCRIPTION ("LTTng Ring Buffer Client Discard Mode" ); -MODULE_VERSION(__stringify(LTTNG_MODULES_MAJOR_VERSION) "." - __stringify(LTTNG_MODULES_MINOR_VERSION) "." - __stringify(LTTNG_MODULES_PATCHLEVEL_VERSION ) - LTTNG_MODULES_EXTRAVERSION);
lttng-ring-buffer-client-mmap-discard.c +0 -8
@@ -27,11 +27,3 @@#define RING_BUFFER_MODE_TEMPLATE_STRING "discard-mmap"#define RING_BUFFER_OUTPUT_TEMPLATE RING_BUFFER_MMAP#include "lttng-ring-buffer-client.h" - -MODULE_LICENSE ("GPL and additional rights" ); -MODULE_AUTHOR ("Mathieu Desnoyers" ); -MODULE_DESCRIPTION ("LTTng Ring Buffer Client Discard Mode" ); -MODULE_VERSION(__stringify(LTTNG_MODULES_MAJOR_VERSION) "." - __stringify(LTTNG_MODULES_MINOR_VERSION) "." - __stringify(LTTNG_MODULES_PATCHLEVEL_VERSION ) - LTTNG_MODULES_EXTRAVERSION);
lttng-ring-buffer-client-mmap-overwrite.c +0 -8
@@ -27,11 +27,3 @@#define RING_BUFFER_MODE_TEMPLATE_STRING "overwrite-mmap"#define RING_BUFFER_OUTPUT_TEMPLATE RING_BUFFER_MMAP#include "lttng-ring-buffer-client.h" - -MODULE_LICENSE ("GPL and additional rights" ); -MODULE_AUTHOR ("Mathieu Desnoyers" ); -MODULE_DESCRIPTION ("LTTng Ring Buffer Client Overwrite Mode" ); -MODULE_VERSION(__stringify(LTTNG_MODULES_MAJOR_VERSION) "." - __stringify(LTTNG_MODULES_MINOR_VERSION) "." - __stringify(LTTNG_MODULES_PATCHLEVEL_VERSION ) - LTTNG_MODULES_EXTRAVERSION);
lttng-ring-buffer-client-overwrite.c +0 -8
@@ -27,11 +27,3 @@#define RING_BUFFER_MODE_TEMPLATE_STRING "overwrite"#define RING_BUFFER_OUTPUT_TEMPLATE RING_BUFFER_SPLICE#include "lttng-ring-buffer-client.h" - -MODULE_LICENSE ("GPL and additional rights" ); -MODULE_AUTHOR ("Mathieu Desnoyers" ); -MODULE_DESCRIPTION ("LTTng Ring Buffer Client Overwrite Mode" ); -MODULE_VERSION(__stringify(LTTNG_MODULES_MAJOR_VERSION) "." - __stringify(LTTNG_MODULES_MINOR_VERSION) "." - __stringify(LTTNG_MODULES_PATCHLEVEL_VERSION ) - LTTNG_MODULES_EXTRAVERSION);
lttng-ring-buffer-client.h +5 -1
@@ -794,6 +794,10 @@ static void __exit lttng_ring_buffer_client_exit(void)module_exit (lttng_ring_buffer_client_exit);MODULE_LICENSE ("GPL and additional rights" ); -MODULE_AUTHOR ("Mathieu Desnoyers" ); +MODULE_AUTHOR ("Mathieu Desnoyers <[email protected]>" );MODULE_DESCRIPTION ("LTTng ring buffer " RING_BUFFER_MODE_TEMPLATE_STRING " client" ); +MODULE_VERSION(__stringify(LTTNG_MODULES_MAJOR_VERSION) "." + __stringify(LTTNG_MODULES_MINOR_VERSION) "." + __stringify(LTTNG_MODULES_PATCHLEVEL_VERSION ) + LTTNG_MODULES_EXTRAVERSION);
lttng-ring-buffer-metadata-client.c +0 -8
@@ -27,11 +27,3 @@#define RING_BUFFER_MODE_TEMPLATE_STRING "metadata"#define RING_BUFFER_OUTPUT_TEMPLATE RING_BUFFER_SPLICE#include "lttng-ring-buffer-metadata-client.h" - -MODULE_LICENSE ("GPL and additional rights" ); -MODULE_AUTHOR ("Mathieu Desnoyers" ); -MODULE_DESCRIPTION ("LTTng Ring Buffer Metadata Client" ); -MODULE_VERSION(__stringify(LTTNG_MODULES_MAJOR_VERSION) "." - __stringify(LTTNG_MODULES_MINOR_VERSION) "." - __stringify(LTTNG_MODULES_PATCHLEVEL_VERSION ) - LTTNG_MODULES_EXTRAVERSION);
lttng-ring-buffer-metadata-client.h +5 -1
@@ -456,6 +456,10 @@ static void __exit lttng_ring_buffer_client_exit(void)module_exit (lttng_ring_buffer_client_exit);MODULE_LICENSE ("GPL and additional rights" ); -MODULE_AUTHOR ("Mathieu Desnoyers" ); +MODULE_AUTHOR ("Mathieu Desnoyers <[email protected]>" );MODULE_DESCRIPTION ("LTTng ring buffer " RING_BUFFER_MODE_TEMPLATE_STRING " client" ); +MODULE_VERSION(__stringify(LTTNG_MODULES_MAJOR_VERSION) "." + __stringify(LTTNG_MODULES_MINOR_VERSION) "." + __stringify(LTTNG_MODULES_PATCHLEVEL_VERSION ) + LTTNG_MODULES_EXTRAVERSION);
lttng-ring-buffer-metadata-mmap-client.c +0 -8
@@ -27,11 +27,3 @@#define RING_BUFFER_MODE_TEMPLATE_STRING "metadata-mmap"#define RING_BUFFER_OUTPUT_TEMPLATE RING_BUFFER_MMAP#include "lttng-ring-buffer-metadata-client.h" - -MODULE_LICENSE ("GPL and additional rights" ); -MODULE_AUTHOR ("Mathieu Desnoyers" ); -MODULE_DESCRIPTION ("LTTng Ring Buffer Metadata Client" ); -MODULE_VERSION(__stringify(LTTNG_MODULES_MAJOR_VERSION) "." - __stringify(LTTNG_MODULES_MINOR_VERSION) "." - __stringify(LTTNG_MODULES_PATCHLEVEL_VERSION ) - LTTNG_MODULES_EXTRAVERSION);
lttng-statedump-impl.c +1 -1
@@ -560,7 +560,7 @@ module_exit(lttng_statedump_exit);MODULE_LICENSE ("GPL and additional rights" );MODULE_AUTHOR ("Jean-Hugues Deschenes" ); -MODULE_DESCRIPTION ("Linux Trace Toolkit Next Generation Statedump" ); +MODULE_DESCRIPTION ("LTTng statedump provider" ); MODULE_VERSION(__stringify(LTTNG_MODULES_MAJOR_VERSION) "." __stringify(LTTNG_MODULES_MINOR_VERSION) "." __stringify(LTTNG_MODULES_PATCHLEVEL_VERSION )
probes/lttng-ftrace.c +2 -2
@@ -241,8 +241,8 @@ void lttng_ftrace_exit(void) module_exit(lttng_ftrace_exit) MODULE_LICENSE("GPL and additional rights"); -MODULE_AUTHOR ("Mathieu Desnoyers" ); -MODULE_DESCRIPTION ("Linux Trace Toolkit Ftrace Support" ); +MODULE_AUTHOR ("Mathieu Desnoyers <[email protected]>" ); +MODULE_DESCRIPTION ("LTTng ftrace probes" ); MODULE_VERSION(__stringify(LTTNG_MODULES_MAJOR_VERSION) "." __stringify(LTTNG_MODULES_MINOR_VERSION) "." __stringify(LTTNG_MODULES_PATCHLEVEL_VERSION )
probes/lttng-kprobes.c +2 -2
@@ -178,8 +178,8 @@ void lttng_kprobes_destroy_private(struct lttng_event *event)EXPORT_SYMBOL_GPL (lttng_kprobes_destroy_private);MODULE_LICENSE ("GPL and additional rights" ); -MODULE_AUTHOR ("Mathieu Desnoyers" ); -MODULE_DESCRIPTION ("Linux Trace Toolkit Kprobes Support" ); +MODULE_AUTHOR ("Mathieu Desnoyers <[email protected]>" ); +MODULE_DESCRIPTION ("LTTng kprobes probes" ); MODULE_VERSION(__stringify(LTTNG_MODULES_MAJOR_VERSION) "." __stringify(LTTNG_MODULES_MINOR_VERSION) "." __stringify(LTTNG_MODULES_PATCHLEVEL_VERSION )
probes/lttng-kretprobes.c +2 -2
@@ -311,8 +311,8 @@ int lttng_kretprobes_event_enable_state(struct lttng_event *event,EXPORT_SYMBOL_GPL (lttng_kretprobes_event_enable_state);MODULE_LICENSE ("GPL and additional rights" ); -MODULE_AUTHOR ("Mathieu Desnoyers" ); -MODULE_DESCRIPTION ("Linux Trace Toolkit Kretprobes Support" ); +MODULE_AUTHOR ("Mathieu Desnoyers <[email protected]>" ); +MODULE_DESCRIPTION ("LTTng kretprobes probes" ); MODULE_VERSION(__stringify(LTTNG_MODULES_MAJOR_VERSION) "." __stringify(LTTNG_MODULES_MINOR_VERSION) "." __stringify(LTTNG_MODULES_PATCHLEVEL_VERSION )
probes/lttng-probe-asoc.c +3 -1
@@ -42,7 +42,9 @@#include <instrumentation/events/lttng-module/asoc.h> MODULE_LICENSE ("GPL and additional rights" ); -MODULE_AUTHOR ("Wade Farnsworth <[email protected]>, Paul Woegerer <[email protected]>, and Andrew Gabbasov <[email protected]>" ); +MODULE_AUTHOR ("Wade Farnsworth <[email protected]>" ); +MODULE_AUTHOR ("Paul Woegerer <[email protected]>" ); +MODULE_AUTHOR ("Andrew Gabbasov <[email protected]>" );MODULE_DESCRIPTION ("LTTng asoc probes" ); MODULE_VERSION(__stringify(LTTNG_MODULES_MAJOR_VERSION) "." __stringify(LTTNG_MODULES_MINOR_VERSION) "."
probes/lttng-probe-jbd2.c +2 -1
@@ -42,7 +42,8 @@#include <instrumentation/events/lttng-module/jbd2.h> MODULE_LICENSE ("GPL and additional rights" ); -MODULE_AUTHOR ("Wade Farnsworth <[email protected]> and Andrew Gabbasov <[email protected]>" ); +MODULE_AUTHOR ("Wade Farnsworth <[email protected]>" ); +MODULE_AUTHOR ("Andrew Gabbasov <[email protected]>" );MODULE_DESCRIPTION ("LTTng jbd2 probes" ); MODULE_VERSION(__stringify(LTTNG_MODULES_MAJOR_VERSION) "." __stringify(LTTNG_MODULES_MINOR_VERSION) "."
probes/lttng-probe-kmem.c +2 -1
@@ -48,7 +48,8 @@#include <instrumentation/events/lttng-module/kmem.h> MODULE_LICENSE ("GPL and additional rights" ); -MODULE_AUTHOR ("Wade Farnsworth <[email protected]> and Andrew Gabbasov <[email protected]>" ); +MODULE_AUTHOR ("Wade Farnsworth <[email protected]>" ); +MODULE_AUTHOR ("Andrew Gabbasov <[email protected]>" );MODULE_DESCRIPTION ("LTTng kmem probes" ); MODULE_VERSION(__stringify(LTTNG_MODULES_MAJOR_VERSION) "." __stringify(LTTNG_MODULES_MINOR_VERSION) "."
probes/lttng-probe-module.c +2 -1
@@ -42,7 +42,8 @@#include <instrumentation/events/lttng-module/module.h> MODULE_LICENSE ("GPL and additional rights" ); -MODULE_AUTHOR ("Wade Farnsworth <[email protected]> and Andrew Gabbasov <[email protected]>" ); +MODULE_AUTHOR ("Wade Farnsworth <[email protected]>" ); +MODULE_AUTHOR ("Andrew Gabbasov <[email protected]>" );MODULE_DESCRIPTION ("LTTng module probes" ); MODULE_VERSION(__stringify(LTTNG_MODULES_MAJOR_VERSION) "." __stringify(LTTNG_MODULES_MINOR_VERSION) "."
probes/lttng-probe-power.c +2 -1
@@ -42,7 +42,8 @@#include <instrumentation/events/lttng-module/power.h> MODULE_LICENSE ("GPL and additional rights" ); -MODULE_AUTHOR ("Wade Farnsworth <[email protected]> and Andrew Gabbasov <[email protected]>" ); +MODULE_AUTHOR ("Wade Farnsworth <[email protected]>" ); +MODULE_AUTHOR ("Andrew Gabbasov <[email protected]>" );MODULE_DESCRIPTION ("LTTng power probes" ); MODULE_VERSION(__stringify(LTTNG_MODULES_MAJOR_VERSION) "." __stringify(LTTNG_MODULES_MINOR_VERSION) "."
probes/lttng-probe-scsi.c +2 -1
@@ -41,7 +41,8 @@#include <instrumentation/events/lttng-module/scsi.h> MODULE_LICENSE ("GPL and additional rights" ); -MODULE_AUTHOR ("Wade Farnsworth <[email protected]> and Andrew Gabbasov <[email protected]>" ); +MODULE_AUTHOR ("Wade Farnsworth <[email protected]>" ); +MODULE_AUTHOR ("Andrew Gabbasov <[email protected]>" );MODULE_DESCRIPTION ("LTTng scsi probes" ); MODULE_VERSION(__stringify(LTTNG_MODULES_MAJOR_VERSION) "." __stringify(LTTNG_MODULES_MINOR_VERSION) "."
probes/lttng-probe-skb.c +2 -1
@@ -42,7 +42,8 @@#include <instrumentation/events/lttng-module/skb.h> MODULE_LICENSE ("GPL and additional rights" ); -MODULE_AUTHOR ("Wade Farnsworth <[email protected]> and Andrew Gabbasov <[email protected]>" ); +MODULE_AUTHOR ("Wade Farnsworth <[email protected]>" ); +MODULE_AUTHOR ("Andrew Gabbasov <[email protected]>" );MODULE_DESCRIPTION ("LTTng skb probes" ); MODULE_VERSION(__stringify(LTTNG_MODULES_MAJOR_VERSION) "." __stringify(LTTNG_MODULES_MINOR_VERSION) "."
probes/lttng-probe-vmscan.c +3 -1
@@ -42,7 +42,9 @@#include <instrumentation/events/lttng-module/mm_vmscan.h> MODULE_LICENSE ("GPL and additional rights" ); -MODULE_AUTHOR ("Wade Farnsworth <[email protected]>, Paul Woegerer <[email protected]>, and Andrew Gabbasov <[email protected]>" ); +MODULE_AUTHOR ("Wade Farnsworth <[email protected]>" ); +MODULE_AUTHOR ("Paul Woegerer <[email protected]>" ); +MODULE_AUTHOR ("Andrew Gabbasov <[email protected]>" );MODULE_DESCRIPTION ("LTTng vmscan probes" ); MODULE_VERSION(__stringify(LTTNG_MODULES_MAJOR_VERSION) "." __stringify(LTTNG_MODULES_MINOR_VERSION) "."
tests/clock-plugin/lttng-clock-plugin-test.c +5 -0
@@ -23,6 +23,7 @@#include <linux/hrtimer.h> #include <linux/time.h> +#include <lttng-tracer.h> #include <lttng-clock.h> /* From lttng-modules */ static u64 trace_clock_read64_example (void )
@@ -79,3 +80,7 @@ module_exit(lttng_clock_plugin_exit);MODULE_LICENSE ("GPL and additional rights" );MODULE_AUTHOR ("Mathieu Desnoyers <[email protected]>" );MODULE_DESCRIPTION ("LTTng Clock Plugin Example" ); +MODULE_VERSION(__stringify(LTTNG_MODULES_MAJOR_VERSION) "." + __stringify(LTTNG_MODULES_MINOR_VERSION) "." + __stringify(LTTNG_MODULES_PATCHLEVEL_VERSION ) + LTTNG_MODULES_EXTRAVERSION);
Signature · 6 lines
2.17.1 _______________________________________________ lttng-dev mailing list [email protected] https://lists.lttng.org/cgi-bin/mailman/listinfo/lttng-dev
PATCH 3/4 Cleanup: move scripts to subdirectory
In reply to a message not in the archive--- Kbuild.common | 18 ++++++++++-------- README.md | 7 ++++--- .../abi-debian-version.sh | 1 + .../abi-fedora-version.sh | 1 + .../abi-rhel-version.sh | 1 + .../abi-sle-version.sh | 1 + built-in.sh => scripts/built-in.sh | 1 + .../extra-version-git.sh | 0 .../extra-version-name.sh | 0 .../extra-version-patches.sh | 0 .../rt-patch-version.sh | 1 + 11 files changed, 20 insertions(+), 11 deletions(-) rename abi-debian-version.sh => scripts/abi-debian-version.sh (97%) rename abi-fedora-version.sh => scripts/abi-fedora-version.sh (92%) rename abi-rhel-version.sh => scripts/abi-rhel-version.sh (94%) rename abi-sle-version.sh => scripts/abi-sle-version.sh (95%) rename built-in.sh => scripts/built-in.sh (92%) rename extra-version-git.sh => scripts/extra-version-git.sh (100%) rename extra-version-name.sh => scripts/extra-version-name.sh (100%) rename extra-version-patches.sh => scripts/extra-version-patches.sh (100%) rename rt-patch-version.sh => scripts/rt-patch-version.sh (90%)
Kbuild.common +10 -8
@@ -1,52 +1,54 @@ +# SPDX-License-Identifier: (GPL-2.0 OR LGPL-2.1) + # Work-around for distro-specific public modules ABI breakages. # Some distributions break the public module instrumentation ABI # compared to upstream stable kernels without providing other mean than # the kernel EXTRAVERSION to figure it out. Translate this information # into a define visible from the C preprocessor. -DEB_API_VERSION:=$(shell $(TOP_LTTNG_MODULES_DIR)/abi-debian-version.sh $(CURDIR)) +DEB_API_VERSION:=$(shell $(TOP_LTTNG_MODULES_DIR)/scripts/abi-debian-version.sh $(CURDIR)) ifneq ($(DEB_API_VERSION), 0) ccflags-y += -DDEBIAN_API_VERSION=$(DEB_API_VERSION) endif -RHEL_API_VERSION:=$(shell $(TOP_LTTNG_MODULES_DIR)/abi-rhel-version.sh $(CURDIR)) +RHEL_API_VERSION:=$(shell $(TOP_LTTNG_MODULES_DIR)/scripts/abi-rhel-version.sh $(CURDIR)) ifneq ($(RHEL_API_VERSION), 0) ccflags-y += -DRHEL_API_VERSION=$(RHEL_API_VERSION) endif -SLE_API_VERSION:=$(shell $(TOP_LTTNG_MODULES_DIR)/abi-sle-version.sh $(CURDIR)) +SLE_API_VERSION:=$(shell $(TOP_LTTNG_MODULES_DIR)/scripts/abi-sle-version.sh $(CURDIR)) ifneq ($(SLE_API_VERSION), 0) ccflags-y += -DSLE_API_VERSION=$(SLE_API_VERSION) endif -FEDORA_REVISION_VERSION:=$(shell $(TOP_LTTNG_MODULES_DIR)/abi-fedora-version.sh $(CURDIR)) +FEDORA_REVISION_VERSION:=$(shell $(TOP_LTTNG_MODULES_DIR)/scripts/abi-fedora-version.sh $(CURDIR)) ifneq ($(FEDORA_REVISION_VERSION), 0) ccflags-y += -DFEDORA_REVISION_VERSION=$(FEDORA_REVISION_VERSION) endif -RT_PATCH_VERSION:=$(shell $(TOP_LTTNG_MODULES_DIR)/rt-patch-version.sh $(CURDIR)) +RT_PATCH_VERSION:=$(shell $(TOP_LTTNG_MODULES_DIR)/scripts/rt-patch-version.sh $(CURDIR)) ifneq ($(RT_PATCH_VERSION), 0) ccflags-y += -DRT_PATCH_VERSION=$(RT_PATCH_VERSION) endif -EXTRA_VERSION_NAME:=$(shell $(TOP_LTTNG_MODULES_DIR)/extra-version-name.sh $(TOP_LTTNG_MODULES_DIR)) +EXTRA_VERSION_NAME:=$(shell $(TOP_LTTNG_MODULES_DIR)/scripts/extra-version-name.sh $(TOP_LTTNG_MODULES_DIR)) ifneq ($(EXTRA_VERSION_NAME), 0) ccflags-y += -DLTTNG_EXTRA_VERSION_NAME='"$(EXTRA_VERSION_NAME)"' endif -EXTRA_VERSION_GIT:=$(shell $(TOP_LTTNG_MODULES_DIR)/extra-version-git.sh $(TOP_LTTNG_MODULES_DIR)) +EXTRA_VERSION_GIT:=$(shell $(TOP_LTTNG_MODULES_DIR)/scripts/extra-version-git.sh $(TOP_LTTNG_MODULES_DIR)) ifneq ($(EXTRA_VERSION_GIT), 0) ccflags-y += -DLTTNG_EXTRA_VERSION_GIT='"$(EXTRA_VERSION_GIT)"' endif -EXTRA_VERSION_PATCHES:=$(shell $(TOP_LTTNG_MODULES_DIR)/extra-version-patches.sh $(TOP_LTTNG_MODULES_DIR)) +EXTRA_VERSION_PATCHES:=$(shell $(TOP_LTTNG_MODULES_DIR)/scripts/extra-version-patches.sh $(TOP_LTTNG_MODULES_DIR)) # Starting with kernel 4.12, the ftrace header was moved to private headers # and as such is not available when building against distro headers instead
README.md +4 -3
@@ -45,9 +45,10 @@ kernel, do: ### Kernel built-in support It is also possible to build these modules as part of a kernel image. Simply -run the [`built-in.sh`](built-in.sh) script with the path to your kernel -source directory as an argument. It will symlink the lttng-modules directory -in the kernel sources and add an include in the kernel Makefile. +run the [`scripts/built-in.sh`](scripts/built-in.sh) script with the path to +your kernel source directory as an argument. It will symlink the +lttng-modules directory in the kernel sources and add an include in the kernel +Makefile. Then configure your kernel as usual and enable the `CONFIG_LTTNG` option.
scripts/abi-debian-version.sh renamed from abi-debian-version.sh +1 -0
@@ -1,4 +1,5 @@ #!/bin/sh +# SPDX-License-Identifier: (GPL-2.0 OR LGPL-2.1) # First argument is the path to the kernel headers. KPATH="$1"
scripts/abi-fedora-version.sh renamed from abi-fedora-version.sh +1 -0
@@ -1,4 +1,5 @@ #!/bin/sh +# SPDX-License-Identifier: (GPL-2.0 OR LGPL-2.1) # First argument is the path to the kernel headers. KPATH="$1"
scripts/abi-rhel-version.sh renamed from abi-rhel-version.sh +1 -0
@@ -1,4 +1,5 @@ #!/bin/sh +# SPDX-License-Identifier: (GPL-2.0 OR LGPL-2.1) # First argument is the path to the kernel headers. KPATH="$1"
scripts/abi-sle-version.sh renamed from abi-sle-version.sh +1 -0
@@ -1,4 +1,5 @@ #!/bin/sh +# SPDX-License-Identifier: (GPL-2.0 OR LGPL-2.1) # First argument is the path to the kernel headers. KPATH=$1
scripts/built-in.sh renamed from built-in.sh +1 -0
@@ -1,4 +1,5 @@ #!/bin/bash +# SPDX-License-Identifier: (GPL-2.0 OR LGPL-2.1) set -e
scripts/extra-version-git.sh renamed from extra-version-git.sh +0 -0
scripts/extra-version-name.sh renamed from extra-version-name.sh +0 -0
scripts/extra-version-patches.sh renamed from extra-version-patches.sh +0 -0
scripts/rt-patch-version.sh renamed from rt-patch-version.sh +1 -0
@@ -1,4 +1,5 @@ #!/bin/sh +# SPDX-License-Identifier: (GPL-2.0 OR LGPL-2.1) # First argument is the path to the kernel headers. KPATH="$1"
Signature · 6 lines
2.17.1 _______________________________________________ lttng-dev mailing list [email protected] https://lists.lttng.org/cgi-bin/mailman/listinfo/lttng-dev
PATCH 4/4 Cleanup: move to kernel style SPDX license identifiers
In reply to a message not in the archiveThe SPDX identifier is a legally binding shorthand, which can be used instead of the full boiler plate text. According to kernel documentation it has to be inserted on the first or second line of a file.
--- Kconfig | 2 + LICENSE | 15 +- gpl-2.0.txt => LICENSES/GPL-2.0 | 44 +- LICENSES/LGPL-2.1 | 503 +++++++++++++++++ LICENSES/MIT | 30 ++ Makefile | 4 +- filter-bytecode.h | 27 +- instrumentation/events/lttng-module/9p.h | 2 +- .../events/lttng-module/arch/x86/exceptions.h | 1 + .../lttng-module/arch/x86/irq_vectors.h | 1 + .../lttng-module/arch/x86/kvm/mmutrace.h | 1 + .../events/lttng-module/arch/x86/kvm/trace.h | 1 + instrumentation/events/lttng-module/asoc.h | 1 + instrumentation/events/lttng-module/block.h | 1 + instrumentation/events/lttng-module/btrfs.h | 1 + .../events/lttng-module/compaction.h | 1 + instrumentation/events/lttng-module/ext3.h | 1 + instrumentation/events/lttng-module/ext4.h | 1 + instrumentation/events/lttng-module/gpio.h | 1 + instrumentation/events/lttng-module/i2c.h | 1 + instrumentation/events/lttng-module/irq.h | 1 + instrumentation/events/lttng-module/jbd.h | 1 + instrumentation/events/lttng-module/jbd2.h | 1 + instrumentation/events/lttng-module/kmem.h | 1 + instrumentation/events/lttng-module/kvm.h | 1 + instrumentation/events/lttng-module/lock.h | 1 + .../events/lttng-module/lttng-statedump.h | 1 + .../events/lttng-module/lttng-test.h | 1 + instrumentation/events/lttng-module/lttng.h | 1 + .../events/lttng-module/mm_vmscan.h | 1 + instrumentation/events/lttng-module/module.h | 1 + instrumentation/events/lttng-module/napi.h | 1 + instrumentation/events/lttng-module/net.h | 1 + instrumentation/events/lttng-module/power.h | 1 + .../events/lttng-module/preemptirq.h | 1 + instrumentation/events/lttng-module/printk.h | 1 + instrumentation/events/lttng-module/random.h | 1 + instrumentation/events/lttng-module/rcu.h | 1 + instrumentation/events/lttng-module/regmap.h | 1 + .../events/lttng-module/regulator.h | 1 + instrumentation/events/lttng-module/rpc.h | 1 + instrumentation/events/lttng-module/rpm.h | 2 +- instrumentation/events/lttng-module/sched.h | 1 + instrumentation/events/lttng-module/scsi.h | 1 + instrumentation/events/lttng-module/signal.h | 1 + instrumentation/events/lttng-module/skb.h | 1 + instrumentation/events/lttng-module/sock.h | 1 + instrumentation/events/lttng-module/timer.h | 1 + instrumentation/events/lttng-module/udp.h | 1 + instrumentation/events/lttng-module/v4l2.h | 1 + .../events/lttng-module/workqueue.h | 1 + .../events/lttng-module/writeback.h | 1 + .../syscalls/lttng-syscalls-extractor/Kbuild | 2 + .../lttng-syscalls-extractor.c | 17 +- lgpl-2.1.txt | 504 ------------------ lib/Kbuild | 2 + lib/align.h | 23 +- lib/bitfield.h | 27 +- lib/bug.h | 23 +- lib/prio_heap/lttng_prio_heap.c | 21 +- lib/prio_heap/lttng_prio_heap.h | 27 +- lib/ringbuffer/api.h | 23 +- lib/ringbuffer/backend.h | 23 +- lib/ringbuffer/backend_internal.h | 23 +- lib/ringbuffer/backend_types.h | 23 +- lib/ringbuffer/config.h | 23 +- lib/ringbuffer/frontend.h | 26 +- lib/ringbuffer/frontend_api.h | 26 +- lib/ringbuffer/frontend_internal.h | 26 +- lib/ringbuffer/frontend_types.h | 26 +- lib/ringbuffer/iterator.h | 26 +- lib/ringbuffer/nohz.h | 23 +- lib/ringbuffer/ring_buffer_backend.c | 17 +- lib/ringbuffer/ring_buffer_frontend.c | 18 +- lib/ringbuffer/ring_buffer_iterator.c | 20 +- lib/ringbuffer/ring_buffer_mmap.c | 18 +- lib/ringbuffer/ring_buffer_splice.c | 19 +- lib/ringbuffer/ring_buffer_vfs.c | 17 +- lib/ringbuffer/vatomic.h | 23 +- lib/ringbuffer/vfs.h | 26 +- lttng-abi-old.h | 23 +- lttng-abi.c | 18 +- lttng-abi.h | 23 +- lttng-calibrate.c | 17 +- lttng-clock.c | 17 +- lttng-clock.h | 23 +- lttng-context-callstack.c | 17 +- lttng-context-cpu-id.c | 17 +- lttng-context-hostname.c | 17 +- lttng-context-interruptible.c | 17 +- lttng-context-migratable.c | 17 +- lttng-context-need-reschedule.c | 17 +- lttng-context-nice.c | 17 +- lttng-context-perf-counters.c | 17 +- lttng-context-pid.c | 17 +- lttng-context-ppid.c | 17 +- lttng-context-preemptible.c | 17 +- lttng-context-prio.c | 17 +- lttng-context-procname.c | 17 +- lttng-context-tid.c | 17 +- lttng-context-vpid.c | 17 +- lttng-context-vppid.c | 17 +- lttng-context-vtid.c | 17 +- lttng-context.c | 17 +- lttng-cpuhotplug.h | 23 +- lttng-endian.h | 15 +- lttng-events.c | 17 +- lttng-events.h | 23 +- lttng-filter-interpreter.c | 21 +- lttng-filter-specialize.c | 21 +- lttng-filter-validator.c | 21 +- lttng-filter.c | 21 +- lttng-filter.h | 27 +- lttng-kernel-version.h | 23 +- lttng-probes.c | 17 +- lttng-ring-buffer-client-discard.c | 17 +- lttng-ring-buffer-client-mmap-discard.c | 17 +- lttng-ring-buffer-client-mmap-overwrite.c | 17 +- lttng-ring-buffer-client-overwrite.c | 17 +- lttng-ring-buffer-client.h | 17 +- lttng-ring-buffer-metadata-client.c | 17 +- lttng-ring-buffer-metadata-client.h | 17 +- lttng-ring-buffer-metadata-mmap-client.c | 17 +- lttng-statedump-impl.c | 17 +- lttng-string-utils.c | 17 +- lttng-string-utils.h | 15 +- lttng-syscalls.c | 17 +- lttng-tp-mempool.c | 17 +- lttng-tp-mempool.h | 23 +- lttng-tracepoint.c | 17 +- lttng-tracepoint.h | 23 +- lttng-tracer-core.h | 23 +- lttng-tracer.h | 15 +- lttng-tracker-pid.c | 17 +- mit-license.txt | 19 - probes/Kbuild | 2 + probes/define_trace.h | 17 +- probes/lttng-events-nowrite.h | 17 +- probes/lttng-events-reset.h | 17 +- probes/lttng-events-write.h | 17 +- probes/lttng-ftrace.c | 17 +- probes/lttng-kprobes.c | 17 +- probes/lttng-kretprobes.c | 19 +- probes/lttng-probe-9p.c | 5 +- probes/lttng-probe-asoc.c | 17 +- probes/lttng-probe-block.c | 17 +- probes/lttng-probe-btrfs.c | 17 +- probes/lttng-probe-compaction.c | 17 +- probes/lttng-probe-ext3.c | 17 +- probes/lttng-probe-ext4.c | 17 +- probes/lttng-probe-gpio.c | 17 +- probes/lttng-probe-i2c.c | 17 +- probes/lttng-probe-irq.c | 17 +- probes/lttng-probe-jbd.c | 17 +- probes/lttng-probe-jbd2.c | 17 +- probes/lttng-probe-kmem.c | 17 +- probes/lttng-probe-kvm-x86-mmu.c | 17 +- probes/lttng-probe-kvm-x86.c | 17 +- probes/lttng-probe-kvm.c | 17 +- probes/lttng-probe-lock.c | 17 +- probes/lttng-probe-module.c | 17 +- probes/lttng-probe-napi.c | 17 +- probes/lttng-probe-net.c | 17 +- probes/lttng-probe-power.c | 17 +- probes/lttng-probe-preemptirq.c | 17 +- probes/lttng-probe-printk.c | 17 +- probes/lttng-probe-random.c | 17 +- probes/lttng-probe-rcu.c | 17 +- probes/lttng-probe-regmap.c | 17 +- probes/lttng-probe-regulator.c | 17 +- probes/lttng-probe-rpm.c | 17 +- probes/lttng-probe-sched.c | 17 +- probes/lttng-probe-scsi.c | 17 +- probes/lttng-probe-signal.c | 17 +- probes/lttng-probe-skb.c | 17 +- probes/lttng-probe-sock.c | 17 +- probes/lttng-probe-statedump.c | 17 +- probes/lttng-probe-sunrpc.c | 17 +- probes/lttng-probe-timer.c | 17 +- probes/lttng-probe-udp.c | 17 +- probes/lttng-probe-user.c | 17 +- probes/lttng-probe-user.h | 23 +- probes/lttng-probe-v4l2.c | 17 +- probes/lttng-probe-vmscan.c | 17 +- probes/lttng-probe-workqueue.c | 17 +- probes/lttng-probe-writeback.c | 17 +- probes/lttng-probe-x86-exceptions.c | 17 +- probes/lttng-probe-x86-irq-vectors.c | 17 +- probes/lttng-tracepoint-event-impl.h | 17 +- probes/lttng-tracepoint-event.h | 23 +- probes/lttng-types.h | 31 +- probes/lttng.c | 17 +- probes/lttng.h | 23 +- tests/Kbuild | 2 + tests/Kconfig | 2 + tests/clock-plugin/lttng-clock-plugin-test.c | 17 +- tests/probes/lttng-test.c | 17 +- wrapper/atomic.h | 23 +- wrapper/compiler.h | 23 +- wrapper/fdtable.c | 16 +- wrapper/fdtable.h | 23 +- wrapper/file.h | 23 +- wrapper/frame.h | 23 +- wrapper/ftrace.h | 23 +- wrapper/genhd.h | 23 +- wrapper/inline_memcpy.h | 17 +- wrapper/irq.h | 23 +- wrapper/irqdesc.c | 17 +- wrapper/irqdesc.h | 23 +- wrapper/irqflags.h | 23 +- wrapper/kallsyms.h | 23 +- wrapper/kref.h | 22 +- wrapper/kstrtox.h | 23 +- wrapper/list.h | 22 +- wrapper/page_alloc.c | 16 +- wrapper/page_alloc.h | 23 +- wrapper/percpu-defs.h | 23 +- wrapper/perf.h | 23 +- wrapper/poll.h | 23 +- wrapper/random.c | 17 +- wrapper/random.h | 23 +- wrapper/rcu.h | 23 +- wrapper/ringbuffer/api.h | 1 + wrapper/ringbuffer/backend.h | 1 + wrapper/ringbuffer/backend_internal.h | 1 + wrapper/ringbuffer/backend_types.h | 1 + wrapper/ringbuffer/config.h | 1 + wrapper/ringbuffer/frontend.h | 1 + wrapper/ringbuffer/frontend_api.h | 1 + wrapper/ringbuffer/frontend_internal.h | 1 + wrapper/ringbuffer/frontend_types.h | 1 + wrapper/ringbuffer/iterator.h | 1 + wrapper/ringbuffer/nohz.h | 1 + wrapper/ringbuffer/vatomic.h | 1 + wrapper/ringbuffer/vfs.h | 1 + wrapper/spinlock.h | 23 +- wrapper/splice.c | 17 +- wrapper/splice.h | 23 +- wrapper/time.h | 23 +- wrapper/timer.h | 23 +- wrapper/trace-clock.c | 17 +- wrapper/trace-clock.h | 23 +- wrapper/tracepoint.h | 23 +- wrapper/types.h | 23 +- wrapper/uuid.h | 23 +- wrapper/vmalloc.h | 23 +- wrapper/vzalloc.h | 23 +- wrapper/writeback.h | 23 +- 248 files changed, 1188 insertions(+), 3440 deletions(-) rename gpl-2.0.txt => LICENSES/GPL-2.0 (93%) create mode 100644 LICENSES/LGPL-2.1 create mode 100644 LICENSES/MIT delete mode 100644 lgpl-2.1.txt delete mode 100644 mit-license.txt
Kconfig +2 -0
@@ -1,3 +1,5 @@ +# SPDX-License-Identifier: (GPL-2.0 or LGPL-2.1) + config LTTNG tristate "LTTng support" select TRACEPOINTS
LICENSE +7 -8
@@ -2,26 +2,25 @@ LTTng modules licensing Mathieu Desnoyers June 2, 2011 -* LGPLv2.1/GPLv2 dual-license +* LGPL-2.1 / GPL-2.0 dual-license The files contained within this package are licensed under -LGPLv2.1/GPLv2 dual-license (see lgpl-2.1.txt and gpl-2.0.txt for +LGPL-2.1 / GPL-2.0 dual-license (see LICENSES/LGPL-2.1 and LICENSES/GPL-2.0 for details), except for files identified by the following sections. -* GPLv2 license +* GPL-2.0 license -These files are licensed exclusively under the GPLv2 license. See -gpl-2.0.txt for details. +These files are licensed exclusively under the GPL-2.0 license. See +LICENSES/GPL-2.0 for details. lib/ringbuffer/ring_buffer_splice.c lib/ringbuffer/ring_buffer_mmap.c -instrumentation/events/mainline/*.h -instrumentation/events/lttng-modules/*.h +instrumentation/events/lttng-module/*.h wrapper/list.h * MIT-style license -These files are licensed under an MIT-style license. See mit-license.txt +These files are licensed under an MIT-style license. See LICENSES/MIT for details. lib/prio_heap/lttng_prio_heap.h
LICENSES/GPL-2.0 renamed from gpl-2.0.txt +32 -12
96 lines not on this page · raw message
LICENSES/LGPL-2.1 new file +503 -0
503 lines not on this page · raw message
LICENSES/MIT new file +30 -0
@@ -0,0 +1,30 @@ +Valid-License-Identifier: MIT +SPDX-URL: https://spdx.org/licenses/MIT.html +Usage-Guide: + To use the MIT License put the following SPDX tag/value pair into a + comment according to the placement guidelines in the licensing rules + documentation: + SPDX-License-Identifier: MIT +License-Text: + +MIT License + +Copyright (c) <year> <copyright holders> + +Permission is hereby granted, free of charge, to any person obtaining a +copy of this software and associated documentation files (the "Software"), +to deal in the Software without restriction, including without limitation +the rights to use, copy, modify, merge, publish, distribute, sublicense, +and/or sell copies of the Software, and to permit persons to whom the +Software is furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in +all copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING +FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER +DEALINGS IN THE SOFTWARE.
Makefile +1 -3
@@ -1,6 +1,4 @@ -# -# Makefile for the LTT objects. -# +# SPDX-License-Identifier: (GPL-2.0 or LGPL-2.1) ifneq ($(KERNELRELEASE),)
filter-bytecode.h +5 -22
@@ -1,32 +1,15 @@ -#ifndef _FILTER_BYTECODE_H -#define _FILTER_BYTECODE_H - -/* +/* SPDX-License-Identifier: MIT +* * filter-bytecode.h * * LTTng filter bytecode * * Copyright 2012-2016 - Mathieu Desnoyers <[email protected]> -* -* Permission is hereby granted, free of charge, to any person obtaining a copy -* of this software and associated documentation files (the "Software"), to deal -* in the Software without restriction, including without limitation the rights -* to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -* copies of the Software, and to permit persons to whom the Software is -* furnished to do so, subject to the following conditions: -* -* The above copyright notice and this permission notice shall be included in -* all copies or substantial portions of the Software. -* -* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE -* SOFTWARE. */ +#ifndef _FILTER_BYTECODE_H +#define _FILTER_BYTECODE_H +/* * offsets are absolute from start of bytecode. */
instrumentation/events/lttng-module/9p.h +1 -1
@@ -1,4 +1,4 @@ -/* SPDX-License-Identifier: (GPL-2.0 OR LGPL-2.1) */ +/* SPDX-License-Identifier: GPL-2.0 */ #undef TRACE_SYSTEM#define TRACE_SYSTEM 9p
instrumentation/events/lttng-module/arch/x86/exceptions.h +1 -0
@@ -1,3 +1,4 @@ +/* SPDX-License-Identifier: GPL-2.0 */ #if !defined(LTTNG_TRACE_EXCEPTIONS_H ) || defined(TRACE_HEADER_MULTI_READ )#define LTTNG_TRACE_EXCEPTIONS_H
instrumentation/events/lttng-module/arch/x86/irq_vectors.h +1 -0
@@ -1,3 +1,4 @@ +/* SPDX-License-Identifier: GPL-2.0 */ #if !defined(LTTNG_TRACE_IRQ_VECTORS_H ) || defined(TRACE_HEADER_MULTI_READ )#define LTTNG_TRACE_IRQ_VECTORS_H
instrumentation/events/lttng-module/arch/x86/kvm/mmutrace.h +1 -0
@@ -1,3 +1,4 @@ +/* SPDX-License-Identifier: GPL-2.0 */ #if !defined(LTTNG_TRACE_KVM_MMU_H ) || defined(TRACE_HEADER_MULTI_READ )#define LTTNG_TRACE_KVM_MMU_H
instrumentation/events/lttng-module/arch/x86/kvm/trace.h +1 -0
@@ -1,3 +1,4 @@ +/* SPDX-License-Identifier: GPL-2.0 */ #if !defined(LTTNG_TRACE_KVM_H ) || defined(TRACE_HEADER_MULTI_READ )#define LTTNG_TRACE_KVM_H
instrumentation/events/lttng-module/asoc.h +1 -0
@@ -1,3 +1,4 @@ +/* SPDX-License-Identifier: GPL-2.0 */ #undef TRACE_SYSTEM#define TRACE_SYSTEM asoc
instrumentation/events/lttng-module/block.h +1 -0
@@ -1,3 +1,4 @@ +/* SPDX-License-Identifier: GPL-2.0 */ #undef TRACE_SYSTEM#define TRACE_SYSTEM block
instrumentation/events/lttng-module/btrfs.h +1 -0
@@ -1,3 +1,4 @@ +/* SPDX-License-Identifier: GPL-2.0 */ #undef TRACE_SYSTEM#define TRACE_SYSTEM btrfs
instrumentation/events/lttng-module/compaction.h +1 -0
@@ -1,3 +1,4 @@ +/* SPDX-License-Identifier: GPL-2.0 */ #undef TRACE_SYSTEM#define TRACE_SYSTEM compaction
instrumentation/events/lttng-module/ext3.h +1 -0
@@ -1,3 +1,4 @@ +/* SPDX-License-Identifier: GPL-2.0 */ #undef TRACE_SYSTEM#define TRACE_SYSTEM ext3
instrumentation/events/lttng-module/ext4.h +1 -0
@@ -1,3 +1,4 @@ +/* SPDX-License-Identifier: GPL-2.0 */ #undef TRACE_SYSTEM#define TRACE_SYSTEM ext4
instrumentation/events/lttng-module/gpio.h +1 -0
@@ -1,3 +1,4 @@ +/* SPDX-License-Identifier: GPL-2.0 */ #undef TRACE_SYSTEM#define TRACE_SYSTEM gpio
instrumentation/events/lttng-module/i2c.h +1 -0
@@ -1,3 +1,4 @@ +/* SPDX-License-Identifier: GPL-2.0 */ #undef TRACE_SYSTEM#define TRACE_SYSTEM i2c
instrumentation/events/lttng-module/irq.h +1 -0
@@ -1,3 +1,4 @@ +/* SPDX-License-Identifier: GPL-2.0 */ #undef TRACE_SYSTEM#define TRACE_SYSTEM irq
instrumentation/events/lttng-module/jbd.h +1 -0
@@ -1,3 +1,4 @@ +/* SPDX-License-Identifier: GPL-2.0 */ #undef TRACE_SYSTEM#define TRACE_SYSTEM jbd
instrumentation/events/lttng-module/jbd2.h +1 -0
@@ -1,3 +1,4 @@ +/* SPDX-License-Identifier: GPL-2.0 */ #undef TRACE_SYSTEM#define TRACE_SYSTEM jbd2
instrumentation/events/lttng-module/kmem.h +1 -0
@@ -1,3 +1,4 @@ +/* SPDX-License-Identifier: GPL-2.0 */ #undef TRACE_SYSTEM#define TRACE_SYSTEM kmem
instrumentation/events/lttng-module/kvm.h +1 -0
@@ -1,3 +1,4 @@ +/* SPDX-License-Identifier: GPL-2.0 */ #if !defined(LTTNG_TRACE_KVM_MAIN_H ) || defined(TRACE_HEADER_MULTI_READ )#define LTTNG_TRACE_KVM_MAIN_H
instrumentation/events/lttng-module/lock.h +1 -0
@@ -1,3 +1,4 @@ +/* SPDX-License-Identifier: GPL-2.0 */ #include <linux/version.h> #undef TRACE_SYSTEM
instrumentation/events/lttng-module/lttng-statedump.h +1 -0
@@ -1,3 +1,4 @@ +/* SPDX-License-Identifier: GPL-2.0 */ #undef TRACE_SYSTEM#define TRACE_SYSTEM lttng_statedump
instrumentation/events/lttng-module/lttng-test.h +1 -0
@@ -1,3 +1,4 @@ +/* SPDX-License-Identifier: GPL-2.0 */ #undef TRACE_SYSTEM#define TRACE_SYSTEM lttng_test
instrumentation/events/lttng-module/lttng.h +1 -0
@@ -1,3 +1,4 @@ +/* SPDX-License-Identifier: GPL-2.0 */ #undef TRACE_SYSTEM#define TRACE_SYSTEM lttng
instrumentation/events/lttng-module/mm_vmscan.h +1 -0
@@ -1,3 +1,4 @@ +/* SPDX-License-Identifier: GPL-2.0 */ #undef TRACE_SYSTEM#define TRACE_SYSTEM mm_vmscan
instrumentation/events/lttng-module/module.h +1 -0
@@ -1,3 +1,4 @@ +/* SPDX-License-Identifier: GPL-2.0 */ /* * Because linux/module.h has tracepoints in the header, and ftrace.h * eventually includes this file, define_trace.h includes linux/module.h
instrumentation/events/lttng-module/napi.h +1 -0
@@ -1,3 +1,4 @@ +/* SPDX-License-Identifier: GPL-2.0 */ #undef TRACE_SYSTEM#define TRACE_SYSTEM napi
instrumentation/events/lttng-module/net.h +1 -0
@@ -1,3 +1,4 @@ +/* SPDX-License-Identifier: GPL-2.0 */ #undef TRACE_SYSTEM#define TRACE_SYSTEM net
instrumentation/events/lttng-module/power.h +1 -0
@@ -1,3 +1,4 @@ +/* SPDX-License-Identifier: GPL-2.0 */ #undef TRACE_SYSTEM#define TRACE_SYSTEM power
instrumentation/events/lttng-module/preemptirq.h +1 -0
@@ -1,3 +1,4 @@ +/* SPDX-License-Identifier: GPL-2.0 */ #ifdef CONFIG_PREEMPTIRQ_EVENTS #undef TRACE_SYSTEM
instrumentation/events/lttng-module/printk.h +1 -0
@@ -1,3 +1,4 @@ +/* SPDX-License-Identifier: GPL-2.0 */ #undef TRACE_SYSTEM#define TRACE_SYSTEM printk
instrumentation/events/lttng-module/random.h +1 -0
@@ -1,3 +1,4 @@ +/* SPDX-License-Identifier: GPL-2.0 */ #undef TRACE_SYSTEM#define TRACE_SYSTEM random
instrumentation/events/lttng-module/rcu.h +1 -0
@@ -1,3 +1,4 @@ +/* SPDX-License-Identifier: GPL-2.0 */ #undef TRACE_SYSTEM#define TRACE_SYSTEM rcu
instrumentation/events/lttng-module/regmap.h +1 -0
@@ -1,3 +1,4 @@ +/* SPDX-License-Identifier: GPL-2.0 */ #undef TRACE_SYSTEM#define TRACE_SYSTEM regmap
instrumentation/events/lttng-module/regulator.h +1 -0
@@ -1,3 +1,4 @@ +/* SPDX-License-Identifier: GPL-2.0 */ #undef TRACE_SYSTEM#define TRACE_SYSTEM regulator
instrumentation/events/lttng-module/rpc.h +1 -0
@@ -1,3 +1,4 @@ +/* SPDX-License-Identifier: GPL-2.0 */ #undef TRACE_SYSTEM#define TRACE_SYSTEM rpc
instrumentation/events/lttng-module/rpm.h +1 -1
@@ -1,4 +1,4 @@ - +/* SPDX-License-Identifier: GPL-2.0 */ #undef TRACE_SYSTEM#define TRACE_SYSTEM rpm
instrumentation/events/lttng-module/sched.h +1 -0
@@ -1,3 +1,4 @@ +/* SPDX-License-Identifier: GPL-2.0 */ #undef TRACE_SYSTEM#define TRACE_SYSTEM sched
instrumentation/events/lttng-module/scsi.h +1 -0
@@ -1,3 +1,4 @@ +/* SPDX-License-Identifier: GPL-2.0 */ #undef TRACE_SYSTEM#define TRACE_SYSTEM scsi
instrumentation/events/lttng-module/signal.h +1 -0
@@ -1,3 +1,4 @@ +/* SPDX-License-Identifier: GPL-2.0 */ #undef TRACE_SYSTEM#define TRACE_SYSTEM signal
instrumentation/events/lttng-module/skb.h +1 -0
@@ -1,3 +1,4 @@ +/* SPDX-License-Identifier: GPL-2.0 */ #undef TRACE_SYSTEM#define TRACE_SYSTEM skb
instrumentation/events/lttng-module/sock.h +1 -0
@@ -1,3 +1,4 @@ +/* SPDX-License-Identifier: GPL-2.0 */ #undef TRACE_SYSTEM#define TRACE_SYSTEM sock
instrumentation/events/lttng-module/timer.h +1 -0
@@ -1,3 +1,4 @@ +/* SPDX-License-Identifier: GPL-2.0 */ #undef TRACE_SYSTEM#define TRACE_SYSTEM timer
instrumentation/events/lttng-module/udp.h +1 -0
@@ -1,3 +1,4 @@ +/* SPDX-License-Identifier: GPL-2.0 */ #undef TRACE_SYSTEM#define TRACE_SYSTEM udp
instrumentation/events/lttng-module/v4l2.h +1 -0
@@ -1,3 +1,4 @@ +/* SPDX-License-Identifier: GPL-2.0 */ #undef TRACE_SYSTEM#define TRACE_SYSTEM v4l2
instrumentation/events/lttng-module/workqueue.h +1 -0
@@ -1,3 +1,4 @@ +/* SPDX-License-Identifier: GPL-2.0 */ #undef TRACE_SYSTEM#define TRACE_SYSTEM workqueue
instrumentation/events/lttng-module/writeback.h +1 -0
@@ -1,3 +1,4 @@ +/* SPDX-License-Identifier: GPL-2.0 */ #undef TRACE_SYSTEM#define TRACE_SYSTEM writeback
instrumentation/syscalls/lttng-syscalls-extractor/Kbuild +2 -0
@@ -1,3 +1,5 @@ +# SPDX-License-Identifier: (GPL-2.0 or LGPL-2.1) + obj-m += lttng-syscalls-extractor.o # vim:syntax=make
instrumentation/syscalls/lttng-syscalls-extractor/lttng-syscalls-extractor.c +2 -15
@@ -1,24 +1,11 @@ -/* +/* SPDX-License-Identifier: (GPL-2.0 or LGPL-2.1) +* * lttng-syscalls-extractor.c * * Dump syscall metadata to console. * * Copyright 2011 - Mathieu Desnoyers <[email protected]> * Copyright 2011 - Julien Desfossez <[email protected]> -* -* This program is free software; you can redistribute it and/or modify -* it under the terms of the GNU General Public License as published by -* the Free Software Foundation; either version 2 of the License, or -* (at your option) any later version. -* -* This program 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 General Public License for more details. -* -* You should have received a copy of the GNU General Public License along -* with this program; if not, write to the Free Software Foundation, Inc., -* 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. */ #include <linux/module.h>
lgpl-2.1.txt deleted +0 -504
504 lines not on this page · raw message
lib/Kbuild +2 -0
@@ -1,3 +1,5 @@ +# SPDX-License-Identifier: (GPL-2.0 or LGPL-2.1) + TOP_LTTNG_MODULES_DIR := $(shell dirname $(lastword $(MAKEFILE_LIST)))/.. include $(TOP_LTTNG_MODULES_DIR)/Kbuild.common
lib/align.h +5 -18
@@ -1,26 +1,13 @@ -#ifndef _LTTNG_ALIGN_H -#define _LTTNG_ALIGN_H - -/* +/* SPDX-License-Identifier: (GPL-2.0 or LGPL-2.1) +* * lib/align.h * * Copyright (C) 2010-2012 Mathieu Desnoyers <[email protected]> -* -* 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 */ +#ifndef _LTTNG_ALIGN_H +#define _LTTNG_ALIGN_H +#ifdef __KERNEL__#include <linux/types.h>
lib/bitfield.h +5 -22
@@ -1,32 +1,15 @@ -#ifndef _BABELTRACE_BITFIELD_H -#define _BABELTRACE_BITFIELD_H - -/* +/* SPDX-License-Identifier: MIT +* * BabelTrace * * Bitfields read/write functions. * * Copyright 2010 - Mathieu Desnoyers <[email protected]> -* -* Permission is hereby granted, free of charge, to any person obtaining a copy -* of this software and associated documentation files (the "Software"), to deal -* in the Software without restriction, including without limitation the rights -* to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -* copies of the Software, and to permit persons to whom the Software is -* furnished to do so, subject to the following conditions: -* -* The above copyright notice and this permission notice shall be included in -* all copies or substantial portions of the Software. -* -* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE -* SOFTWARE. */ +#ifndef _BABELTRACE_BITFIELD_H +#define _BABELTRACE_BITFIELD_H +#include <lttng-endian.h> #ifndef CHAR_BIT
lib/bug.h +5 -18
@@ -1,26 +1,13 @@ -#ifndef _LTTNG_BUG_H -#define _LTTNG_BUG_H - -/* +/* SPDX-License-Identifier: (GPL-2.0 or LGPL-2.1) +* * lib/bug.h * * Copyright (C) 2010-2012 Mathieu Desnoyers <[email protected]> -* -* 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 */ +#ifndef _LTTNG_BUG_H +#define _LTTNG_BUG_H +#include <linux/version.h> #if (LINUX_VERSION_CODE >=KERNEL_VERSION (2 ,6 ,38 ))
lib/prio_heap/lttng_prio_heap.c +2 -19
@@ -1,27 +1,10 @@ -/* +/* SPDX-License-Identifier: MIT +* * lttng_prio_heap.c * * Priority heap containing pointers. Based on CLRS, chapter 6. * * Copyright 2011 - Mathieu Desnoyers <[email protected]> -* -* Permission is hereby granted, free of charge, to any person obtaining a copy -* of this software and associated documentation files (the "Software"), to deal -* in the Software without restriction, including without limitation the rights -* to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -* copies of the Software, and to permit persons to whom the Software is -* furnished to do so, subject to the following conditions: -* -* The above copyright notice and this permission notice shall be included in -* all copies or substantial portions of the Software. -* -* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE -* SOFTWARE. */ #include <linux/slab.h>
lib/prio_heap/lttng_prio_heap.h +5 -22
@@ -1,32 +1,15 @@ -#ifndef _LTTNG_PRIO_HEAP_H -#define _LTTNG_PRIO_HEAP_H - -/* +/* SPDX-License-Identifier: MIT +* * lttng_prio_heap.h * * Priority heap containing pointers. Based on CLRS, chapter 6. * * Copyright 2011 - Mathieu Desnoyers <[email protected]> -* -* Permission is hereby granted, free of charge, to any person obtaining a copy -* of this software and associated documentation files (the "Software"), to deal -* in the Software without restriction, including without limitation the rights -* to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -* copies of the Software, and to permit persons to whom the Software is -* furnished to do so, subject to the following conditions: -* -* The above copyright notice and this permission notice shall be included in -* all copies or substantial portions of the Software. -* -* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE -* SOFTWARE. */ +#ifndef _LTTNG_PRIO_HEAP_H +#define _LTTNG_PRIO_HEAP_H +#include <linux/gfp.h> struct lttng_ptr_heap {
lib/ringbuffer/api.h +5 -18
@@ -1,28 +1,15 @@ -#ifndef _LIB_RING_BUFFER_API_H -#define _LIB_RING_BUFFER_API_H - -/* +/* SPDX-License-Identifier: (GPL-2.0 OR LGPL-2.1) +* * lib/ringbuffer/api.h * * Ring Buffer API. * * Copyright (C) 2010-2012 Mathieu Desnoyers <[email protected]> -* -* 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 */ +#ifndef _LIB_RING_BUFFER_API_H +#define _LIB_RING_BUFFER_API_H +#include <wrapper/ringbuffer/backend.h> #include <wrapper/ringbuffer/frontend.h> #include <wrapper/ringbuffer/vfs.h>
lib/ringbuffer/backend.h +5 -18
@@ -1,31 +1,18 @@ -#ifndef _LIB_RING_BUFFER_BACKEND_H -#define _LIB_RING_BUFFER_BACKEND_H - -/* +/* SPDX-License-Identifier: (GPL-2.0 OR LGPL-2.1) +* * lib/ringbuffer/backend.h * * Ring buffer backend (API). * * Copyright (C) 2010-2012 Mathieu Desnoyers <[email protected]> * -* 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 -* * Credits to Steven Rostedt for proposing to use an extra-subbuffer owned by * the reader in flight recorder mode. */ +#ifndef _LIB_RING_BUFFER_BACKEND_H +#define _LIB_RING_BUFFER_BACKEND_H +#include <linux/types.h> #include <linux/sched.h> #include <linux/timer.h>
lib/ringbuffer/backend_internal.h +5 -18
@@ -1,28 +1,15 @@ -#ifndef _LIB_RING_BUFFER_BACKEND_INTERNAL_H -#define _LIB_RING_BUFFER_BACKEND_INTERNAL_H - -/* +/* SPDX-License-Identifier: (GPL-2.0 OR LGPL-2.1) +* * lib/ringbuffer/backend_internal.h * * Ring buffer backend (internal helpers). * * Copyright (C) 2008-2012 Mathieu Desnoyers <[email protected]> -* -* 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 */ +#ifndef _LIB_RING_BUFFER_BACKEND_INTERNAL_H +#define _LIB_RING_BUFFER_BACKEND_INTERNAL_H +#include <wrapper/compiler.h> #include <wrapper/ringbuffer/config.h> #include <wrapper/ringbuffer/backend_types.h>
lib/ringbuffer/backend_types.h +5 -18
@@ -1,28 +1,15 @@ -#ifndef _LIB_RING_BUFFER_BACKEND_TYPES_H -#define _LIB_RING_BUFFER_BACKEND_TYPES_H - -/* +/* SPDX-License-Identifier: (GPL-2.0 OR LGPL-2.1) +* * lib/ringbuffer/backend_types.h * * Ring buffer backend (types). * * Copyright (C) 2008-2012 Mathieu Desnoyers <[email protected]> -* -* 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 */ +#ifndef _LIB_RING_BUFFER_BACKEND_TYPES_H +#define _LIB_RING_BUFFER_BACKEND_TYPES_H +#include <linux/cpumask.h> #include <linux/types.h> #include <lttng-kernel-version.h>
lib/ringbuffer/config.h +5 -18
@@ -1,29 +1,16 @@ -#ifndef _LIB_RING_BUFFER_CONFIG_H -#define _LIB_RING_BUFFER_CONFIG_H - -/* +/* SPDX-License-Identifier: (GPL-2.0 OR LGPL-2.1) +* * lib/ringbuffer/config.h * * Ring buffer configuration header. Note: after declaring the standard inline * functions, clients should also include linux/ringbuffer/api.h. * * Copyright (C) 2010-2012 Mathieu Desnoyers <[email protected]> -* -* 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 */ +#ifndef _LIB_RING_BUFFER_CONFIG_H +#define _LIB_RING_BUFFER_CONFIG_H +#include <linux/types.h> #include <linux/percpu.h> #include <lib/align.h>
lib/ringbuffer/frontend.h +5 -21
@@ -1,33 +1,17 @@ -#ifndef _LIB_RING_BUFFER_FRONTEND_H -#define _LIB_RING_BUFFER_FRONTEND_H - -/* +/* SPDX-License-Identifier: (GPL-2.0 OR LGPL-2.1) +* * lib/ringbuffer/frontend.h * * Ring Buffer Library Synchronization Header (API). * * Copyright (C) 2005-2012 Mathieu Desnoyers <[email protected]> * -* 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 -* -* Author: -* Mathieu Desnoyers <[email protected]> -* * See ring_buffer_frontend.c for more information on wait-free algorithms. */ +#ifndef _LIB_RING_BUFFER_FRONTEND_H +#define _LIB_RING_BUFFER_FRONTEND_H +#include <linux/pipe_fs_i.h> #include <linux/rcupdate.h> #include <linux/cpumask.h>
lib/ringbuffer/frontend_api.h +5 -21
@@ -1,34 +1,18 @@ -#ifndef _LIB_RING_BUFFER_FRONTEND_API_H -#define _LIB_RING_BUFFER_FRONTEND_API_H - -/* +/* SPDX-License-Identifier: (GPL-2.0 OR LGPL-2.1) +* * lib/ringbuffer/frontend_api.h * * Ring Buffer Library Synchronization Header (buffer write API). * * Copyright (C) 2005-2012 Mathieu Desnoyers <[email protected]> * -* 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 -* -* Author: -* Mathieu Desnoyers <[email protected]> -* * See ring_buffer_frontend.c for more information on wait-free algorithms. * See linux/ringbuffer/frontend.h for channel allocation and read-side API. */ +#ifndef _LIB_RING_BUFFER_FRONTEND_API_H +#define _LIB_RING_BUFFER_FRONTEND_API_H +#include <wrapper/ringbuffer/frontend.h> #include <wrapper/percpu-defs.h> #include <linux/errno.h>
lib/ringbuffer/frontend_internal.h +5 -21
@@ -1,33 +1,17 @@ -#ifndef _LIB_RING_BUFFER_FRONTEND_INTERNAL_H -#define _LIB_RING_BUFFER_FRONTEND_INTERNAL_H - -/* +/* SPDX-License-Identifier: (GPL-2.0 OR LGPL-2.1) +* * linux/ringbuffer/frontend_internal.h * * Ring Buffer Library Synchronization Header (internal helpers). * * Copyright (C) 2005-2012 Mathieu Desnoyers <[email protected]> * -* 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 -* -* Author: -* Mathieu Desnoyers <[email protected]> -* * See ring_buffer_frontend.c for more information on wait-free algorithms. */ +#ifndef _LIB_RING_BUFFER_FRONTEND_INTERNAL_H +#define _LIB_RING_BUFFER_FRONTEND_INTERNAL_H +#include <wrapper/ringbuffer/config.h> #include <wrapper/ringbuffer/backend_types.h> #include <wrapper/ringbuffer/frontend_types.h>
lib/ringbuffer/frontend_types.h +5 -21
@@ -1,33 +1,17 @@ -#ifndef _LIB_RING_BUFFER_FRONTEND_TYPES_H -#define _LIB_RING_BUFFER_FRONTEND_TYPES_H - -/* +/* SPDX-License-Identifier: (GPL-2.0 OR LGPL-2.1) +* * lib/ringbuffer/frontend_types.h * * Ring Buffer Library Synchronization Header (types). * * Copyright (C) 2010-2012 Mathieu Desnoyers <[email protected]> * -* 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 -* -* Author: -* Mathieu Desnoyers <[email protected]> -* * See ring_buffer_frontend.c for more information on wait-free algorithms. */ +#ifndef _LIB_RING_BUFFER_FRONTEND_TYPES_H +#define _LIB_RING_BUFFER_FRONTEND_TYPES_H +#include <linux/kref.h> #include <wrapper/ringbuffer/config.h> #include <wrapper/ringbuffer/backend_types.h>
lib/ringbuffer/iterator.h +5 -21
@@ -1,31 +1,15 @@ -#ifndef _LIB_RING_BUFFER_ITERATOR_H -#define _LIB_RING_BUFFER_ITERATOR_H - -/* +/* SPDX-License-Identifier: (GPL-2.0 OR LGPL-2.1) +* * lib/ringbuffer/iterator.h * * Ring buffer and channel iterators. * * Copyright (C) 2010-2012 Mathieu Desnoyers <[email protected]> -* -* 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 -* -* Author: -* Mathieu Desnoyers <[email protected]> */ +#ifndef _LIB_RING_BUFFER_ITERATOR_H +#define _LIB_RING_BUFFER_ITERATOR_H +#include <wrapper/ringbuffer/backend.h> #include <wrapper/ringbuffer/frontend.h> #include <wrapper/ringbuffer/vfs.h>
lib/ringbuffer/nohz.h +5 -18
@@ -1,26 +1,13 @@ -#ifndef _LIB_RING_BUFFER_NOHZ_H -#define _LIB_RING_BUFFER_NOHZ_H - -/* +/* SPDX-License-Identifier: (GPL-2.0 OR LGPL-2.1) +* * lib/ringbuffer/nohz.h * * Copyright (C) 2011-2012 Mathieu Desnoyers <[email protected]> -* -* 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 */ +#ifndef _LIB_RING_BUFFER_NOHZ_H +#define _LIB_RING_BUFFER_NOHZ_H +#ifdef CONFIG_LIB_RING_BUFFER void lib_ring_buffer_tick_nohz_flush (void );void lib_ring_buffer_tick_nohz_stop (void );
lib/ringbuffer/ring_buffer_backend.c +2 -15
@@ -1,21 +1,8 @@ -/* +/* SPDX-License-Identifier: (GPL-2.0 OR LGPL-2.1) +* * ring_buffer_backend.c * * Copyright (C) 2005-2012 Mathieu Desnoyers <[email protected]> -* -* 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 <linux/stddef.h>
lib/ringbuffer/ring_buffer_frontend.c +2 -16
@@ -1,23 +1,9 @@ -/* +/* SPDX-License-Identifier: (GPL-2.0 OR LGPL-2.1) +* * ring_buffer_frontend.c * * Copyright (C) 2005-2012 Mathieu Desnoyers <[email protected]> * -* 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 -* -* * Ring buffer wait-free buffer synchronization. Producer-consumer and flight * recorder (overwrite) modes. See thesis: *
lib/ringbuffer/ring_buffer_iterator.c +2 -18
@@ -1,4 +1,5 @@ -/* +/* SPDX-License-Identifier: (GPL-2.0 OR LGPL-2.1) +* * ring_buffer_iterator.c * * Ring buffer and channel iterators. Get each event of a channel in order. Uses
@@ -6,23 +7,6 @@* complexity for the "get next event" operation. * * Copyright (C) 2010-2012 Mathieu Desnoyers <[email protected]> -* -* 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 -* -* Author: -* Mathieu Desnoyers <[email protected]> */ #include <wrapper/ringbuffer/iterator.h>
lib/ringbuffer/ring_buffer_mmap.c +3 -15
@@ -1,24 +1,12 @@ -/* +/* SPDX-License-Identifier: GPL-2.0 +* * ring_buffer_mmap.c * * Copyright (C) 2002-2005 - Tom Zanussi <[email protected]>, IBM Corp * Copyright (C) 1999-2005 - Karim Yaghmour <[email protected]> * Copyright (C) 2008-2012 - Mathieu Desnoyers <[email protected]> * -* This program is free software; you can redistribute it and/or modify -* it under the terms of the GNU General Public License as published by -* the Free Software Foundation; only version 2 of the License. -* -* This program 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 General Public License for more details. -* -* You should have received a copy of the GNU General Public License along -* with this program; if not, write to the Free Software Foundation, Inc., -* 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. -* -* Re-using code from kernel/relay.c, hence the GPLv2 license for this +* Re-using code from kernel/relay.c, hence the GPL-2.0 license for this * file. */
lib/ringbuffer/ring_buffer_splice.c +3 -16
@@ -1,26 +1,13 @@ -/* +/* SPDX-License-Identifier: GPL-2.0 +* * ring_buffer_splice.c * * Copyright (C) 2002-2005 - Tom Zanussi <[email protected]>, IBM Corp * Copyright (C) 1999-2005 - Karim Yaghmour <[email protected]> * Copyright (C) 2008-2012 - Mathieu Desnoyers <[email protected]> * -* 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 -* * Re-using code from kernel/relay.c, which is why it is licensed under -* the GPLv2. +* the GPL-2.0. */ #include <linux/module.h>
lib/ringbuffer/ring_buffer_vfs.c +2 -15
@@ -1,23 +1,10 @@ -/* +/* SPDX-License-Identifier: (GPL-2.0 OR LGPL-2.1) +* * ring_buffer_vfs.c * * Ring Buffer VFS file operations. * * Copyright (C) 2010-2012 Mathieu Desnoyers <[email protected]> -* -* 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 <linux/module.h>
lib/ringbuffer/vatomic.h +5 -18
@@ -1,26 +1,13 @@ -#ifndef _LIB_RING_BUFFER_VATOMIC_H -#define _LIB_RING_BUFFER_VATOMIC_H - -/* +/* SPDX-License-Identifier: (GPL-2.0 OR LGPL-2.1) +* * lib/ringbuffer/vatomic.h * * Copyright (C) 2010-2012 Mathieu Desnoyers <[email protected]> -* -* 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 */ +#ifndef _LIB_RING_BUFFER_VATOMIC_H +#define _LIB_RING_BUFFER_VATOMIC_H +#include <asm/atomic.h> #include <asm/local.h>
lib/ringbuffer/vfs.h +5 -21
@@ -1,31 +1,15 @@ -#ifndef _LIB_RING_BUFFER_VFS_H -#define _LIB_RING_BUFFER_VFS_H - -/* +/* SPDX-License-Identifier: (GPL-2.0 OR LGPL-2.1) +* * lib/ringbuffer/vfs.h * * Wait-free ring buffer VFS file operations. * * Copyright (C) 2005-2012 Mathieu Desnoyers <[email protected]> -* -* 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 -* -* Author: -* Mathieu Desnoyers <[email protected]> */ +#ifndef _LIB_RING_BUFFER_VFS_H +#define _LIB_RING_BUFFER_VFS_H +#include <linux/fs.h> #include <linux/poll.h>
lttng-abi-old.h +5 -18
@@ -1,28 +1,15 @@ -#ifndef _LTTNG_ABI_OLD_H -#define _LTTNG_ABI_OLD_H - -/* +/* SPDX-License-Identifier: (GPL-2.0 or LGPL-2.1) +* * lttng-abi-old.h * * LTTng old ABI header (without support for compat 32/64 bits) * * Copyright (C) 2010-2012 Mathieu Desnoyers <[email protected]> -* -* 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 */ +#ifndef _LTTNG_ABI_OLD_H +#define _LTTNG_ABI_OLD_H +#include <linux/fs.h> #include <lttng-abi.h>
lttng-abi.c +2 -16
@@ -1,25 +1,11 @@ -/* +/* SPDX-License-Identifier: (GPL-2.0 or LGPL-2.1) +* * lttng-abi.c * * LTTng ABI * * Copyright (C) 2010-2012 Mathieu Desnoyers <[email protected]> * -* 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 -* -* * Mimic system calls for: * - session creation, returns a file descriptor or failure. * - channel creation, returns a file descriptor or failure.
lttng-abi.h +5 -18
@@ -1,28 +1,15 @@ -#ifndef _LTTNG_ABI_H -#define _LTTNG_ABI_H - -/* +/* SPDX-License-Identifier: (GPL-2.0 or LGPL-2.1) +* * lttng-abi.h * * LTTng ABI header * * Copyright (C) 2010-2012 Mathieu Desnoyers <[email protected]> -* -* 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 */ +#ifndef _LTTNG_ABI_H +#define _LTTNG_ABI_H +#include <linux/fs.h> /*
lttng-calibrate.c +2 -15
@@ -1,23 +1,10 @@ -/* +/* SPDX-License-Identifier: (GPL-2.0 or LGPL-2.1) +* * lttng-calibrate.c * * LTTng probe calibration. * * Copyright (C) 2010-2012 Mathieu Desnoyers <[email protected]> -* -* 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 <lttng-abi.h>
lttng-clock.c +2 -15
@@ -1,21 +1,8 @@ -/* +/* SPDX-License-Identifier: (GPL-2.0 or LGPL-2.1) +* * lttng-clock.c * * Copyright (C) 2014 Mathieu Desnoyers <[email protected]> -* -* 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 <linux/module.h>
lttng-clock.h +5 -18
@@ -1,26 +1,13 @@ -#ifndef _LTTNG_CLOCK_H -#define _LTTNG_CLOCK_H - -/* +/* SPDX-License-Identifier: (GPL-2.0 or LGPL-2.1) +* * lttng-clock.h * * Copyright (C) 2014 Mathieu Desnoyers <[email protected]> -* -* 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 */ +#ifndef _LTTNG_CLOCK_H +#define _LTTNG_CLOCK_H +#include <linux/module.h> #define LTTNG_MODULES_UUID_STR_LEN 37
lttng-context-callstack.c +2 -15
@@ -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 <[email protected]> * Copyright (C) 2014 Francis Giraldeau <[email protected]> * -* 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
lttng-context-cpu-id.c +2 -15
@@ -1,23 +1,10 @@ -/* +/* SPDX-License-Identifier: (GPL-2.0 or LGPL-2.1) +* * lttng-context-cpu-id.c * * LTTng CPU id context. * * Copyright (C) 2009-2012 Mathieu Desnoyers <[email protected]> -* -* 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 <linux/module.h>
lttng-context-hostname.c +2 -15
@@ -1,23 +1,10 @@ -/* +/* SPDX-License-Identifier: (GPL-2.0 or LGPL-2.1) +* * lttng-context-hostname.c * * LTTng hostname context. * * Copyright (C) 2009-2012 Mathieu Desnoyers <[email protected]> -* -* 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 <linux/module.h>
lttng-context-interruptible.c +2 -15
@@ -1,23 +1,10 @@ -/* +/* SPDX-License-Identifier: (GPL-2.0 or LGPL-2.1) +* * lttng-context-interruptible.c * * LTTng interruptible context. * * Copyright (C) 2009-2015 Mathieu Desnoyers <[email protected]> -* -* 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 <linux/module.h>
lttng-context-migratable.c +2 -15
@@ -1,23 +1,10 @@ -/* +/* SPDX-License-Identifier: (GPL-2.0 or LGPL-2.1) +* * lttng-context-migratable.c * * LTTng migratable context. * * Copyright (C) 2009-2015 Mathieu Desnoyers <[email protected]> -* -* 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 <linux/module.h>
lttng-context-need-reschedule.c +2 -15
@@ -1,23 +1,10 @@ -/* +/* SPDX-License-Identifier: (GPL-2.0 or LGPL-2.1) +* * lttng-context-need-reschedule.c * * LTTng need_reschedule context. * * Copyright (C) 2009-2015 Mathieu Desnoyers <[email protected]> -* -* 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 <linux/module.h>
lttng-context-nice.c +2 -15
@@ -1,23 +1,10 @@ -/* +/* SPDX-License-Identifier: (GPL-2.0 or LGPL-2.1) +* * lttng-context-nice.c * * LTTng nice context. * * Copyright (C) 2009-2012 Mathieu Desnoyers <[email protected]> -* -* 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 <linux/module.h>
lttng-context-perf-counters.c +2 -15
@@ -1,23 +1,10 @@ -/* +/* SPDX-License-Identifier: (GPL-2.0 or LGPL-2.1) +* * lttng-context-perf-counters.c * * LTTng performance monitoring counters (perf-counters) integration module. * * Copyright (C) 2009-2012 Mathieu Desnoyers <[email protected]> -* -* 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 <linux/module.h>
lttng-context-pid.c +2 -15
@@ -1,23 +1,10 @@ -/* +/* SPDX-License-Identifier: (GPL-2.0 or LGPL-2.1) +* * lttng-context-pid.c * * LTTng PID context. * * Copyright (C) 2009-2012 Mathieu Desnoyers <[email protected]> -* -* 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 <linux/module.h>
lttng-context-ppid.c +2 -15
@@ -1,23 +1,10 @@ -/* +/* SPDX-License-Identifier: (GPL-2.0 or LGPL-2.1) +* * lttng-context-ppid.c * * LTTng PPID context. * * Copyright (C) 2009-2012 Mathieu Desnoyers <[email protected]> -* -* 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 <linux/module.h>
lttng-context-preemptible.c +2 -15
@@ -1,23 +1,10 @@ -/* +/* SPDX-License-Identifier: (GPL-2.0 or LGPL-2.1) +* * lttng-context-preemptible.c * * LTTng preemptible context. * * Copyright (C) 2009-2015 Mathieu Desnoyers <[email protected]> -* -* 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 <linux/module.h>
lttng-context-prio.c +2 -15
@@ -1,23 +1,10 @@ -/* +/* SPDX-License-Identifier: (GPL-2.0 or LGPL-2.1) +* * lttng-context-prio.c * * LTTng priority context. * * Copyright (C) 2009-2012 Mathieu Desnoyers <[email protected]> -* -* 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 <linux/module.h>
lttng-context-procname.c +2 -15
@@ -1,23 +1,10 @@ -/* +/* SPDX-License-Identifier: (GPL-2.0 or LGPL-2.1) +* * lttng-context-procname.c * * LTTng procname context. * * Copyright (C) 2009-2012 Mathieu Desnoyers <[email protected]> -* -* 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 <linux/module.h>
lttng-context-tid.c +2 -15
@@ -1,23 +1,10 @@ -/* +/* SPDX-License-Identifier: (GPL-2.0 or LGPL-2.1) +* * lttng-context-tid.c * * LTTng TID context. * * Copyright (C) 2009-2012 Mathieu Desnoyers <[email protected]> -* -* 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 <linux/module.h>
lttng-context-vpid.c +2 -15
@@ -1,23 +1,10 @@ -/* +/* SPDX-License-Identifier: (GPL-2.0 or LGPL-2.1) +* * lttng-context-vpid.c * * LTTng vPID context. * * Copyright (C) 2009-2012 Mathieu Desnoyers <[email protected]> -* -* 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 <linux/module.h>
lttng-context-vppid.c +2 -15
@@ -1,23 +1,10 @@ -/* +/* SPDX-License-Identifier: (GPL-2.0 or LGPL-2.1) +* * lttng-context-vppid.c * * LTTng vPPID context. * * Copyright (C) 2009-2012 Mathieu Desnoyers <[email protected]> -* -* 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 <linux/module.h>
lttng-context-vtid.c +2 -15
@@ -1,23 +1,10 @@ -/* +/* SPDX-License-Identifier: (GPL-2.0 or LGPL-2.1) +* * lttng-context-vtid.c * * LTTng vTID context. * * Copyright (C) 2009-2012 Mathieu Desnoyers <[email protected]> -* -* 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 <linux/module.h>
lttng-context.c +2 -15
@@ -1,23 +1,10 @@ -/* +/* SPDX-License-Identifier: (GPL-2.0 or LGPL-2.1) +* * lttng-context.c * * LTTng trace/channel/event context management. * * Copyright (C) 2011-2012 Mathieu Desnoyers <[email protected]> -* -* 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 <linux/module.h>
lttng-cpuhotplug.h +5 -18
@@ -1,26 +1,13 @@ -#ifndef LTTNG_CPUHOTPLUG_H -#define LTTNG_CPUHOTPLUG_H - -/* +/* SPDX-License-Identifier: (GPL-2.0 or LGPL-2.1) +* * lttng-cpuhotplug.h * * Copyright (C) 2016 Mathieu Desnoyers <[email protected]> -* -* 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 */ +#ifndef LTTNG_CPUHOTPLUG_H +#define LTTNG_CPUHOTPLUG_H +struct lttng_cpuhp_node ;#if (LINUX_VERSION_CODE >=KERNEL_VERSION (4 ,10 ,0 ))
lttng-endian.h +1 -14
@@ -1,3 +1,4 @@ +/* SPDX-License-Identifier: (GPL-2.0 or LGPL-2.1) */ #ifndef _LTTNG_ENDIAN_H#define _LTTNG_ENDIAN_H
@@ -5,20 +6,6 @@* lttng-endian.h * * Copyright (C) 2010-2012 Mathieu Desnoyers <[email protected]> -* -* 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 */ #ifdef __KERNEL__
lttng-events.c +2 -15
@@ -1,23 +1,10 @@ -/* +/* SPDX-License-Identifier: (GPL-2.0 or LGPL-2.1) +* * lttng-events.c * * Holds LTTng per-session event registry. * * Copyright (C) 2010-2012 Mathieu Desnoyers <[email protected]> -* -* 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-events.h +5 -18
@@ -1,28 +1,15 @@ -#ifndef _LTTNG_EVENTS_H -#define _LTTNG_EVENTS_H - -/* +/* SPDX-License-Identifier: (GPL-2.0 or LGPL-2.1) +* * lttng-events.h * * Holds LTTng per-session event registry. * * Copyright (C) 2010-2012 Mathieu Desnoyers <[email protected]> -* -* 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 */ +#ifndef _LTTNG_EVENTS_H +#define _LTTNG_EVENTS_H +#include <linux/version.h> #include <linux/list.h> #include <linux/kprobes.h>
lttng-filter-interpreter.c +2 -19
@@ -1,27 +1,10 @@ -/* +/* SPDX-License-Identifier: MIT +* * lttng-filter-interpreter.c * * LTTng modules filter interpreter. * * Copyright (C) 2010-2016 Mathieu Desnoyers <[email protected]> -* -* Permission is hereby granted, free of charge, to any person obtaining a copy -* of this software and associated documentation files (the "Software"), to deal -* in the Software without restriction, including without limitation the rights -* to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -* copies of the Software, and to permit persons to whom the Software is -* furnished to do so, subject to the following conditions: -* -* The above copyright notice and this permission notice shall be included in -* all copies or substantial portions of the Software. -* -* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE -* SOFTWARE. */ #include <linux/uaccess.h>
lttng-filter-specialize.c +2 -19
@@ -1,27 +1,10 @@ -/* +/* SPDX-License-Identifier: MIT +* * lttng-filter-specialize.c * * LTTng modules filter code specializer. * * Copyright (C) 2010-2016 Mathieu Desnoyers <[email protected]> -* -* Permission is hereby granted, free of charge, to any person obtaining a copy -* of this software and associated documentation files (the "Software"), to deal -* in the Software without restriction, including without limitation the rights -* to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -* copies of the Software, and to permit persons to whom the Software is -* furnished to do so, subject to the following conditions: -* -* The above copyright notice and this permission notice shall be included in -* all copies or substantial portions of the Software. -* -* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
Lines of this file are not shown. View the raw message.
lttng-ring-buffer-client-mmap-discard.c +2 -15
Lines of this file are not shown. View the raw message.
lttng-ring-buffer-client-mmap-overwrite.c +2 -15
Lines of this file are not shown. View the raw message.
lttng-ring-buffer-metadata-mmap-client.c +2 -15
Lines of this file are not shown. View the raw message.
tests/clock-plugin/lttng-clock-plugin-test.c +2 -15
Lines of this file are not shown. View the raw message.
The rest of this diff is not shown. View the raw message.
Signature · 6 lines
2.17.1 _______________________________________________ lttng-dev mailing list [email protected] https://lists.lttng.org/cgi-bin/mailman/listinfo/lttng-dev
Part of the diff is not shown here. View the raw message.
Re: [PATCH lttng-modules 1/4] Add extra version information framework
In reply to a message not in the archivePatch 1 merged into master, 2.10, 2.9,
Patches 2, 3, 4 merged into master,
Thanks!
Mathieu
Quoted 244 lines · ----- On Jun 29, 2018, at 5:28 PM, Michael Jeanson [email protected] wrote:
Signed-off-by Michael Jeanson <[email protected]>---
.gitignore | 2 ++ Kbuild.common | 14 +++++++++++ extra-version-git.sh | 20 +++++++++++++++ extra-version-name.sh | 13 ++++++++++ extra-version-patches.sh | 21 ++++++++++++++++ extra_version/README | 2 ++ extra_version/patches/README | 2 ++ lttng-events.c | 49 +++++++++++++++++++++++++++++++----- 8 files changed, 117 insertions(+), 6 deletions(-)create mode 100755
extra-version-git.sh
create mode 100755extra-version-name.sh
create mode 100755extra-version-patches.sh
create mode 100644 extra_version/README
create mode 100644 extra_version/patches/README.gitignore +0
-0@@ -79,3 +79,5 @@ GTAGS *.orig *~\#*#
.gitignore +2
-0+ +/extra_versionKbuild.common +0
-0@@ -34,6 +34,20 @@ ifneq ($(RT_PATCH_VERSION), 0) ccflags-y += -DRT_PATCH_VERSION=$(RT_PATCH_VERSION)endif
+EXTRA_VERSION_NAME:=$(shell $(TOP_LTTNG_MODULES_DIR)/extra-version-name.sh $(TOP_LTTNG_MODULES_DIR))
Kbuild.common +6
-0+ +ifneq ($(EXTRA_VERSION_NAME), 0) + ccflags-y += -DLTTNG_EXTRA_VERSION_NAME='"$(EXTRA_VERSION_NAME)"' +endif + +EXTRA_VERSION_GIT:=$(shell $(TOP_LTTNG_MODULES_DIR)/extra-version-git.sh$(TOP_LTTNG_MODULES_DIR))
Kbuild.common +6
-0+ +ifneq ($(EXTRA_VERSION_GIT), 0) + ccflags-y += -DLTTNG_EXTRA_VERSION_GIT='"$(EXTRA_VERSION_GIT)"' +endif + +EXTRA_VERSION_PATCHES:=$(shell$(TOP_LTTNG_MODULES_DIR)/extra-version-patches.sh $(TOP_LTTNG_MODULES_DIR)) +
# Starting with kernel 4.12, the ftrace header was moved to private headers# and as such is not available when building against distro headers instead # of the full kernel sources. In the situation, define LTTNG_FTRACE_MISSING_HEADERextra-version-git.sh new file +9
-0@@ -0,0 +1,20 @@ +#!/bin/sh +# SPDX-License-Identifier: (GPL-2.0 OR LGPL-2.1) + +# First argument is the path to the lttng modules sources. +TOP_LTTNG_MODULES_DIR="$1" + +GIT_VERSION="0" + +if test -x "$(which git 2>&1;true)" && test -r "${TOP_LTTNG_MODULES_DIR}/.git";then
extra-version-git.sh new file +6
-2+ GIT_VERSION_STR="$(cd "${TOP_LTTNG_MODULES_DIR}" && git describe --tags --dirty)" + GIT_CURRENT_TAG="$(cd "${TOP_LTTNG_MODULES_DIR}" && git describe --tags --exact-match --match="v[0-9]*" HEAD 2> /dev/null)" + + GIT_VERSION="${GIT_VERSION_STR}" + + if ! echo "${GIT_VERSION_STR}" | grep -- "-dirty" >/dev/null && test"x$GIT_CURRENT_TAG" != "x"; then
extra-version-git.sh new file +5
-0+ GIT_VERSION="0" + fi +fi + +echo "${GIT_VERSION}"extra-version-name.sh new file +7
-0@@ -0,0 +1,13 @@ +#!/bin/sh +# SPDX-License-Identifier: (GPL-2.0 OR LGPL-2.1) + +# First argument is the path to the lttng modules sources. +TOP_LTTNG_MODULES_DIR="$1" + +EXTRA_VERSION_NAME="$(sed -n '1p' "${TOP_LTTNG_MODULES_DIR}/extra_version/name"2>
/dev/null)"extra-version-name.sh new file +6
-0+ +if [ "x${EXTRA_VERSION_NAME}" != "x" ]; then + echo "${EXTRA_VERSION_NAME}" +else + echo "0" +fiextra-version-patches.sh new file +13
-0@@ -0,0 +1,21 @@ +#!/bin/sh +# SPDX-License-Identifier: (GPL-2.0 OR LGPL-2.1) + +# First argument is the path to the lttng modules sources. +TOP_LTTNG_MODULES_DIR="$1" + +if ! test -d "${TOP_LTTNG_MODULES_DIR}"; then + exit 1 +fi + +TMPFILE="$(mktemp)" + +find "${TOP_LTTNG_MODULES_DIR}/extra_version/patches/" -maxdepth 1 ! -name'README' -type f -printf '%f\n' | sort -r \
extra-version-patches.sh new file +1
-0+ | sed -E 's/[^a-zA-Z0-9 \.]/-/g ; s/(.*)/MODULE_INFO(extra_version_patch,"\1");/g' >"${TMPFILE}" 2>/dev/null
extra-version-patches.sh new file +3
-0+ +if test ! -f "${TOP_LTTNG_MODULES_DIR}/extra_version/patches.i" || \ + test x"$(cat "${TMPFILE}")" != x"$(cat"${TOP_LTTNG_MODULES_DIR}/extra_version/patches.i")"; then
extra-version-patches.sh new file +4
-0+ mv "${TMPFILE}" "${TOP_LTTNG_MODULES_DIR}/extra_version/patches.i" +fi + +rm -f "${TMPFILE}"extra_version/README new file +2
-0@@ -0,0 +1,2 @@ +The first line of the "name" file is used to populate the "extra_version_name" +modinfo key of each built module.extra_version/patches/README new file +2
-0@@ -0,0 +1,2 @@ +The name of each file in this directory except this README will be used to +populate a "extra_version_path" modinfo key for each built module.lttng-events.c +12
-2@@ -2809,12 +2809,22 @@ static int __init lttng_events_init(void) ret =lttng_init_cpu_hotplug ();if (ret) goto error_hotplug; -printk (KERN_NOTICE "LTTng: Loaded modules v%s.%s.%s%s (%s)\n" , +printk (KERN_NOTICE "LTTng: Loaded modules v%s.%s.%s%s (%s)%s%s\n" ,__stringify (LTTNG_MODULES_MAJOR_VERSION ),__stringify (LTTNG_MODULES_MINOR_VERSION ),__stringify (LTTNG_MODULES_PATCHLEVEL_VERSION ),LTTNG_MODULES_EXTRAVERSION , -LTTNG_VERSION_NAME ); +LTTNG_VERSION_NAME , +#ifdef LTTNG_EXTRA_VERSION_GIT +LTTNG_EXTRA_VERSION_GIT [0 ] =='\0' ?"" :" - " LTTNG_EXTRA_VERSION_GIT , +#else +"" , +#endif +#ifdef LTTNG_EXTRA_VERSION_NAME +LTTNG_EXTRA_VERSION_NAME [0 ] =='\0' ?"" :" - " LTTNG_EXTRA_VERSION_NAME ); +#else + ""); +#endif return 0 ;
error_hotplug:lttng-events.c +0
-0@@ -2827,12 +2837,22 @@ error_kmem:lttng_tracepoint_exit ();
error_tp:lttng_context_exit();lttng-events.c +1
-1- printk(KERN_NOTICE "LTTng: Failed to load modules v%s.%s.%s%s (%s)\n", + printk(KERN_NOTICE "LTTng: Failed to load modules v%s.%s.%s%s (%s)%s%s\n",
__stringify(LTTNG_MODULES_MAJOR_VERSION),__stringify(LTTNG_MODULES_MINOR_VERSION),__stringify(LTTNG_MODULES_PATCHLEVEL_VERSION),LTTNG_MODULES_EXTRAVERSION,lttng-events.c +11
-1- LTTNG_VERSION_NAME); + LTTNG_VERSION_NAME, +#ifdef LTTNG_EXTRA_VERSION_GIT + LTTNG_EXTRA_VERSION_GIT[0] == '\0' ? "" : " - " LTTNG_EXTRA_VERSION_GIT, +#else + "", +#endif +#ifdef LTTNG_EXTRA_VERSION_NAME + LTTNG_EXTRA_VERSION_NAME[0] == '\0' ? "" : " - " LTTNG_EXTRA_VERSION_NAME); +#else + ""); +#endif return ret; }lttng-events.c +19
-3@@ -2850,16 +2870,33 @@ static void __exit lttng_events_exit(void)kmem_cache_destroy (event_cache);lttng_tracepoint_exit ();lttng_context_exit (); -printk (KERN_NOTICE "LTTng: Unloaded modules v%s.%s.%s%s (%s)\n" , +printk (KERN_NOTICE "LTTng: Unloaded modules v%s.%s.%s%s (%s)%s%s\n" ,__stringify (LTTNG_MODULES_MAJOR_VERSION ),__stringify (LTTNG_MODULES_MINOR_VERSION ),__stringify (LTTNG_MODULES_PATCHLEVEL_VERSION ),LTTNG_MODULES_EXTRAVERSION , -LTTNG_VERSION_NAME ); +LTTNG_VERSION_NAME , +#ifdef LTTNG_EXTRA_VERSION_GIT +LTTNG_EXTRA_VERSION_GIT [0 ] =='\0' ?"" :" - " LTTNG_EXTRA_VERSION_GIT , +#else +"" , +#endif +#ifdef LTTNG_EXTRA_VERSION_NAME +LTTNG_EXTRA_VERSION_NAME [0 ] =='\0' ?"" :" - " LTTNG_EXTRA_VERSION_NAME ); +#else + ""); +#endif }module_exit (lttng_events_exit); +#include "extra_version/patches.i" +#ifdef LTTNG_EXTRA_VERSION_GIT +MODULE_INFO (extra_version_git,LTTNG_EXTRA_VERSION_GIT ); +#endif +#ifdef LTTNG_EXTRA_VERSION_NAME +MODULE_INFO (extra_version_name,LTTNG_EXTRA_VERSION_NAME ); +#endif MODULE_LICENSE ("GPL and additional rights" );MODULE_AUTHOR ("Mathieu Desnoyers <[email protected]>" );MODULE_DESCRIPTION ("LTTng Events" ); --2.17.1
Signature · 7 lines
Mathieu Desnoyers EfficiOS Inc. http://www.efficios.com _______________________________________________ lttng-dev mailing list [email protected] https://lists.lttng.org/cgi-bin/mailman/listinfo/lttng-dev