Hello community,

here is the log from the commit of package stress-ng for openSUSE:Factory 
checked in at 2018-07-18 22:55:13
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/stress-ng (Old)
 and      /work/SRC/openSUSE:Factory/.stress-ng.new (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "stress-ng"

Wed Jul 18 22:55:13 2018 rev:49 rq:623234 version:0.09.34

Changes:
--------
--- /work/SRC/openSUSE:Factory/stress-ng/stress-ng.changes      2018-07-09 
13:31:37.438456407 +0200
+++ /work/SRC/openSUSE:Factory/.stress-ng.new/stress-ng.changes 2018-07-18 
22:55:54.266570008 +0200
@@ -1,0 +2,13 @@
+Tue Jul 17 06:02:34 UTC 2018 - mar...@gmx.de
+
+- Update to version 0.09.34
+  * Makefile: bump version
+  * Ensure all fail log messages set the error to EXIT_FAILURE
+  * Manual: update contributors list
+  * stress-opcode: make child process non-dumpable
+  * Add bcd and utf8 zlib data methods to manual
+  * stress-zlib: add 8 bit UTF-8 data stream
+  * stress-zlib: put BCD data as bytes not 32 bit words
+  * stress-zlib: add bcd data mode
+
+-------------------------------------------------------------------

Old:
----
  stress-ng-0.09.33.tar.xz

New:
----
  stress-ng-0.09.34.tar.xz

++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Other differences:
------------------
++++++ stress-ng.spec ++++++
--- /var/tmp/diff_new_pack.k7qeGw/_old  2018-07-18 22:55:55.066567355 +0200
+++ /var/tmp/diff_new_pack.k7qeGw/_new  2018-07-18 22:55:55.070567342 +0200
@@ -18,7 +18,7 @@
 
 
 Name:           stress-ng
-Version:        0.09.33
+Version:        0.09.34
 Release:        0
 Summary:        Tool to load and stress a computer
 License:        GPL-2.0-only

++++++ stress-ng-0.09.33.tar.xz -> stress-ng-0.09.34.tar.xz ++++++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/stress-ng-0.09.33/Makefile 
new/stress-ng-0.09.34/Makefile
--- old/stress-ng-0.09.33/Makefile      2018-07-05 17:54:54.000000000 +0200
+++ new/stress-ng-0.09.34/Makefile      2018-07-17 00:51:49.000000000 +0200
@@ -16,7 +16,7 @@
 # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, 
USA.
 #
 
-VERSION=0.09.33
+VERSION=0.09.34
 #
 # Codename "portable pressure producer"
 #
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/stress-ng-0.09.33/log.c new/stress-ng-0.09.34/log.c
--- old/stress-ng-0.09.33/log.c 2018-07-05 17:54:54.000000000 +0200
+++ new/stress-ng-0.09.34/log.c 2018-07-17 00:51:49.000000000 +0200
@@ -30,6 +30,22 @@
 static FILE    *log_file = NULL;
 
 /*
+ *  pr_fail_check()
+ *     set rc to EXIT_FAILURE if we detected a pr_fail
+ *     error condition in the logging during a run.
+ *     This is horribly indirect but it allows the main
+ *     stress-ng parent to check that an EXIT_SUCCESS
+ *     is really a failure based on the logging rather
+ *     that each stressor doing it's own failure exit
+ *     return accounting
+ */
+void pr_fail_check(int *const rc)
+{
+       if (abort_msg_emitted && (*rc == EXIT_SUCCESS))
+               *rc = EXIT_FAILURE;
+}
+
+/*
  *  pr_yaml()
  *     print to yaml file if it is open
  */
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/stress-ng-0.09.33/stress-ng.1 
new/stress-ng-0.09.34/stress-ng.1
--- old/stress-ng-0.09.33/stress-ng.1   2018-07-05 17:54:54.000000000 +0200
+++ new/stress-ng-0.09.34/stress-ng.1   2018-07-17 00:51:49.000000000 +0200
@@ -3587,6 +3587,9 @@
 asciidigits    T{
 randomly distributed ASCII digits in the range of 0 and 9
 T}
+bcd    T{
+packed binary coded decimals, 0..99 packed into 2 4-bit nybbles
+T}
 binary T{
 32 bit random numbers
 T}
@@ -3627,6 +3630,9 @@
 text   T{
 random ASCII text
 T}
+utf8   T{
+random 8 bit data encoded to UTF-8
+T}
 zero   T{
 all zeros, compresses very easily
 T}
@@ -3779,11 +3785,11 @@
 .SH AUTHOR
 stress\-ng was written by Colin King <colin.k...@canonical.com> and
 is a clean room re-implementation and extension of the original
-stress tool by Amos Waterland <a...@rossby.metr.ou.edu>. Thanks also for
-contributions from Abdul Haleem, Christian Ehrhardt, James Hunt,
-Jim Rowan, Joseph DeVincentis, Luca Pizzamiglio, Luis Henriques,
-Manoj Iyer, Matthew Tippett, Rob Colclaser, Tim Gardner, Tim Orling
-and Zhiyi Sun.
+stress tool by Amos Waterland. Thanks also for
+contributions from Abdul Haleem, Baruch Siach, Christian Ehrhardt,
+James Hunt, Jim Rowan, Joseph DeVincentis, Luca Pizzamiglio,
+Luis Henriques, Manoj Iyer, Matthew Tippett, Rob Colclaser, Tim Gardner,
+Tim Orling and Zhiyi Sun.
 .SH NOTES
 Sending a SIGALRM, SIGINT or SIGHUP to stress-ng causes it to
 terminate all the stressor processes and ensures temporary files and
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/stress-ng-0.09.33/stress-ng.c 
new/stress-ng-0.09.34/stress-ng.c
--- old/stress-ng-0.09.33/stress-ng.c   2018-07-05 17:54:54.000000000 +0200
+++ new/stress-ng-0.09.34/stress-ng.c   2018-07-17 00:51:49.000000000 +0200
@@ -2483,6 +2483,7 @@
                                                };
 
                                                rc = 
