Skip to contentSkip to conversation

package/libtraceevent: bump to version 1.9.1

PATCH In review Giulio Benetti 2 participants 4 messages Oct 26

lore
Share & tools
lore
#0 lore raw

PATCH v2 1/3 package/libtraceevent: bump to version 1.9.1

Add patch pending upstream:
https://lore.kernel.org/linux-trace-devel/[email protected]/

Release notes:
https://git.kernel.org/pub/scm/libs/libtrace/libtraceevent.git/tag/?h=libtraceevent-1.9.1

---
V1->V2:
* update patch pending upstream and commit log accordingly

---
 ...uild-failure-due-to-btf-on-Linux-6.0.patch | 222 ++++++++++++++++++
 package/libtraceevent/libtraceevent.hash      |   2 +-
 package/libtraceevent/libtraceevent.mk        |   2 +-
 3 files changed, 224 insertions(+), 2 deletions(-)
 create mode 100644 package/libtraceevent/0001-Fix-build-failure-due-to-btf-on-Linux-6.0.patch
package/libtraceevent/0001-Fix-build-failure-due-to-btf-on-Linux-6.0.patch new file +222 -0
new file mode 100644
index 0000000000..c5d3428c0e
@@ -0,0 +1,222 @@
+From ae96c2317cc4b3eb84d1d1717bfff2e370bea31e Mon Sep 17 00:00:00 2001
+From: Giulio Benetti <[email protected]>
+Date: Tue, 10 Feb 2026 17:57:52 +0100
+Subject: [PATCH] Fix build failure due to btf on Linux < 6.0
+
+With commit:
+https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=6089fb325cf737eeb2c4d236c94697112ca860da
+enum BTF_KIND_ENUM64 has been firstly introduced and this is the latest
+BTF_KIND_* enumaration to be added to libtraceevent. So let's check
+in runtime, both in Makefile and meson, if BTF_KIND_ENUM64 does exist.
+If it's not there let's disable btf support.
+
+Upstream: https://lore.kernel.org/linux-trace-devel/[email protected]/
+
+Signed-off-by: Steven Rostedt (Google) <[email protected]>
+Co-authored-by: Giulio Benetti <[email protected]>
+Signed-off-by: Giulio Benetti <[email protected]>
+---
+ Makefile        | 28 +++++++++++++++++++++-------
+ src/meson.build | 12 ++++++++++++
+ src/trace-btf.c | 31 +++++++++++++++++++++++++++++--
+ 3 files changed, 62 insertions(+), 9 deletions(-)
+
+diff --git a/Makefile b/Makefile
+index e1a10a0..bd88a98 100644
+--- a/Makefile
++++ b/Makefile
+@@ -27,6 +27,13 @@ $(call allow-override,PKG_CONFIG,pkg-config)
+ $(call allow-override,LD_SO_CONF_PATH,/etc/ld.so.conf.d/)
+ $(call allow-override,LDCONFIG,ldconfig)
+ 
++# Set compile option CFLAGS
++ifdef EXTRA_CFLAGS
++  CFLAGS ?= $(EXTRA_CFLAGS)
++else
++  CFLAGS ?= -g -Wall
++endif
++
+ EXT = -std=gnu99
+ INSTALL = install
+ 
+@@ -37,6 +44,20 @@ INSTALL = install
+ DESTDIR ?=
+ DESTDIR_SQ = '$(subst ','\'',$(DESTDIR))'
+ 
++test-build = $(if $(shell sh -c 'echo "$(1)" | tee /tmp/t.c| \
++	$(CC) -o /dev/null -x c - > /dev/null 2>&1 && echo y'), $2)
++
++define BTF_LATEST_SOURCE
++#include <linux/btf.h>
++int main(void) { return BTF_KIND_ENUM64; }
++endef
++
++BTF_OK := $(call test-build,$(BTF_LATEST_SOURCE),y)
++
++ifneq ($(strip $(BTF_OK)), y)
++CFLAGS += -DNO_BTF
++endif
++
+ LP64 := $(shell echo __LP64__ | ${CC} ${CFLAGS} -E -x c - | tail -n 1)
+ ifeq ($(LP64), 1)
+   libdir_relative_temp = lib64
+@@ -123,13 +144,6 @@ INCLUDES = -I. -I $(srctree)/include -I $(EP_HEADERS_DIR) $(CONFIG_INCLUDES)
+ 
+ export LIBTRACEEVENT_STATIC LIBTRACEEVENT_SHARED EP_HEADERS_DIR
+ 
+-# Set compile option CFLAGS
+-ifdef EXTRA_CFLAGS
+-  CFLAGS := $(EXTRA_CFLAGS)
+-else
+-  CFLAGS := -g -Wall
+-endif
+-
+ LIBS ?= -ldl
+ export LIBS
+ 
+diff --git a/src/meson.build b/src/meson.build
+index 3a7a082..2432dd8 100644
+--- a/src/meson.build
++++ b/src/meson.build
+@@ -17,6 +17,18 @@ sources= [
+ cc = meson.get_compiler('c')
+ dl_dep = cc.find_library('dl')
+ 
++btf_enum64_test_code = '''
++#include <linux/btf.h>
++int main(void) {
++    int x = BTF_KIND_ENUM64;
++    return 0;
++}
++'''
++
++if not cc.compiles(btf_enum64_test_code, name : 'BTF_KIND_ENUM64 check')
++    add_project_arguments('-DNO_BTF', language : 'c')
++endif
++
+ libtraceevent = library(
+     'traceevent',
+     sources,
+diff --git a/src/trace-btf.c b/src/trace-btf.c
+index 859b086..52e933c 100644
+--- a/src/trace-btf.c
++++ b/src/trace-btf.c
+@@ -8,12 +8,13 @@
+ #include <stdlib.h>
+ #include <stdbool.h>
+ 
+-#include <linux/btf.h>
+-
+ #include "event-parse.h"
+ #include "event-utils.h"
+ #include "event-parse-local.h"
+ 
++#ifndef NO_BTF
++#include <linux/btf.h>
++
+ struct btf_header;
+ struct btf_type;
+ 
+@@ -210,17 +211,24 @@ static int load_types(struct tep_btf *btf)
+ 	qsort_r(btf->funcs, btf->nr_funcs, sizeof(btf->funcs[0]), cmp_funcs, btf);
+ 	return 0;
+ }
++#endif
+ 
+ __hidden void btf_free(struct tep_btf *btf)
+ {
++#ifdef NO_BTF
++	tep_warning("BTF not supported.\n");
++	return;
++#else
+ 	if (!btf)
+ 		return;
+ 
+ 	free(btf->types);
+ 	free(btf->funcs);
+ 	free(btf->raw_data);
++#endif
+ }
+ 
++#ifndef NO_BTF
+ static struct tep_btf *btf_init(void *raw_data, size_t data_size)
+ {
+ 	struct tep_btf *btf;
+@@ -271,6 +279,7 @@ static struct tep_btf *btf_init(void *raw_data, size_t data_size)
+ 	btf_free(btf);
+ 	return NULL;
+ }
++#endif
+ 
+ /**
+  * tep_load_btf - Load BTF information into a tep handle
+@@ -285,6 +294,10 @@ static struct tep_btf *btf_init(void *raw_data, size_t data_size)
+  */
+ int tep_load_btf(struct tep_handle *tep, void *raw_data, size_t data_size)
+ {
++#ifdef NO_BTF
++	tep_warning("BTF not supported.\n");
++	return -1;
++#else
+ 	/* If btf was already loaded, free it */
+ 	btf_free(tep->btf);
+ 
+@@ -292,8 +305,10 @@ int tep_load_btf(struct tep_handle *tep, void *raw_data, size_t data_size)
+ 	if (!tep->btf)
+ 		return -1;
+ 	return 0;
++#endif
+ }
+ 
++#ifndef NO_BTF
+ static struct btf_type *btf_get_type(struct tep_btf *btf, int id)
+ {
+ 	if (!id || id > btf->nr_types)
+@@ -457,6 +472,7 @@ static int init_btf_func(struct tep_btf *btf, struct trace_seq *s,
+ 
+ 	return 0;
+ }
++#endif
+ 
+ /**
+  * tep_btf_list_args - List the arguments (type and name) for a function
+@@ -471,6 +487,10 @@ static int init_btf_func(struct tep_btf *btf, struct trace_seq *s,
+  */
+ int tep_btf_list_args(struct tep_handle *tep, struct trace_seq *s, const char *func)
+ {
++#ifdef NO_BTF
++	tep_warning("BTF not supported.\n");
++	return -1;
++#else
+ 	struct tep_btf *btf = tep->btf;
+ 	struct btf_type *type = tep_btf_find_func(btf, func);
+ 	struct btf_param *param;
+@@ -520,6 +540,7 @@ int tep_btf_list_args(struct tep_handle *tep, struct trace_seq *s, const char *f
+ 			trace_seq_printf(s, "%s", param_name);
+ 	}
+ 	return p;
++#endif
+ }
+ 
+ /**
+@@ -543,6 +564,11 @@ int tep_btf_list_args(struct tep_handle *tep, struct trace_seq *s, const char *f
+ int tep_btf_print_args(struct tep_handle *tep, struct trace_seq *s, void *args,
+ 		       int nmem, int size, const char *func)
+ {
++#ifdef NO_BTF
++	tep_warning("BTF not supported. Args:\n"
++		    "args: %08x, nmem: %d, size: %d, func: %08x\n");
++	return -1;
++#else
+ 	struct tep_btf *btf = tep->btf;
+ 	struct btf_type *type = tep_btf_find_func(btf, func);
+ 	struct btf_param *param;
+@@ -646,4 +672,5 @@ int tep_btf_print_args(struct tep_handle *tep, struct trace_seq *s, void *args,
+ 		}
+ 	}
+ 	return 0;
++#endif
+ }
+-- 
+2.47.3
+
package/libtraceevent/libtraceevent.hash +1 -1
index 890e1294e6..41e130f35e 100644
@@ -1,4 +1,4 @@
 # Locally computed
-sha256  cec7167e885d2f022bc5a2b0f2c0c58110fa0575e5dba49d7b694f0a6fd7fa0c  libtraceevent-1.8.7.tar.gz
+sha256  3bc19dd940914260ba591b5276723bf84bb43f82c7c3d4267622bee4d016ea55  libtraceevent-1.9.1.tar.gz
 sha256  f6b78c087c3ebdf0f3c13415070dd480a3f35d8fc76f3d02180a407c1c812f79  LICENSES/GPL-2.0
 sha256  0b9a4febcdee6de55872501d5c1a8f5d8b0d1650cd4d5351995ceb22e889f8ca  LICENSES/LGPL-2.1
package/libtraceevent/libtraceevent.mk +1 -1
index d0de336de0..29a3c26c27 100644
@@ -4,7 +4,7 @@
 #
 ################################################################################
 
-LIBTRACEEVENT_VERSION = 1.8.7
+LIBTRACEEVENT_VERSION = 1.9.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
Signature · 6 lines
2.47.3

_______________________________________________
buildroot mailing list
[email protected]
https://lists.buildroot.org/mailman/listinfo/buildroot
#1 lore raw

PATCH v2 2/3 package/libtracefs: bump to version 1.8.4

Release notes:
https://git.kernel.org/pub/scm/libs/libtrace/libtracefs.git/tag/?h=libtracefs-1.8.4

---
V1->V2:
* no change

---
 package/libtracefs/libtracefs.hash | 2 +-
 package/libtracefs/libtracefs.mk   | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)
package/libtracefs/libtracefs.hash +1 -1
index d4f6b95094..18e6631367 100644
@@ -1,4 +1,4 @@
 # Locally computed
-sha256  a9cd9cbae81b7fff71b3f72d2b819e49cec0402529e5f252e1d9319a62a356cb  libtracefs-1.8.3.tar.gz
+sha256  75187bad93e622c94c4a691173e45f08948d38b9a28e9b855b54a3e956d289a6  libtracefs-1.8.4.tar.gz
 sha256  f6b78c087c3ebdf0f3c13415070dd480a3f35d8fc76f3d02180a407c1c812f79  LICENSES/GPL-2.0
 sha256  0b9a4febcdee6de55872501d5c1a8f5d8b0d1650cd4d5351995ceb22e889f8ca  LICENSES/LGPL-2.1
package/libtracefs/libtracefs.mk +1 -1
index e9e577d985..16507ced21 100644
@@ -4,7 +4,7 @@
 #
 ################################################################################
 
-LIBTRACEFS_VERSION = 1.8.3
+LIBTRACEFS_VERSION = 1.8.4
 LIBTRACEFS_SITE = https://git.kernel.org/pub/scm/libs/libtrace/libtracefs.git/snapshot
 LIBTRACEFS_INSTALL_STAGING = YES
 LIBTRACEFS_LICENSE = GPL-2.0, LGPL-2.1
Signature · 6 lines
2.47.3

_______________________________________________
buildroot mailing list
[email protected]
https://lists.buildroot.org/mailman/listinfo/buildroot
#2 lore raw

PATCH v2 3/3 package/trace-cmd: bump to version 3.4

In reply to Giulio Benetti

Release notes:
https://git.kernel.org/pub/scm/utils/trace-cmd/trace-cmd.git/tag/?h=trace-cmd-v3.4

---
V1->V2:
* no change

---
 package/trace-cmd/trace-cmd.hash | 2 +-
 package/trace-cmd/trace-cmd.mk   | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)
package/trace-cmd/trace-cmd.hash +1 -1
index fa61654fd5..ee63bdc55e 100644
@@ -1,5 +1,5 @@
 # Locally computed
-sha256  8ed41f61010998e4a1ba54778f9077ee7afb5311d38dca9781d7a397dd70c9d4  trace-cmd-v3.3.3.tar.gz
+sha256  604085ab395cc2cb84397dc3d209ea0d0b15ae506f8ea91ff45c86e5a050213c  trace-cmd-v3.4.tar.gz
 sha256  b1d04b850c1c7471b0f0896f6c6f0fcfc9f07e2dd183a5f5826af269fe9e88fb  COPYING
 sha256  70f297763149e72306919c924e164f83041d5e512868d4c8c1826c171b3e49f9  COPYING.LIB
 sha256  f6b78c087c3ebdf0f3c13415070dd480a3f35d8fc76f3d02180a407c1c812f79  LICENSES/GPL-2.0
package/trace-cmd/trace-cmd.mk +1 -1
index a1b17289cd..f976176a5b 100644
@@ -4,7 +4,7 @@
 #
 ################################################################################
 
-TRACE_CMD_VERSION = 3.3.3
+TRACE_CMD_VERSION = 3.4
 TRACE_CMD_SOURCE = trace-cmd-v$(TRACE_CMD_VERSION).tar.gz
 TRACE_CMD_SITE = \
 	https://git.kernel.org/pub/scm/utils/trace-cmd/trace-cmd.git/snapshot
Signature · 6 lines
2.47.3

_______________________________________________
buildroot mailing list
[email protected]
https://lists.buildroot.org/mailman/listinfo/buildroot
#3 lore raw
In reply to Giulio Benetti
Quoted 7 lines · Giulio Benetti

Add patch pending upstream:
https://lore.kernel.org/linux-trace-devel/[email protected]/

Release notes:
https://git.kernel.org/pub/scm/libs/libtrace/libtraceevent.git/tag/?h=libtraceevent-1.9.1

Series applied to master, thanks.
_______________________________________________
buildroot mailing list
[email protected]
https://lists.buildroot.org/mailman/listinfo/buildroot