From 1474f1b34b178defca1d16d18a2446fadda9a12b Mon Sep 17 00:00:00 2001 From: Maxime Chevallier Date: Tue, 24 Oct 2023 16:42:53 +0200 Subject: [PATCH] package/libtraceevent: new package Introduce the libtraceevent library, that is used to be bundled with the trace-cmd tool. This library is now used by several tools and libraries such as trace-cmd, libtracefs and rtla. To build with meson, this package requires to disable documentation generation, and since this is not possible add a local patch pending upstream that adds -Ddoc=false support to libtraceevent. Signed-off-by: Maxime Chevallier [Giulio: - bump version to 1.7.3 and add hash file - move to meson build system ] Signed-off-by: Giulio Benetti [yann.morin.1998@free.fr: - bump to 1.8.1, drop patch applied upstream - add "homepage" to help text ] Signed-off-by: Yann E. MORIN --- DEVELOPERS | 4 ++++ package/Config.in | 1 + package/libtraceevent/Config.in | 11 +++++++++++ package/libtraceevent/libtraceevent.hash | 4 ++++ package/libtraceevent/libtraceevent.mk | 17 +++++++++++++++++ 5 files changed, 37 insertions(+) create mode 100644 package/libtraceevent/Config.in create mode 100644 package/libtraceevent/libtraceevent.hash create mode 100644 package/libtraceevent/libtraceevent.mk diff --git a/DEVELOPERS b/DEVELOPERS index 2b67c616fa..4461216122 100644 --- a/DEVELOPERS +++ b/DEVELOPERS @@ -1235,6 +1235,7 @@ F: package/libfuse3/ F: package/libnspr/ F: package/libnss/ F: package/libnvme/ +F: package/libtraceevent/ F: package/mali-driver/ F: package/minicom/ F: package/mongoose/ @@ -2131,6 +2132,9 @@ F: package/postgresql/ F: package/protozero/ F: package/timescaledb/ +N: Maxime Chevallier +F: package/libtraceevent/ + N: Michael Durrant F: board/arcturus/ F: configs/arcturus_ucp1020_defconfig diff --git a/package/Config.in b/package/Config.in index a2cc80aa27..a6d76c4b3d 100644 --- a/package/Config.in +++ b/package/Config.in @@ -117,6 +117,7 @@ menu "Debugging, profiling and benchmark" source "package/kyua/Config.in" source "package/latencytop/Config.in" source "package/libbpf/Config.in" + source "package/libtraceevent/Config.in" source "package/lmbench/Config.in" source "package/lsof/Config.in" source "package/ltp-testsuite/Config.in" diff --git a/package/libtraceevent/Config.in b/package/libtraceevent/Config.in new file mode 100644 index 0000000000..399238eef1 --- /dev/null +++ b/package/libtraceevent/Config.in @@ -0,0 +1,11 @@ +config BR2_PACKAGE_LIBTRACEEVENT + bool "libtraceevent" + help + libtraceevent is a library that interfaces with the ftrace + subsystem in the linux kernel. + It used to be bundled directly in the trace-cmd + tool, but it was eventually extracted so that it can be used + by multiple other tools and libraries, such as libtracefs and + rtla. + + https://git.kernel.org/pub/scm/libs/libtrace/libtraceevent.git/ diff --git a/package/libtraceevent/libtraceevent.hash b/package/libtraceevent/libtraceevent.hash new file mode 100644 index 0000000000..b2ffbc9c0a --- /dev/null +++ b/package/libtraceevent/libtraceevent.hash @@ -0,0 +1,4 @@ +# Locally computed +sha256 1801f416b317e2ae0430ce964cf22b9ecb9fb5cd9c6c2d1073b29953c3309bca libtraceevent-1.8.1.tar.gz +sha256 f6b78c087c3ebdf0f3c13415070dd480a3f35d8fc76f3d02180a407c1c812f79 GPL-2.0 +sha256 0b9a4febcdee6de55872501d5c1a8f5d8b0d1650cd4d5351995ceb22e889f8ca LGPL-2.1 diff --git a/package/libtraceevent/libtraceevent.mk b/package/libtraceevent/libtraceevent.mk new file mode 100644 index 0000000000..d348fc51f6 --- /dev/null +++ b/package/libtraceevent/libtraceevent.mk @@ -0,0 +1,17 @@ +################################################################################ +# +# libtraceevent +# +################################################################################ + +LIBTRACEEVENT_VERSION = 1.8.1 +LIBTRACEEVENT_SITE = https://git.kernel.org/pub/scm/libs/libtrace/libtraceevent.git/snapshot +LIBTRACEEVENT_LICENSE = GPL-2.0, LGPL-2.1 +LIBTRACEEVENT_LICENSE_FILES = LICENSES/GPL-2.0 LICENSES/LGPL-2.1 + +LIBTRACEEVENT_INSTALL_STAGING = YES + +LIBTRACEEVENT_CONF_OPTS = \ + -Ddoc=false + +$(eval $(meson-package))