lmbench: refresh local patches to avoid fuzz warnings
PATCH 1/1 lmbench: refresh local patches to avoid fuzz warnings
From: Denys Dmytriyenko <[email protected]>
Signed-off-by Denys Dmytriyenko <[email protected]>
--- ...usl-define-guard-before-redefining-sockle.patch | 8 +-- .../0001-lat_http.c-Add-printf-format.patch | 6 +- ...t-CFLAGS-LDFLAGS-to-append-values-passed-.patch | 9 +-- .../fix-lmbench-memory-check-failure.patch | 53 ++++++++------ .../lmbench_result_html_report.patch | 12 +++- .../lmbench/lmbench-3.0-a9/obey-ranlib.patch | 18 +++-- .../lmbench-3.0-a9/update-config-script.patch | 18 +++-- .../lmbench-3.0-a9/update-results-script.patch | 84 ++++++++++++---------- .../use-base_libdir-instead-of-hardcoded-lib.patch | 10 ++- .../0001-avoid-gcc-optimize-away-the-loops.patch | 9 +-- .../lmbench/lmbench/rename-line-binary.patch | 15 +++- 11 files changed, 144 insertions(+), 98 deletions(-)
meta-oe/recipes-benchmark/lmbench/lmbench-3.0-a9/0001-Check-for-musl-define-guard-before-redefining-sockle.patch +3 -5
@@ -1,12 +1,13 @@ -From 31d58ed7e6552781f415501e96d7cc74f83b910d Mon Sep 17 00:00:00 2001 +From ac1657e11cbb0545bdf4d1124def8c013958ed7e Mon Sep 17 00:00:00 2001 From: Khem Raj <[email protected]> Date: Wed, 12 Jul 2017 18:08:51 -0700 -Subject: [PATCH 1/2] Check for musl define guard before redefining socklen_t +Subject: [PATCH] Check for musl define guard before redefining socklen_t musl uses __DEFINED_socklen_t so check for that as well along with HAVE_socklen_t Signed-off-by: Khem Raj <[email protected]> + --- src/bench.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
@@ -24,6 +25,3 @@ index 597d068..2ebdf5a 100644 typedef int socklen_t; #endif --- -2.13.2 -
meta-oe/recipes-benchmark/lmbench/lmbench-3.0-a9/0001-lat_http.c-Add-printf-format.patch +2 -4
@@ -1,9 +1,10 @@ -From 6faa6acdf20aa6f738eed1483b7dceed94286adb Mon Sep 17 00:00:00 2001 +From 7c05fa5353ad91acae6e5e8a01f65d54935ef778 Mon Sep 17 00:00:00 2001 From: Khem Raj <[email protected]> Date: Tue, 27 Jun 2017 14:39:10 -0700 Subject: [PATCH] lat_http.c: Add printf format Signed-off-by: Khem Raj <[email protected]> + --- src/lat_http.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
@@ -21,6 +22,3 @@ index c630d59..28d04f7 100644 } write(sock, buf, strlen(buf)); while ((n = read(sock, buf, XFERSIZE)) > 0) { --- -2.13.2 -
meta-oe/recipes-benchmark/lmbench/lmbench-3.0-a9/0002-build-Adjust-CFLAGS-LDFLAGS-to-append-values-passed-.patch +3 -6
@@ -1,13 +1,13 @@ -From 76f3a9abc2ff96155425ef97d8c5520cfbc8fe6a Mon Sep 17 00:00:00 2001 +From b27c253bfb78fa3c5f416e6caee101098a4b58cc Mon Sep 17 00:00:00 2001 From: Khem Raj <[email protected]> Date: Wed, 12 Jul 2017 18:09:46 -0700 -Subject: [PATCH 2/2] build: Adjust CFLAGS/LDFLAGS to append values passed from - env +Subject: [PATCH] build: Adjust CFLAGS/LDFLAGS to append values passed from env For musl we have to pass additional arguments via cflags and ldflags to link in librirpc, make room for those changes to take effect Signed-off-by: Khem Raj <[email protected]> + --- scripts/build | 2 +- src/Makefile | 14 +++++++-------
@@ -71,6 +71,3 @@ index d9efd54..96467d7 100644 tag: --- -2.13.2 -
meta-oe/recipes-benchmark/lmbench/lmbench-3.0-a9/fix-lmbench-memory-check-failure.patch +31 -22
118 lines not on this page · raw message
meta-oe/recipes-benchmark/lmbench/lmbench-3.0-a9/lmbench_result_html_report.patch +10 -2
@@ -1,4 +1,7 @@ -lmbench: Fix "make html" graph failure +From b21ca9f3911628fb66f308c6916485bbbcfb29a4 Mon Sep 17 00:00:00 2001 +From: Lin Yu <[email protected]> +Date: Tue, 19 Aug 2014 05:16:16 -0400 +Subject: [PATCH] lmbench: Fix "make html" graph failure The html-list perl script cannot parse the first line of the result files about the lmbench version.
@@ -14,6 +17,11 @@ Upstream-status: inappropriate [ configuration ] Signed-off-by: Mark Hatle <[email protected]> +--- + results/Makefile | 1 + + scripts/html-list | 7 ++----- + 2 files changed, 3 insertions(+), 5 deletions(-) + diff --git a/results/Makefile b/results/Makefile index 0935376..1ef9a15 100644 --- a/results/Makefile
@@ -38,7 +46,7 @@ index 9850461..6383115 100755 +<h2><a href=summary.out>Summary of results</a></h2> <hr> EOF - + @@ -47,7 +47,7 @@ foreach $os (@os) { open(F, $file); $_ = <F>;
meta-oe/recipes-benchmark/lmbench/lmbench-3.0-a9/obey-ranlib.patch +12 -6
@@ -1,16 +1,22 @@ +From 182a5d3dba3f440bbf35551da6d21ab1c990eb58 Mon Sep 17 00:00:00 2001 +From: Noor Ahsan <[email protected]> +Date: Mon, 29 Aug 2011 16:17:51 +0000 +Subject: [PATCH] lmbench: Add version 3.0-a9 (initial recipe) + In some cases the host may have too old of a ranlib to work. Since it's not exactly a great idea to not be using the cross ranlib anyhow, fix the Makefile so we can override ranlib and then override it Upstream-Status: Inappropriate [build system specific change] + --- - src/Makefile | 3 ++- + src/Makefile | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) -Index: lmbench-3.0-a9/src/Makefile -=================================================================== ---- lmbench-3.0-a9.orig/src/Makefile -+++ lmbench-3.0-a9/src/Makefile +diff --git a/src/Makefile b/src/Makefile +index 4962815..c7a8c79 100644 +--- a/src/Makefile ++++ b/src/Makefile @@ -38,6 +38,7 @@ CC=`../scripts/compiler` MAKE=`../scripts/make` AR=ar
@@ -19,7 +25,7 @@ Index: lmbench-3.0-a9/src/Makefile # base of installation location BASE=/usr/local -@@ -217,7 +218,7 @@ $O/lmbench : ../scripts/lmbench version. +@@ -217,7 +218,7 @@ $O/lmbench : ../scripts/lmbench version.h $O/lmbench.a: $(LIBOBJS) /bin/rm -f $O/lmbench.a $(AR) $(ARCREATE) $O/lmbench.a $(LIBOBJS)
meta-oe/recipes-benchmark/lmbench/lmbench-3.0-a9/update-config-script.patch +14 -4
@@ -1,8 +1,18 @@ +From aca1a59d888421c1fc553229b8049be47e8b3ddf Mon Sep 17 00:00:00 2001 +From: Chunrong Guo <[email protected]> +Date: Fri, 1 Mar 2013 09:50:42 +0000 +Subject: [PATCH] lmbench: update config script + Upstream-Status: Pending -Index: lmbench-3.0-a9/scripts/config -=================================================================== ---- lmbench-3.0-a9/scripts/config 2000-01-31 18:29:31.000000000 -0600 -+++ lmbench-3.0-a9/scripts/config 2013-03-01 00:19:41.032984315 -0600 + +--- + scripts/config | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +diff --git a/scripts/config b/scripts/config +index b58cb60..25d9d77 100755 +--- a/scripts/config ++++ b/scripts/config @@ -3,5 +3,5 @@ UNAME=`uname -n 2>/dev/null` if [ X$UNAME = X ]
meta-oe/recipes-benchmark/lmbench/lmbench-3.0-a9/update-results-script.patch +47 -37
102 lines not on this page · raw message
meta-oe/recipes-benchmark/lmbench/lmbench-3.0-a9/use-base_libdir-instead-of-hardcoded-lib.patch +4 -6
@@ -1,4 +1,4 @@ -From 0d09e31970616e09beb7f238c2b59bfc541148fb Mon Sep 17 00:00:00 2001 +From 73fdc58ca4eb9e2f24d854b3af3a4e5daac5a33e Mon Sep 17 00:00:00 2001 From: Ting Liu <[email protected]> Date: Fri, 22 Nov 2013 15:20:08 +0800 Subject: [PATCH] use base_libdir instead of hardcoded /lib
@@ -6,9 +6,10 @@ Subject: [PATCH] use base_libdir instead of hardcoded /lib Upsteam Status: Inappropriate [configuration] Signed-off-by: Ting Liu <[email protected]> + --- - src/Makefile | 4 ++-- - 1 files changed, 2 insertions(+), 2 deletions(-) + src/Makefile | 4 ++-- + 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Makefile b/src/Makefile index c7a8c79..c7e4e3c 100644
@@ -27,6 +28,3 @@ index c7a8c79..c7e4e3c 100644 cd ../doc; env MAKEFLAGS="$(MAKEFLAGS)" make CC="${CC}" OS="${OS}" BASE="$(BASE)" install --- -1.7.5.4 -
meta-oe/recipes-benchmark/lmbench/lmbench/0001-avoid-gcc-optimize-away-the-loops.patch +5 -4
@@ -1,4 +1,7 @@ -[PATCH] avoid gcc optimize-away the loops +From 25738bb9c75f94b451201acfd6bcab13bdeee512 Mon Sep 17 00:00:00 2001 +From: Roy Li <[email protected]> +Date: Thu, 5 May 2016 09:52:01 +0800 +Subject: [PATCH] [PATCH] avoid gcc optimize-away the loops Upstream-Status: pending
@@ -15,6 +18,7 @@ and TEN is macro: #define TEN(a) a a a a a a a a a a Signed-off-by: Roy Li <[email protected]> + --- src/lat_ops.c | 30 +++++++++++++++++++++++++----- 1 file changed, 25 insertions(+), 5 deletions(-)
@@ -74,6 +78,3 @@ index d343ff3..457072b 100644 } use_int((int)r); } --- -2.8.1 -
meta-oe/recipes-benchmark/lmbench/lmbench/rename-line-binary.patch +13 -2
@@ -1,3 +1,8 @@ +From 16823f5c3d3d5adad0b70e9055c08cb4e18d255b Mon Sep 17 00:00:00 2001 +From: Noor Ahsan <[email protected]> +Date: Mon, 29 Aug 2011 16:17:51 +0000 +Subject: [PATCH] lmbench: Add version 3.0-a9 (initial recipe) + Both lmbench and util-linux-ng packages provide own /usr/bin/line binaries. Even though the binaries name is the same, their functionality is different. This patch renames lmbench's line binary as lm_line to avoid conflicts with
@@ -6,8 +11,14 @@ instead of line. Upstream-Status: Inappropriate [build system specific change] ---- patches/scripts/config-run 2006-11-26 15:11:04.000000000 -0500 -+++ patches/scripts/config-run 2011-04-01 09:35:50.000000000 -0400 +--- + scripts/config-run | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +diff --git a/scripts/config-run b/scripts/config-run +index f620c15..a2d5ba4 100755 +--- a/scripts/config-run ++++ b/scripts/config-run @@ -224,7 +224,7 @@ fi echo "Hang on, we are calculating your cache line size."
Signature · 1 line
2.7.4