proc_current->stressor->info->stressor(&args);
+                                               pr_fail_check(&rc);
                                                stats->run_ok = (rc == 
EXIT_SUCCESS);
                                        }
 #if defined(STRESS_PERF_STATS)
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/stress-ng-0.09.33/stress-ng.h 
new/stress-ng-0.09.34/stress-ng.h
--- old/stress-ng-0.09.33/stress-ng.h   2018-07-05 17:54:54.000000000 +0200
+++ new/stress-ng-0.09.34/stress-ng.h   2018-07-17 00:51:49.000000000 +0200
@@ -638,6 +638,7 @@
 extern void pr_yaml_runinfo(FILE *fp);
 extern void pr_openlog(const char *filename);
 extern void pr_closelog(void);
+extern void pr_fail_check(int *rc);
 
 extern void pr_dbg(const char *fmt, ...)  FORMAT(printf, 1, 2);
 extern void pr_inf(const char *fmt, ...)  FORMAT(printf, 1, 2);
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/stress-ng-0.09.33/stress-opcode.c 
new/stress-ng-0.09.34/stress-opcode.c
--- old/stress-ng-0.09.33/stress-opcode.c       2018-07-05 17:54:54.000000000 
+0200
+++ new/stress-ng-0.09.34/stress-opcode.c       2018-07-17 00:51:49.000000000 
+0200
@@ -161,6 +161,9 @@
                        /* We don't want bad ops clobbering this region */
                        stress_unmap_shared();
 
+                       /* We don't want core dumps either */
+                       stress_process_dumpable(false);
+
                        /* Drop all capabilities */
                        if (stress_drop_capabilities(args->name) < 0) {
                                _exit(EXIT_NO_RESOURCE);
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/stress-ng-0.09.33/stress-zlib.c 
new/stress-ng-0.09.34/stress-zlib.c
--- old/stress-ng-0.09.33/stress-zlib.c 2018-07-05 17:54:54.000000000 +0200
+++ new/stress-ng-0.09.34/stress-zlib.c 2018-07-17 00:51:49.000000000 +0200
@@ -110,6 +110,54 @@
 }
 
 /*
+ *  stress_rand_data_bcd()
+ *     fill buffer with random binary coded decimal digits
+ */
+static void stress_rand_data_bcd(const args_t *args, uint32_t *data, const int 
size)
+{
+       register uint8_t *ptr = (uint8_t *)data;
+       const uint8_t *end = ptr + size;
+
+       (void)args;
+
+       while (ptr < end) {
+               uint8_t rndval = mwc8() % 100;
+
+               /* Not the most efficient but it works */
+               *ptr++ = (rndval % 10) | ((rndval / 10) << 4);
+       }
+}
+
+/*
+ *  stress_rand_data_utf8()
+ *     fill buffer with random bytes coverted into utf8
+ */
+static void stress_rand_data_utf8(const args_t *args, uint32_t *data, const 
int size)
+{
+       const int n = size / sizeof(uint16_t);
+       register uint8_t *ptr = (uint8_t *)data;
+       const uint8_t *end = ptr + n;
+
+       (void)args;
+
+       while (ptr < end) {
+               uint8_t ch = mwc8();
+       
+               if (ch <= 0x7f) 
+                       *ptr++ = ch;
+               else {
+                       if (UNLIKELY(ptr < end - 1)) {
+                               *ptr++ = ((ch >> 6) & 0x1f) | 0xc0;
+                               *ptr++ = (ch & 0x3f) | 0x80;
+                       } else {
+                               /* no more space, zero pad */
+                               *ptr = 0;
+                       }
+               }
+       }
+}
+
+/*
  *  stress_rand_data_binary()
  *     fill buffer with random binary data
  */
@@ -518,6 +566,7 @@
        { "00ff",       stress_rand_data_00_ff },
        { "ascii01",    stress_rand_data_01 },
        { "asciidigits",stress_rand_data_digits },
+       { "bcd",        stress_rand_data_bcd },
        { "binary",     stress_rand_data_binary },
        { "double",     stress_rand_data_double },
        { "fixed",      stress_rand_data_fixed },
@@ -529,6 +578,7 @@
        { "rarely1",    stress_rand_data_rarely_1 },
        { "rarely0",    stress_rand_data_rarely_0 },
        { "text",       stress_rand_data_text },
+       { "utf8",       stress_rand_data_utf8 },
        { "zero",       stress_rand_data_zero },
        { NULL,         NULL }
 };


Reply via email to