aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKhem Raj <raj.khem@gmail.com>2021-06-15 17:45:18 -0700
committerKhem Raj <raj.khem@gmail.com>2021-06-18 08:33:07 -0700
commitb649d4cde487c1b7c0734214d2bb709a7aab9b71 (patch)
tree2dab35c95345f3952f8f399021bbbf7c6eccfc1a
parent7415ed5afd22894574e73a06b3f78688c10639f3 (diff)
downloadmeta-openembedded-contrib-b649d4cde487c1b7c0734214d2bb709a7aab9b71.tar.gz
meta-openembedded-contrib-b649d4cde487c1b7c0734214d2bb709a7aab9b71.tar.bz2
meta-openembedded-contrib-b649d4cde487c1b7c0734214d2bb709a7aab9b71.zip
libpfm4: Upgrade to 4.11.0
Add a patch to fix compiler error with latest clang compiler Signed-off-by: Khem Raj <raj.khem@gmail.com>
-rw-r--r--meta-oe/recipes-kernel/libpfm/libpfm4/0002-perf_examples-Remove-unused-sum-variable.patch44
-rw-r--r--meta-oe/recipes-kernel/libpfm/libpfm4_4.11.0.bb (renamed from meta-oe/recipes-kernel/libpfm/libpfm4_4.10.1.bb)6
2 files changed, 47 insertions, 3 deletions
diff --git a/meta-oe/recipes-kernel/libpfm/libpfm4/0002-perf_examples-Remove-unused-sum-variable.patch b/meta-oe/recipes-kernel/libpfm/libpfm4/0002-perf_examples-Remove-unused-sum-variable.patch
new file mode 100644
index 0000000000..e85ca96fc3
--- /dev/null
+++ b/meta-oe/recipes-kernel/libpfm/libpfm4/0002-perf_examples-Remove-unused-sum-variable.patch
@@ -0,0 +1,44 @@
+From 0b2f611a95f3c93454453892bbe021ad2815925d Mon Sep 17 00:00:00 2001
+From: Khem Raj <raj.khem@gmail.com>
+Date: Tue, 15 Jun 2021 17:35:26 -0700
+Subject: [PATCH] perf_examples: Remove unused 'sum' variable
+
+Fixes
+self_smpl_multi.c:144:19: error: variable 'sum' set but not used [-Werror,-Wunused-but-set-variable]
+ unsigned long x, sum;
+ ^
+Upstream-Status: Pending
+Signed-off-by: Khem Raj <raj.khem@gmail.com>
+---
+ perf_examples/self_smpl_multi.c | 5 +----
+ 1 file changed, 1 insertion(+), 4 deletions(-)
+
+diff --git a/perf_examples/self_smpl_multi.c b/perf_examples/self_smpl_multi.c
+index 391fa61..75b45e0 100644
+--- a/perf_examples/self_smpl_multi.c
++++ b/perf_examples/self_smpl_multi.c
+@@ -141,7 +141,7 @@ void
+ do_cycles(void)
+ {
+ struct timeval start, last, now;
+- unsigned long x, sum;
++ unsigned long x;
+
+ gettimeofday(&start, NULL);
+ last = start;
+@@ -150,15 +150,12 @@ do_cycles(void)
+ iter[myid] = 0;
+
+ do {
+-
+- sum = 1;
+ for (x = 1; x < 250000; x++) {
+ /* signal pending to private queue because of
+ * pthread_kill(), i.e., tkill()
+ */
+ if ((x % 5000) == 0)
+ pthread_kill(pthread_self(), SIGUSR1);
+- sum += x;
+ }
+ iter[myid]++;
+
diff --git a/meta-oe/recipes-kernel/libpfm/libpfm4_4.10.1.bb b/meta-oe/recipes-kernel/libpfm/libpfm4_4.11.0.bb
index ff56d48043..da7d3a49ea 100644
--- a/meta-oe/recipes-kernel/libpfm/libpfm4_4.10.1.bb
+++ b/meta-oe/recipes-kernel/libpfm/libpfm4_4.11.0.bb
@@ -14,9 +14,9 @@ COMPATIBLE_HOST = "powerpc64"
SRC_URI = "${SOURCEFORGE_MIRROR}/perfmon2/${BPN}/libpfm-${PV}.tar.gz \
file://0001-Include-poll.h-instead-of-sys-poll.h.patch \
- "
-SRC_URI[md5sum] = "d8f66cb9bfa7e1434434e0de6409db5b"
-SRC_URI[sha256sum] = "c61c575378b5c17ccfc5806761e4038828610de76e2e34fac9f7fa73ba844b49"
+ file://0002-perf_examples-Remove-unused-sum-variable.patch \
+ "
+SRC_URI[sha256sum] = "5da5f8872bde14b3634c9688d980f68bda28b510268723cc12973eedbab9fecc"
UPSTREAM_CHECK_URI = "http://sourceforge.net/projects/perfmon2/files/libpfm4/"