From: "Alexander Kanavin" <alex.kanavin@gmail.com>
To: openembedded-core@lists.openembedded.org
Cc: Alexander Kanavin <alex.kanavin@gmail.com>
Subject: [PATCH 34/55] stress-ng: upgrade 0.12.12 -> 0.13.00
Date: Sun, 22 Aug 2021 14:50:42 +0200 [thread overview]
Message-ID: <20210822125103.310416-34-alex.kanavin@gmail.com> (raw)
In-Reply-To: <20210822125103.310416-1-alex.kanavin@gmail.com>
Signed-off-by: Alexander Kanavin <alex.kanavin@gmail.com>
---
...-stack-size-via-sysconf-then-PTHREAD.patch | 103 ------------------
...ess-ng_0.12.12.bb => stress-ng_0.13.00.bb} | 3 +-
2 files changed, 1 insertion(+), 105 deletions(-)
delete mode 100644 meta/recipes-extended/stress-ng/stress-ng/0001-Detemine-minimal-stack-size-via-sysconf-then-PTHREAD.patch
rename meta/recipes-extended/stress-ng/{stress-ng_0.12.12.bb => stress-ng_0.13.00.bb} (81%)
diff --git a/meta/recipes-extended/stress-ng/stress-ng/0001-Detemine-minimal-stack-size-via-sysconf-then-PTHREAD.patch b/meta/recipes-extended/stress-ng/stress-ng/0001-Detemine-minimal-stack-size-via-sysconf-then-PTHREAD.patch
deleted file mode 100644
index d275e3d7f9..0000000000
--- a/meta/recipes-extended/stress-ng/stress-ng/0001-Detemine-minimal-stack-size-via-sysconf-then-PTHREAD.patch
+++ /dev/null
@@ -1,103 +0,0 @@
-From f839de283c44ffe46a2d14bfdf854c145abd8ed6 Mon Sep 17 00:00:00 2001
-From: Colin Ian King <colin.king@canonical.com>
-Date: Mon, 19 Jul 2021 20:49:34 +0100
-Subject: [PATCH] Detemine minimal stack size via sysconf, then PTHREAD_STACK_MIN then guess
-
-Don't rely on PTHREAD_STACK_MIN being defined, use sysconf, then
-PTHREAD_STACK_MIN if it is defined, then 8K default.
-
-Upstream-Status: Backport [https://kernel.ubuntu.com/git/cking/stress-ng.git/commit/?id=f839de283c44ffe46a2d14bfdf854c145abd8ed6]
-Signed-off-by: Colin Ian King <colin.king@canonical.com>
----
- core-helper.c | 31 +++++++++++++++++++++++++++++++
- stress-ng.h | 1 +
- stress-pthread.c | 13 ++-----------
- 3 files changed, 34 insertions(+), 11 deletions(-)
-
-diff --git a/core-helper.c b/core-helper.c
-index 508627f2..97a3b869 100644
---- a/core-helper.c
-+++ b/core-helper.c
-@@ -2494,6 +2494,37 @@ size_t stress_min_sig_stack_size(void)
- return (size_t)sz;
- }
-
-+size_t stress_min_pthread_stack_size(void)
-+{
-+ static long sz = -1, min;
-+
-+ /* return cached copy */
-+ if (sz > 0)
-+ return sz;
-+
-+ min = stress_min_aux_sig_stack_size();
-+#if defined(__SC_THREAD_STACK_MIN_VALUE)
-+ sz = sysconf(__SC_THREAD_STACK_MIN_VALUE);
-+ if (sz > min)
-+ min = sz;
-+#endif
-+#if defined(_SC_THREAD_STACK_MIN_VALUE)
-+ sz = sysconf(_SC_THREAD_STACK_MIN_VALUE);
-+ if (sz > min)
-+ min = sz;
-+#endif
-+#if defined(PTHREAD_STACK_MIN)
-+ if (PTHREAD_STACK_MIN > min)
-+ min = PTHREAD_STACK_MIN;
-+#endif
-+ if (8192 > min)
-+ min = 8192;
-+
-+ sz = min;
-+
-+ return (size_t)sz;
-+}
-+
- /*
- * stress_sig_handler_exit()
- * signal handler that exits a process via _exit(0) for
-diff --git a/stress-ng.h b/stress-ng.h
-index 8a8b17ae..cd744756 100644
---- a/stress-ng.h
-+++ b/stress-ng.h
-@@ -4056,6 +4056,7 @@ extern WARN_UNUSED int32_t stress_get_opt_ionice_class(const char *const str);
- /* Misc helper funcs */
- extern WARN_UNUSED size_t stress_sig_stack_size(void);
- extern WARN_UNUSED size_t stress_min_sig_stack_size(void);
-+extern WARN_UNUSED size_t stress_min_pthread_stack_size(void);
-
- #define STRESS_SIGSTKSZ (stress_sig_stack_size())
- #define STRESS_MINSIGSTKSZ (stress_min_sig_stack_size())
-diff --git a/stress-pthread.c b/stress-pthread.c
-index 0da3aeec..27777af8 100644
---- a/stress-pthread.c
-+++ b/stress-pthread.c
-@@ -69,12 +69,7 @@ static const stress_opt_set_func_t opt_set_funcs[] = {
-
- #if defined(HAVE_LIB_PTHREAD)
-
--/* Some systems such as GNU/HURD don't define PTHREAD_STACK_MIN */
--#if !defined(PTHREAD_STACK_MIN)
--#define PTHREAD_STACK_MIN (16 * KB)
--#endif
--
--#define DEFAULT_STACK_MIN (16 * KB)
-+#define DEFAULT_STACK_MIN (8 * KB)
-
- #if defined(HAVE_GET_ROBUST_LIST) && \
- defined(HAVE_LINUX_FUTEX_H)
-@@ -404,11 +399,7 @@ static int stress_pthread(const stress_args_t *args)
- stress_pthread_args_t pargs = { args, NULL, 0 };
- sigset_t set;
- #if defined(HAVE_PTHREAD_ATTR_SETSTACK)
--#if DEFAULT_STACK_MIN == PTHREAD_STACK_MIN
-- const size_t stack_size = PTHREAD_STACK_MIN;
--#else
-- const size_t stack_size = STRESS_MAXIMUM(DEFAULT_STACK_MIN, PTHREAD_STACK_MIN);
--#endif
-+ const size_t stack_size = STRESS_MAXIMUM(DEFAULT_STACK_MIN, stress_min_pthread_stack_size());
- #endif
-
- keep_running_flag = true;
---
-2.32.0
diff --git a/meta/recipes-extended/stress-ng/stress-ng_0.12.12.bb b/meta/recipes-extended/stress-ng/stress-ng_0.13.00.bb
similarity index 81%
rename from meta/recipes-extended/stress-ng/stress-ng_0.12.12.bb
rename to meta/recipes-extended/stress-ng/stress-ng_0.13.00.bb
index afc9ddf96c..198f7e87c7 100644
--- a/meta/recipes-extended/stress-ng/stress-ng_0.12.12.bb
+++ b/meta/recipes-extended/stress-ng/stress-ng_0.13.00.bb
@@ -7,9 +7,8 @@ LIC_FILES_CHKSUM = "file://COPYING;md5=b234ee4d69f5fce4486a80fdaf4a4263"
SRC_URI = "https://kernel.ubuntu.com/~cking/tarballs/${BPN}/${BP}.tar.xz \
file://0001-Do-not-preserve-ownership-when-installing-example-jo.patch \
- file://0001-Detemine-minimal-stack-size-via-sysconf-then-PTHREAD.patch \
"
-SRC_URI[sha256sum] = "f27af50f6f2308e707fef927674bdd209a046b116734281b792aeca35a4e4499"
+SRC_URI[sha256sum] = "1cefe4a3057c1522b146e62f61b80ce6e2e99da2d85ebe25bc03fc45228e58cd"
DEPENDS = "coreutils-native"
--
2.31.1
next prev parent reply other threads:[~2021-08-22 12:51 UTC|newest]
Thread overview: 57+ messages / expand[flat|nested] mbox.gz Atom feed top
2021-08-22 12:50 [PATCH 01/55] tcf-agent: fetching over git:// no longer works Alexander Kanavin
2021-08-22 12:50 ` [PATCH 02/55] binutils: do not build-depend on target flex/bison/zlib Alexander Kanavin
2021-08-22 13:06 ` [OE-core] " Richard Purdie
2021-08-22 13:51 ` Alexander Kanavin
2021-08-22 12:50 ` [PATCH 03/55] lighttpd: convert from autotools to meson Alexander Kanavin
2021-08-22 12:50 ` [PATCH 04/55] libxcrypt: upgrade 4.4.23 -> 4.4.25 Alexander Kanavin
2021-08-22 12:50 ` [PATCH 05/55] systemd: upgrade 249.1 -> 249.3 Alexander Kanavin
2021-08-22 12:50 ` [PATCH 06/55] python3-cython: upgrade 0.29.23 -> 0.29.24 Alexander Kanavin
2021-08-22 12:50 ` [PATCH 07/55] python3-numpy: upgrade 1.21.0 -> 1.21.2 Alexander Kanavin
2021-08-22 12:50 ` [PATCH 08/55] xeyes: upgrade 1.1.2 -> 1.2.0 Alexander Kanavin
2021-08-22 12:50 ` [PATCH 09/55] btrfs-tools: update 5.13 -> 5.13.1 Alexander Kanavin
2021-08-22 12:50 ` [PATCH 10/55] diffutils: update 3.7 -> 3.8 Alexander Kanavin
2021-08-22 12:50 ` [PATCH 11/55] mc: update 4.8.26 - > 4.8.27 Alexander Kanavin
2021-08-22 12:50 ` [PATCH 12/55] libsdl2: update 2.0.14 -> 2.0.16 Alexander Kanavin
2021-08-22 12:50 ` [PATCH 13/55] vulkan-samples: update to latest revision Alexander Kanavin
2021-08-22 12:50 ` [PATCH 14/55] pulseaudio: update 14.2 -> 15.0 Alexander Kanavin
2021-08-22 12:50 ` [PATCH 15/55] libjitterentropy: update 3.0.2 -> 3.1.0 Alexander Kanavin
2021-08-22 12:50 ` [PATCH 16/55] usbutils: upgrade 013 -> 014 Alexander Kanavin
2021-08-22 12:50 ` [PATCH 17/55] inetutils: upgrade 2.0 -> 2.1 Alexander Kanavin
2021-08-22 12:50 ` [PATCH 18/55] mobile-broadband-provider-info: upgrade 20201225 -> 20210805 Alexander Kanavin
2021-08-22 12:50 ` [PATCH 19/55] glib-networking: upgrade 2.68.1 -> 2.68.2 Alexander Kanavin
2021-08-22 12:50 ` [PATCH 20/55] e2fsprogs: upgrade 1.46.2 -> 1.46.4 Alexander Kanavin
2021-08-22 12:50 ` [PATCH 21/55] help2man: upgrade 1.48.3 -> 1.48.4 Alexander Kanavin
2021-08-22 12:50 ` [PATCH 22/55] libedit: upgrade 20210522-3.1 -> 20210714-3.1 Alexander Kanavin
2021-08-22 12:50 ` [PATCH 23/55] log4cplus: upgrade 2.0.6 -> 2.0.7 Alexander Kanavin
2021-08-22 12:50 ` [PATCH 24/55] mtools: upgrade 4.0.34 -> 4.0.35 Alexander Kanavin
2021-08-22 12:50 ` [PATCH 25/55] patchelf: upgrade 0.12 -> 0.13 Alexander Kanavin
2021-08-22 12:50 ` [PATCH 26/55] pkgconf: upgrade 1.7.4 -> 1.8.0 Alexander Kanavin
2021-08-22 12:50 ` [PATCH 27/55] python3-git: upgrade 3.1.18 -> 3.1.20 Alexander Kanavin
2021-08-22 12:50 ` [PATCH 28/55] python3-pip: upgrade 21.2.1 -> 21.2.4 Alexander Kanavin
2021-08-22 12:50 ` [PATCH 29/55] python3-pygments: upgrade 2.9.0 -> 2.10.0 Alexander Kanavin
2021-08-22 12:50 ` [PATCH 30/55] python3-setuptools: upgrade 57.1.0 -> 57.4.0 Alexander Kanavin
2021-08-22 12:50 ` [PATCH 31/55] squashfs-tools: upgrade 4.4 -> 4.5 Alexander Kanavin
2021-08-22 12:50 ` [PATCH 32/55] acpica: upgrade 20210331 -> 20210730 Alexander Kanavin
2021-08-22 12:50 ` [PATCH 33/55] libidn2: upgrade 2.3.1 -> 2.3.2 Alexander Kanavin
2021-08-22 12:50 ` Alexander Kanavin [this message]
2021-08-22 12:50 ` [PATCH 35/55] sudo: upgrade 1.9.7p1 -> 1.9.7p2 Alexander Kanavin
2021-08-22 12:50 ` [PATCH 36/55] epiphany: upgrade 40.2 -> 40.3 Alexander Kanavin
2021-08-22 12:50 ` [PATCH 37/55] libgudev: upgrade 236 -> 237 Alexander Kanavin
2021-08-22 12:50 ` [PATCH 38/55] libjpeg-turbo: upgrade 2.1.0 -> 2.1.1 Alexander Kanavin
2021-08-22 12:50 ` [PATCH 39/55] libepoxy: upgrade 1.5.8 -> 1.5.9 Alexander Kanavin
2021-08-22 12:50 ` [PATCH 40/55] mesa: upgrade 21.1.5 -> 21.2.1 Alexander Kanavin
2021-08-22 12:50 ` [PATCH 41/55] pango: upgrade 1.48.7 -> 1.48.9 Alexander Kanavin
2021-08-22 12:50 ` [PATCH 42/55] libinput: upgrade 1.18.0 -> 1.18.1 Alexander Kanavin
2021-08-22 12:50 ` [PATCH 43/55] libxfont2: upgrade 2.0.4 -> 2.0.5 Alexander Kanavin
2021-08-22 12:50 ` [PATCH 44/55] libxft: upgrade 2.3.3 -> 2.3.4 Alexander Kanavin
2021-08-22 12:50 ` [PATCH 45/55] xserver-xorg: upgrade 1.20.12 -> 1.20.13 Alexander Kanavin
2021-08-22 12:50 ` [PATCH 46/55] linux-firmware: upgrade 20210511 -> 20210818 Alexander Kanavin
2021-08-22 12:50 ` [PATCH 47/55] wireless-regdb: upgrade 2021.04.21 -> 2021.07.14 Alexander Kanavin
2021-08-22 12:50 ` [PATCH 48/55] libwebp: upgrade 1.2.0 -> 1.2.1 Alexander Kanavin
2021-08-22 12:50 ` [PATCH 49/55] webkitgtk: upgrade 2.32.2 -> 2.32.3 Alexander Kanavin
2021-08-22 12:50 ` [PATCH 50/55] boost: upgrade 1.76.0 -> 1.77.0 Alexander Kanavin
2021-08-22 12:50 ` [PATCH 51/55] diffoscope: upgrade 179 -> 181 Alexander Kanavin
2021-08-22 12:51 ` [PATCH 52/55] enchant2: upgrade 2.3.0 -> 2.3.1 Alexander Kanavin
2021-08-22 12:51 ` [PATCH 53/55] re2c: upgrade 2.1.1 -> 2.2 Alexander Kanavin
2021-08-22 12:51 ` [PATCH 54/55] rng-tools: upgrade 6.13 -> 6.14 Alexander Kanavin
2021-08-22 12:51 ` [PATCH 55/55] kea: backport a patch to fix build errors exposed by latest update batch Alexander Kanavin
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20210822125103.310416-34-alex.kanavin@gmail.com \
--to=alex.kanavin@gmail.com \
--cc=openembedded-core@lists.openembedded.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox