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 <maxime.chevallier@bootlin.com>
[Giulio:
	- bump version to 1.7.3 and add hash file
	- move to meson build system
]
Signed-off-by: Giulio Benetti <giulio.benetti@benettiengineering.com>
[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 <yann.morin.1998@free.fr>
This commit is contained in:
Maxime Chevallier 2023-10-24 16:42:53 +02:00 committed by Yann E. MORIN
parent d1c067e01b
commit 1474f1b34b
5 changed files with 37 additions and 0 deletions

View File

@ -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 <maxime.chevallier@bootlin.com>
F: package/libtraceevent/
N: Michael Durrant <mdurrant@arcturusnetworks.com>
F: board/arcturus/
F: configs/arcturus_ucp1020_defconfig

View File

@ -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"

View File

@ -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/

View File

@ -0,0 +1,4 @@
# Locally computed
sha256 1801f416b317e2ae0430ce964cf22b9ecb9fb5cd9c6c2d1073b29953c3309bca libtraceevent-1.8.1.tar.gz
sha256 f6b78c087c3ebdf0f3c13415070dd480a3f35d8fc76f3d02180a407c1c812f79 GPL-2.0
sha256 0b9a4febcdee6de55872501d5c1a8f5d8b0d1650cd4d5351995ceb22e889f8ca LGPL-2.1

View File

@ -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))