Initial Commit

- initial default booting image
This commit is contained in:
2026-11-06 20:45:42 +01:00
commit b8783708ae
15201 changed files with 602532 additions and 0 deletions

View File

@@ -0,0 +1,61 @@
From a1f8509283ad29b5144bda6f6dba9f5eb7165adc Mon Sep 17 00:00:00 2001
From: Norbert Lange <nolange79@gmail.com>
Date: Thu, 23 Dec 2021 21:56:46 +0100
Subject: [PATCH] configure.ac: add --disable-tests
Add configure option to disable tests.
Upstream is not likely to accept it, see lttng-tools package.
Signed-off-by: Norbert Lange <nolange79@gmail.com>
[Bernd: rebased for version 2.14.0]
Signed-off-by: Bernd Kuhls <bernd@kuhls.net>
---
Makefile.am | 5 ++++-
configure.ac | 6 ++++++
2 files changed, 10 insertions(+), 1 deletion(-)
diff --git a/Makefile.am b/Makefile.am
index 9ab93ccd..8a1c1dca 100644
--- a/Makefile.am
+++ b/Makefile.am
@@ -9,9 +9,12 @@ SUBDIRS = \
src \
tools \
doc \
- tests \
extras
+if ENABLE_TESTS
+SUBDIRS += tests
+endif
+
dist_doc_DATA = \
ChangeLog \
LICENSE \
diff --git a/configure.ac b/configure.ac
index b6254228..fe5f2700 100644
--- a/configure.ac
+++ b/configure.ac
@@ -371,6 +371,11 @@ AE_FEATURE([python-agent],[build the LTTng UST Python agent])
AE_FEATURE_DEFAULT_ENABLE
AE_FEATURE([examples],[Do not build and install examples])
+# Build the tests
+# Enabled by default
+AE_FEATURE_DEFAULT_ENABLE
+AE_FEATURE([tests],[Do not build tests])
+
# Man pages
# Enabled by default
AE_FEATURE_DEFAULT_ENABLE
@@ -565,6 +570,7 @@ AC_DEFINE([LTTNG_UST_CTL_LIB_SONAME_MAJOR], [ust_ctl_lib_version_current], [Majo
## ##
AM_CONDITIONAL([ENABLE_EXAMPLES], AE_IS_FEATURE_ENABLED([examples]))
+AM_CONDITIONAL([ENABLE_TESTS], AE_IS_FEATURE_ENABLED([tests]))
AM_CONDITIONAL([ENABLE_GEN_TP_EXAMPLES], [test "x$PYTHON" != "x"])
AM_CONDITIONAL([ENABLE_JAVA_AGENT], AE_IS_FEATURE_ENABLED([java-agent-jul]) || AE_IS_FEATURE_ENABLED([java-agent-log4j]) || AE_IS_FEATURE_ENABLED([java-agent-log4j2]))
AM_CONDITIONAL([ENABLE_JAVA_AGENT_WITH_JUL], AE_IS_FEATURE_ENABLED([java-agent-jul]))
--
2.34.1

View File

@@ -0,0 +1,23 @@
config BR2_PACKAGE_LTTNG_LIBUST
bool "lttng-libust"
depends on BR2_USE_WCHAR # uses wchar_t
# liburcu only works on some architectures and requires threads support"
depends on BR2_PACKAGE_LIBURCU_ARCH_SUPPORTS
depends on BR2_TOOLCHAIN_HAS_THREADS
depends on !BR2_STATIC_LIBS
depends on BR2_INSTALL_LIBSTDCPP # liburcu
select BR2_PACKAGE_LIBURCU
select BR2_PACKAGE_UTIL_LINUX
select BR2_PACKAGE_UTIL_LINUX_LIBUUID
help
Userspace tracing library for the LTTng 2.x tracing
infrastructure. It allows userspace programs to create
custom trace events that are integrated with all other
events gathered by LTTng.
http://lttng.org
comment "lttng-libust needs a toolchain w/ dynamic library, wchar, threads, C++"
depends on BR2_PACKAGE_LIBURCU_ARCH_SUPPORTS
depends on BR2_STATIC_LIBS || !BR2_USE_WCHAR || \
!BR2_TOOLCHAIN_HAS_THREADS || !BR2_INSTALL_LIBSTDCPP

View File

@@ -0,0 +1,9 @@
# From https://lttng.org/files/lttng-ust/lttng-ust-2.14.0.tar.bz2.sha256
sha256 82cdfd304bbb2b2b7d17cc951a6756b37a9f73868ec0ba7db448a0d5ca51b763 lttng-ust-2.14.0.tar.bz2
# Hash for license files
sha256 5a93d5831e1297ab10fe643e1a631e83be392896da14ee2951285a79012df69d LICENSES/BSD-3-Clause.txt
sha256 aaf135472f81c5b4a0dca9367e5bb5e9750032b5bebe5442b36e4c0a47430df3 LICENSES/GPL-2.0-or-later.txt
sha256 fa6f36630bb1e0c571d34b2bbdf188d08495c9dbf58f28cac112f303fc1f58fb LICENSES/LGPL-2.1-or-later.txt
sha256 b85dcd3e453d05982552c52b5fc9e0bdd6d23c6f8e844b984a88af32570b0cc0 LICENSES/MIT.txt
sha256 4b432d14b8f0b85489a784a5ff9d0ccd8a265def548b0794e22ea5ff5e8dd910 LICENSE

View File

@@ -0,0 +1,43 @@
################################################################################
#
# lttng-libust
#
################################################################################
LTTNG_LIBUST_SITE = http://lttng.org/files/lttng-ust
LTTNG_LIBUST_VERSION = 2.14.0
LTTNG_LIBUST_SOURCE = lttng-ust-$(LTTNG_LIBUST_VERSION).tar.bz2
LTTNG_LIBUST_LICENSE = LGPL-2.1, MIT (system headers), GPL-2.0 (liblttng-ust-ctl/ustctl.c used by lttng-sessiond), BSD-3-Clause (snprintf)
LTTNG_LIBUST_LICENSE_FILES = \
LICENSES/BSD-3-Clause.txt \
LICENSES/GPL-2.0-or-later.txt \
LICENSES/LGPL-2.1-or-later.txt \
LICENSES/MIT.txt \
LICENSE
LTTNG_LIBUST_INSTALL_STAGING = YES
LTTNG_LIBUST_DEPENDENCIES = liburcu util-linux
LTTNG_LIBUST_CONF_OPTS = \
--disable-man-pages \
--disable-examples \
--disable-tests \
--with-lttng-system-rundir=/run/lttng
LTTNG_LIBUST_AUTORECONF = YES
# https://www.mail-archive.com/lttng-dev@lists.lttng.org/msg12950.html
LTTNG_LIBUST_CONF_ENV = CFLAGS="$(TARGET_CFLAGS) -DUATOMIC_NO_LINK_ERROR"
ifeq ($(BR2_PACKAGE_PYTHON3),y)
LTTNG_LIBUST_DEPENDENCIES += python3 host-python-setuptools
LTTNG_LIBUST_CONF_OPTS += --enable-python-agent
else
LTTNG_LIBUST_CONF_ENV += am_cv_pathless_PYTHON="none"
LTTNG_LIBUST_CONF_OPTS += --disable-python-agent
endif
ifeq ($(BR2_PACKAGE_NUMACTL),y)
LTTNG_LIBUST_DEPENDENCIES += numactl
LTTNG_LIBUST_CONF_OPTS += --enable-numa
else
LTTNG_LIBUST_CONF_OPTS += --disable-numa
endif
$(eval $(autotools-package))