summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--meta-oe/recipes-kernel/libtracefs/libtracefs/0001-tracefs-perf-Add-missing-headers-for-syscall-and-SYS.patch31
-rw-r--r--meta-oe/recipes-kernel/libtracefs/libtracefs_1.7.0.bb1
2 files changed, 32 insertions, 0 deletions
diff --git a/meta-oe/recipes-kernel/libtracefs/libtracefs/0001-tracefs-perf-Add-missing-headers-for-syscall-and-SYS.patch b/meta-oe/recipes-kernel/libtracefs/libtracefs/0001-tracefs-perf-Add-missing-headers-for-syscall-and-SYS.patch
new file mode 100644
index 0000000000..a24dd1315b
--- /dev/null
+++ b/meta-oe/recipes-kernel/libtracefs/libtracefs/0001-tracefs-perf-Add-missing-headers-for-syscall-and-SYS.patch
@@ -0,0 +1,31 @@
1From f539d96ef4a34ad23d33c552d1770ab429b0220e Mon Sep 17 00:00:00 2001
2From: Khem Raj <raj.khem@gmail.com>
3Date: Wed, 14 Jun 2023 00:24:36 -0700
4Subject: [PATCH] tracefs-perf: Add missing headers for syscall() and SYS_*
5 defines
6
7These headers are needed to provide prototype definitions for functions
8e.g. close(), syscall(), getpagesize(), getpid()
9
10The issue is observed with clang-16+ compiler on musl systems
11
12Upstream-Status: Submitted [https://lore.kernel.org/linux-trace-devel/20230614072759.316154-1-raj.khem@gmail.com/T/#u]
13Signed-off-by: Khem Raj <raj.khem@gmail.com>
14---
15 src/tracefs-perf.c | 3 ++-
16 1 file changed, 2 insertions(+), 1 deletion(-)
17
18diff --git a/src/tracefs-perf.c b/src/tracefs-perf.c
19index 96d12cd..62c1508 100644
20--- a/src/tracefs-perf.c
21+++ b/src/tracefs-perf.c
22@@ -1,4 +1,5 @@
23-#include <asm/unistd.h>
24+#include <unistd.h>
25+#include <sys/syscall.h>
26 #include <sys/mman.h>
27 #include <signal.h>
28 #include <linux/perf_event.h>
29--
302.41.0
31
diff --git a/meta-oe/recipes-kernel/libtracefs/libtracefs_1.7.0.bb b/meta-oe/recipes-kernel/libtracefs/libtracefs_1.7.0.bb
index 77556d9126..9a408ba13c 100644
--- a/meta-oe/recipes-kernel/libtracefs/libtracefs_1.7.0.bb
+++ b/meta-oe/recipes-kernel/libtracefs/libtracefs_1.7.0.bb
@@ -12,6 +12,7 @@ DEPENDS = "libtraceevent bison-native flex-native"
12SRCREV = "aebab37379d0fbadc702d64aca0fe5cf18676404" 12SRCREV = "aebab37379d0fbadc702d64aca0fe5cf18676404"
13SRC_URI = "git://git.kernel.org/pub/scm/libs/libtrace/libtracefs.git;branch=${BPN};protocol=https \ 13SRC_URI = "git://git.kernel.org/pub/scm/libs/libtrace/libtracefs.git;branch=${BPN};protocol=https \
14 file://0001-makefile-Do-not-preserve-ownership-in-cp-command.patch \ 14 file://0001-makefile-Do-not-preserve-ownership-in-cp-command.patch \
15 file://0001-tracefs-perf-Add-missing-headers-for-syscall-and-SYS.patch \
15 " 16 "
16S = "${WORKDIR}/git" 17S = "${WORKDIR}/git"
17 18