commit forkstat for openSUSE:Factory

2020-08-24 Thread root
Hello community,

here is the log from the commit of package forkstat for openSUSE:Factory 
checked in at 2020-08-24 15:13:16

Comparing /work/SRC/openSUSE:Factory/forkstat (Old)
 and  /work/SRC/openSUSE:Factory/.forkstat.new.3399 (New)


Package is "forkstat"

Mon Aug 24 15:13:16 2020 rev:14 rq:828649 version:0.02.15

Changes:

--- /work/SRC/openSUSE:Factory/forkstat/forkstat.changes2020-03-08 
22:24:51.576104199 +0100
+++ /work/SRC/openSUSE:Factory/.forkstat.new.3399/forkstat.changes  
2020-08-24 15:13:47.426706536 +0200
@@ -1,0 +2,6 @@
+Mon Aug 17 12:41:40 UTC 2020 - Dirk Mueller 
+
+- update to 0.02.15:
+  * add missing memory initialization to zero 
+
+---

Old:

  forkstat-0.02.14.tar.xz

New:

  forkstat-0.02.15.tar.xz



Other differences:
--
++ forkstat.spec ++
--- /var/tmp/diff_new_pack.d9sztd/_old  2020-08-24 15:13:48.062706846 +0200
+++ /var/tmp/diff_new_pack.d9sztd/_new  2020-08-24 15:13:48.066706848 +0200
@@ -18,7 +18,7 @@
 
 
 Name:   forkstat
-Version:0.02.14
+Version:0.02.15
 Release:0
 Summary:Process fork/exec/exit monitoring tool
 License:GPL-2.0-or-later

++ forkstat-0.02.14.tar.xz -> forkstat-0.02.15.tar.xz ++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/forkstat-0.02.14/Makefile 
new/forkstat-0.02.15/Makefile
--- old/forkstat-0.02.14/Makefile   2020-02-28 16:02:57.0 +0100
+++ new/forkstat-0.02.15/Makefile   2020-07-04 12:17:09.0 +0200
@@ -16,7 +16,7 @@
 # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, 
USA.
 #
 
-VERSION=0.02.14
+VERSION=0.02.15
 #
 # Version "Perspicacious Process Peeker"
 #
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/forkstat-0.02.14/forkstat.c 
new/forkstat-0.02.15/forkstat.c
--- old/forkstat-0.02.14/forkstat.c 2020-02-28 16:02:57.0 +0100
+++ new/forkstat-0.02.15/forkstat.c 2020-07-04 12:17:09.0 +0200
@@ -793,6 +793,7 @@
const int fd = 0;
struct winsize ws;
 
+   (void)memset(, 0, sizeof(ws));
/* if tty and we can get a sane width, return it */
if (isatty(fd) &&
(ioctl(fd, TIOCGWINSZ, ) != -1) &&




commit forkstat for openSUSE:Factory

2020-03-08 Thread root
Hello community,

here is the log from the commit of package forkstat for openSUSE:Factory 
checked in at 2020-03-08 22:24:36

Comparing /work/SRC/openSUSE:Factory/forkstat (Old)
 and  /work/SRC/openSUSE:Factory/.forkstat.new.26092 (New)


Package is "forkstat"

Sun Mar  8 22:24:36 2020 rev:13 rq:782654 version:0.02.14

Changes:

--- /work/SRC/openSUSE:Factory/forkstat/forkstat.changes2019-12-17 
16:54:55.929347958 +0100
+++ /work/SRC/openSUSE:Factory/.forkstat.new.26092/forkstat.changes 
2020-03-08 22:24:51.576104199 +0100
@@ -1,0 +2,18 @@
+Sun Mar  8 10:41:16 UTC 2020 - Martin Hauke 
+
+- Drop SLE12 compat ifdef
+
+---
+Sat Feb 29 11:33:06 UTC 2020 - Martin Hauke 
+
+- Update to version 0.02.14
+  * Add effictive user id (EUID) for -x option
+- Supplement against bash-completion, not bash
+
+---
+Wed Feb 26 13:39:08 UTC 2020 - Martin Hauke 
+
+- Update to version 0.02.13
+  * Add bash completion
+
+---

Old:

  forkstat-0.02.12.tar.xz

New:

  forkstat-0.02.14.tar.xz



Other differences:
--
++ forkstat.spec ++
--- /var/tmp/diff_new_pack.UnkaHT/_old  2020-03-08 22:24:52.776104939 +0100
+++ /var/tmp/diff_new_pack.UnkaHT/_new  2020-03-08 22:24:52.792104949 +0100
@@ -1,7 +1,7 @@
 #
 # spec file for package forkstat
 #
-# Copyright (c) 2019 SUSE LINUX GmbH, Nuernberg, Germany.
+# Copyright (c) 2020 SUSE LLC
 # Copyright (c) 2017, Martin Hauke 
 #
 # All modifications and additions to the file contributed by third parties
@@ -18,7 +18,7 @@
 
 
 Name:   forkstat
-Version:0.02.12
+Version:0.02.14
 Release:0
 Summary:Process fork/exec/exit monitoring tool
 License:GPL-2.0-or-later
@@ -31,6 +31,17 @@
 monitoring system behaviour and to track down rogue processes that are spawning
 off processes and potentially abusing the system.
 
+%package bash-completion
+Summary:Bash Completion for %{name}
+Group:  System/Benchmark
+Requires:   %{name} = %{version}
+Requires:   bash-completion
+Supplements:packageand(forkstat:bash-completion)
+BuildArch:  noarch
+
+%description bash-completion
+Bash completion script for %{name}.
+
 %prep
 %setup -q
 
@@ -46,4 +57,7 @@
 %{_bindir}/forkstat
 %{_mandir}/man8/forkstat.8%{?ext_man}
 
+%files bash-completion
+%{_datadir}/bash-completion/completions/%{name}
+
 %changelog

++ forkstat-0.02.12.tar.xz -> forkstat-0.02.14.tar.xz ++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/forkstat-0.02.12/Makefile 
new/forkstat-0.02.14/Makefile
--- old/forkstat-0.02.12/Makefile   2019-12-13 21:00:52.0 +0100
+++ new/forkstat-0.02.14/Makefile   2020-02-28 16:02:57.0 +0100
@@ -1,5 +1,5 @@
 #
-# Copyright (C) 2014-2019 Canonical, Ltd.
+# Copyright (C) 2014-2020 Canonical, Ltd.
 #
 # This program is free software; you can redistribute it and/or
 # modify it under the terms of the GNU General Public License
@@ -16,7 +16,7 @@
 # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, 
USA.
 #
 
-VERSION=0.02.12
+VERSION=0.02.14
 #
 # Version "Perspicacious Process Peeker"
 #
@@ -36,6 +36,7 @@
 
 BINDIR=/usr/bin
 MANDIR=/usr/share/man/man8
+BASHDIR=/usr/share/bash-completion/completions
 
 forkstat: forkstat.o
$(CC) $(CPPFLAGS) $(CFLAGS) $< -o $@ $(LDFLAGS)
@@ -48,7 +49,7 @@
rm -rf forkstat-$(VERSION)
mkdir forkstat-$(VERSION)
cp -rp Makefile forkstat.c forkstat.8 mascot COPYING \
-   snap .travis.yml forkstat-$(VERSION)
+   snap .travis.yml bash-completion forkstat-$(VERSION)
tar -Jcf forkstat-$(VERSION).tar.xz forkstat-$(VERSION)
rm -rf forkstat-$(VERSION)
 
@@ -68,3 +69,5 @@
cp forkstat ${DESTDIR}${BINDIR}
mkdir -p ${DESTDIR}${MANDIR}
cp forkstat.8.gz ${DESTDIR}${MANDIR}
+   mkdir -p ${DESTDIR}${BASHDIR}
+   cp bash-completion/forkstat  ${DESTDIR}${BASHDIR}
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/forkstat-0.02.12/bash-completion/forkstat 
new/forkstat-0.02.14/bash-completion/forkstat
--- old/forkstat-0.02.12/bash-completion/forkstat   1970-01-01 
01:00:00.0 +0100
+++ new/forkstat-0.02.14/bash-completion/forkstat   2020-02-28 
16:02:57.0 +0100
@@ -0,0 +1,35 @@
+# forkstat tab completion for bash.
+#
+# Copyright (C) 2020 Canonical
+#
+# This program is free software; you can redistribute it and/or
+# modify it under the terms of the GNU General Public License
+# as published by the Free 

commit forkstat for openSUSE:Factory

2019-12-17 Thread root
Hello community,

here is the log from the commit of package forkstat for openSUSE:Factory 
checked in at 2019-12-17 16:54:52

Comparing /work/SRC/openSUSE:Factory/forkstat (Old)
 and  /work/SRC/openSUSE:Factory/.forkstat.new.4691 (New)


Package is "forkstat"

Tue Dec 17 16:54:52 2019 rev:12 rq:757555 version:0.02.12

Changes:

--- /work/SRC/openSUSE:Factory/forkstat/forkstat.changes2019-09-05 
12:45:10.911448908 +0200
+++ /work/SRC/openSUSE:Factory/.forkstat.new.4691/forkstat.changes  
2019-12-17 16:54:55.929347958 +0100
@@ -1,0 +2,8 @@
+Sun Dec 15 09:47:15 UTC 2019 - Martin Hauke 
+
+- Update to version 0.02.12
+  * Remove no-op free_proc_comm call on an unknown comm field
+  * Return no info rather than NULL if proc_info_get returns NULL
+  * Re-work unknown cmdline information
+
+---

Old:

  forkstat-0.02.11.tar.xz

New:

  forkstat-0.02.12.tar.xz



Other differences:
--
++ forkstat.spec ++
--- /var/tmp/diff_new_pack.NEr9CK/_old  2019-12-17 16:54:56.837348283 +0100
+++ /var/tmp/diff_new_pack.NEr9CK/_new  2019-12-17 16:54:56.841348285 +0100
@@ -18,7 +18,7 @@
 
 
 Name:   forkstat
-Version:0.02.11
+Version:0.02.12
 Release:0
 Summary:Process fork/exec/exit monitoring tool
 License:GPL-2.0-or-later

++ forkstat-0.02.11.tar.xz -> forkstat-0.02.12.tar.xz ++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/forkstat-0.02.11/Makefile 
new/forkstat-0.02.12/Makefile
--- old/forkstat-0.02.11/Makefile   2019-08-12 17:07:36.0 +0200
+++ new/forkstat-0.02.12/Makefile   2019-12-13 21:00:52.0 +0100
@@ -16,7 +16,7 @@
 # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, 
USA.
 #
 
-VERSION=0.02.11
+VERSION=0.02.12
 #
 # Version "Perspicacious Process Peeker"
 #
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/forkstat-0.02.11/forkstat.c 
new/forkstat-0.02.12/forkstat.c
--- old/forkstat-0.02.11/forkstat.c 2019-08-12 17:07:36.0 +0200
+++ new/forkstat-0.02.12/forkstat.c 2019-12-13 21:00:52.0 +0100
@@ -188,13 +188,17 @@
 static int row = 0;/* tty row number */
 static long int opt_duration = -1; /* duration, < 0 means run 
forever */
 
+static char unknown[] = "";
+
+static proc_info_t *proc_info_add(const pid_t pid, const struct timeval * 
const tv);
+
 /* Default void no process info struct */
 static proc_info_t no_info = {
.pid = NULL_PID,
.uid = NULL_UID,
.gid = NULL_GID,
.tty = NULL_TTY,
-   .cmdline = "",
+   .cmdline = unknown,
.kernel_thread = false,
.start = { 0, 0 },
.next = NULL,
@@ -270,6 +274,20 @@
 };
 
 /*
+ *  proc_comm_dup()
+ * duplicate a comm filed string, if it fails, return unknown
+ */
+static char *proc_comm_dup(const char *str)
+{
+   char *comm = strdup(str);
+
+   if (!comm)
+   return unknown;
+
+   return comm;
+}
+
+/*
  *  secs_to_str()
  * report seconds in different units.
  */
@@ -450,6 +468,59 @@
 }
 
 /*
+ *  proc_name_clean()
+ * clean up unwanted chars from process name
+ */
+static void proc_name_clean(char *buffer, const int len)
+{
+   char *ptr;
+
+   /*
+*  Convert '\r' and '\n' into spaces
+*/
+   for (ptr = buffer; *ptr && (ptr < buffer + len); ptr++) {
+   if ((*ptr == '\r') || (*ptr =='\n'))
+   *ptr = ' ';
+   }
+   /*
+*  OPT_CMD_SHORT option we discard anything after a space
+*/
+   if (opt_flags & OPT_CMD_SHORT) {
+   for (ptr = buffer; *ptr && (ptr < buffer + len); ptr++) {
+   if (*ptr == ' ') {
+   *ptr = '\0';
+   break;
+   }
+   }
+   }
+}
+
+/*
+ *  proc_comm()
+ * get process name from comm field
+ */
+static char *proc_comm(const pid_t pid)
+{
+   int fd;
+   ssize_t ret;
+   char buffer[4096];
+
+   (void)snprintf(buffer, sizeof(buffer), "/proc/%d/comm", pid);
+   if ((fd = open(buffer, O_RDONLY)) < 0)
+   return unknown;
+   if ((ret = read(fd, buffer, sizeof(buffer) - 1)) <= 0) {
+   (void)close(fd);
+   return unknown;
+   }
+   (void)close(fd);
+   buffer[ret - 1] = '\0'; /* remove trailing '\n' */
+   proc_name_clean(buffer, ret);
+
+   return proc_comm_dup(buffer);
+}
+
+
+/*
  *  get_extra()
  * quick and dirty way to get UID and GID from a PID,
  * note that this 

commit forkstat for openSUSE:Factory

2019-09-05 Thread root
Hello community,

here is the log from the commit of package forkstat for openSUSE:Factory 
checked in at 2019-09-05 12:45:07

Comparing /work/SRC/openSUSE:Factory/forkstat (Old)
 and  /work/SRC/openSUSE:Factory/.forkstat.new.7948 (New)


Package is "forkstat"

Thu Sep  5 12:45:07 2019 rev:11 rq:728285 version:0.02.11

Changes:

--- /work/SRC/openSUSE:Factory/forkstat/forkstat.changes2019-01-21 
10:58:38.623408510 +0100
+++ /work/SRC/openSUSE:Factory/.forkstat.new.7948/forkstat.changes  
2019-09-05 12:45:10.911448908 +0200
@@ -1,0 +2,13 @@
+Tue Aug 27 09:40:34 UTC 2019 - Martin Hauke 
+
+- Update to version 0.02.11
+  * fix off-by-one end of string strncpy bug in tty name copying
+
+---
+Sun Jul  7 18:40:25 UTC 2019 - Martin Hauke 
+
+- Update to version 0.02.10
+  * Fix spelling mistake in manual
+  * Update copyright year
+
+---

Old:

  forkstat-0.02.09.tar.xz

New:

  forkstat-0.02.11.tar.xz



Other differences:
--
++ forkstat.spec ++
--- /var/tmp/diff_new_pack.V34UCx/_old  2019-09-05 12:45:11.599449028 +0200
+++ /var/tmp/diff_new_pack.V34UCx/_new  2019-09-05 12:45:11.599449028 +0200
@@ -13,12 +13,12 @@
 # license that conforms to the Open Source Definition (Version 1.9)
 # published by the Open Source Initiative.
 
-# Please submit bugfixes or comments via http://bugs.opensuse.org/
+# Please submit bugfixes or comments via https://bugs.opensuse.org/
 #
 
 
 Name:   forkstat
-Version:0.02.09
+Version:0.02.11
 Release:0
 Summary:Process fork/exec/exit monitoring tool
 License:GPL-2.0-or-later

++ forkstat-0.02.09.tar.xz -> forkstat-0.02.11.tar.xz ++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/forkstat-0.02.09/Makefile 
new/forkstat-0.02.11/Makefile
--- old/forkstat-0.02.09/Makefile   2018-12-04 12:12:13.0 +0100
+++ new/forkstat-0.02.11/Makefile   2019-08-12 17:07:36.0 +0200
@@ -1,5 +1,5 @@
 #
-# Copyright (C) 2014-2018 Canonical, Ltd.
+# Copyright (C) 2014-2019 Canonical, Ltd.
 #
 # This program is free software; you can redistribute it and/or
 # modify it under the terms of the GNU General Public License
@@ -16,7 +16,7 @@
 # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, 
USA.
 #
 
-VERSION=0.02.09
+VERSION=0.02.11
 #
 # Version "Perspicacious Process Peeker"
 #
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/forkstat-0.02.09/forkstat.8 
new/forkstat-0.02.11/forkstat.8
--- old/forkstat-0.02.09/forkstat.8 2018-12-04 12:12:13.0 +0100
+++ new/forkstat-0.02.11/forkstat.8 2019-08-12 17:07:36.0 +0200
@@ -76,7 +76,7 @@
 specify duration in seconds to run forkstat.
 .TP
 .B \-e
-specify events to trace as a comma seperated list. By default the fork, exec 
and exit 
+specify events to trace as a comma separated list. By default the fork, exec 
and exit 
 events are traced. Available events are:
 .TS
 l lw(4i).
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/forkstat-0.02.09/forkstat.c 
new/forkstat-0.02.11/forkstat.c
--- old/forkstat-0.02.09/forkstat.c 2018-12-04 12:12:13.0 +0100
+++ new/forkstat-0.02.11/forkstat.c 2019-08-12 17:07:36.0 +0200
@@ -1,5 +1,5 @@
 /*
- * Copyright (C) 2014-2018 Canonical Ltd.
+ * Copyright (C) 2014-2019 Canonical Ltd.
  *
  * This program is free software; you can redistribute it and/or
  * modify it under the terms of the GNU General Public License
@@ -421,7 +421,7 @@
if (!tni)
return tty;
 
-   (void)strncpy(tni->tty_name, tty, sizeof(tni->tty_name) - 1);
+   (void)strncpy(tni->tty_name, tty, sizeof(tni->tty_name));
tni->dev = dev;
tni->next = tty_name_info[hash];
tty_name_info[hash] = tni;
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/forkstat-0.02.09/snap/Makefile 
new/forkstat-0.02.11/snap/Makefile
--- old/forkstat-0.02.09/snap/Makefile  2018-12-04 12:12:13.0 +0100
+++ new/forkstat-0.02.11/snap/Makefile  2019-08-12 17:07:36.0 +0200
@@ -1,26 +1,6 @@
-VERSION=$(shell git tag | tail -1 | cut -c2-)
-COMMITS=$(shell git log --oneline | wc -l)
-SHA=$(shell git log -1 --oneline | cut -d' ' -f1)
-DATE=$(shell date +'%Y%m%d')
-V=$(VERSION)-$(DATE)-$(COMMITS)-$(SHA)
-
-all: get_icon set_version
+all:
snapcraft
 
-set_version:
-   cat snapcraft.yaml | sed 's/version: .*/version: $(V)/' > 
snapcraft-tmp.yaml
-   mv snapcraft-tmp.yaml snapcraft.yaml
-
-get_icon: 
-   

commit forkstat for openSUSE:Factory

2019-01-21 Thread root
Hello community,

here is the log from the commit of package forkstat for openSUSE:Factory 
checked in at 2019-01-21 10:57:57

Comparing /work/SRC/openSUSE:Factory/forkstat (Old)
 and  /work/SRC/openSUSE:Factory/.forkstat.new.28833 (New)


Package is "forkstat"

Mon Jan 21 10:57:57 2019 rev:10 rq:666479 version:0.02.09

Changes:

--- /work/SRC/openSUSE:Factory/forkstat/forkstat.changes2018-07-22 
23:05:19.916906223 +0200
+++ /work/SRC/openSUSE:Factory/.forkstat.new.28833/forkstat.changes 
2019-01-21 10:58:38.623408510 +0100
@@ -1,0 +2,21 @@
+Sat Jan 12 12:32:24 UTC 2019 - mar...@gmx.de
+
+- Update to version 0.02.09
+  * Manual: update date
+  * Add -X option, fix up short getopts help with missing options
+  * forkstat: add in -c option in help info
+- Update to version 0.02.08
+  * Reduce scope of pointer ptr
+  * Use unsigned int for %u format specifiers
+  * Add -c comm field info, also track comm field changes in proc info
+- Update to version 0.02.07
+  * remove '\r' and '\n' from command line process name
+- Update to version 0.02.06
+  * Add some extra paranoid clearing of tty and strncpy length,
+fixes potential buffer overrun
+  * Add caching of dev to tty name lookup to fix expensive lookups
+  * Add caching of uid to name lookup, print username rather than uids
+to fix expensive lookups
+  * forkstat: pack structs a little more efficiently to save memory
+
+---

Old:

  forkstat-0.02.05.tar.xz

New:

  forkstat-0.02.09.tar.xz



Other differences:
--
++ forkstat.spec ++
--- /var/tmp/diff_new_pack.BLF3Sk/_old  2019-01-21 10:58:40.019406691 +0100
+++ /var/tmp/diff_new_pack.BLF3Sk/_new  2019-01-21 10:58:40.023406686 +0100
@@ -1,7 +1,7 @@
 #
 # spec file for package forkstat
 #
-# Copyright (c) 2018 SUSE LINUX GmbH, Nuernberg, Germany.
+# Copyright (c) 2019 SUSE LINUX GmbH, Nuernberg, Germany.
 # Copyright (c) 2017, Martin Hauke 
 #
 # All modifications and additions to the file contributed by third parties
@@ -18,13 +18,13 @@
 
 
 Name:   forkstat
-Version:0.02.05
+Version:0.02.09
 Release:0
 Summary:Process fork/exec/exit monitoring tool
 License:GPL-2.0-or-later
 Group:  System/Monitoring
-URL:http://kernel.ubuntu.com/~cking/forkstat/
-Source: 
http://kernel.ubuntu.com/~cking/tarballs/%{name}/%{name}-%{version}.tar.xz
+URL:https://kernel.ubuntu.com/~cking/forkstat/
+Source: 
https://kernel.ubuntu.com/~cking/tarballs/%{name}/%{name}-%{version}.tar.xz
 
 %description
 Forkstat monitors process fork(), exec() and exit() activity. It is useful for

++ forkstat-0.02.05.tar.xz -> forkstat-0.02.09.tar.xz ++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/forkstat-0.02.05/Makefile 
new/forkstat-0.02.09/Makefile
--- old/forkstat-0.02.05/Makefile   2018-07-13 08:50:32.0 +0200
+++ new/forkstat-0.02.09/Makefile   2018-12-04 12:12:13.0 +0100
@@ -16,12 +16,12 @@
 # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, 
USA.
 #
 
-VERSION=0.02.05
+VERSION=0.02.09
 #
 # Version "Perspicacious Process Peeker"
 #
 
-CFLAGS += -Wall -Wextra -DVERSION='"$(VERSION)"' -O2
+CFLAGS += -Wall -Wextra -DVERSION='"$(VERSION)"' -O2 -g
 #
 # Pedantic flags
 #
@@ -48,7 +48,7 @@
rm -rf forkstat-$(VERSION)
mkdir forkstat-$(VERSION)
cp -rp Makefile forkstat.c forkstat.8 mascot COPYING \
-   snapcraft .travis.yml forkstat-$(VERSION)
+   snap .travis.yml forkstat-$(VERSION)
tar -Jcf forkstat-$(VERSION).tar.xz forkstat-$(VERSION)
rm -rf forkstat-$(VERSION)
 
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/forkstat-0.02.05/forkstat.8 
new/forkstat-0.02.09/forkstat.8
--- old/forkstat-0.02.05/forkstat.8 2018-07-13 08:50:32.0 +0200
+++ new/forkstat-0.02.09/forkstat.8 2018-12-04 12:12:13.0 +0100
@@ -2,7 +2,7 @@
 .\" First parameter, NAME, should be all caps
 .\" Second parameter, SECTION, should be 1-8, maybe w/ subsection
 .\" other parameters are allowed: see man(7), man(1)
-.TH FORKSTAT 8 "13 July, 2018"
+.TH FORKSTAT 8 "4 December, 2018"
 .\" Please adjust this date whenever revising the manpage.
 .\"
 .\" Some roff macros, for reference:
@@ -21,6 +21,7 @@
 
 .SH SYNOPSIS
 .B forkstat
+.RI [ \-c ]
 .RI [ \-d ]
 .RI [ \-D ]
 .RI [ \-e ]
@@ -33,6 +34,7 @@
 .RI [ \-S ]
 .RI [ \-q ]
 .RI [ \-x ]
+.RI [ \-X ]
 .br
 
 .SH DESCRIPTION
@@ -63,6 +65,10 @@
 .SH OPTIONS
 forkstat options are as follow:
 .TP
+.B \-c
+use the process 16 character comm field for the process name rather 

commit forkstat for openSUSE:Factory

2018-07-22 Thread root
Hello community,

here is the log from the commit of package forkstat for openSUSE:Factory 
checked in at 2018-07-22 23:05:09

Comparing /work/SRC/openSUSE:Factory/forkstat (Old)
 and  /work/SRC/openSUSE:Factory/.forkstat.new (New)


Package is "forkstat"

Sun Jul 22 23:05:09 2018 rev:9 rq:624404 version:0.02.05

Changes:

--- /work/SRC/openSUSE:Factory/forkstat/forkstat.changes2018-07-12 
09:21:41.382630408 +0200
+++ /work/SRC/openSUSE:Factory/.forkstat.new/forkstat.changes   2018-07-22 
23:05:19.916906223 +0200
@@ -1,0 +2,16 @@
+Fri Jul 13 18:19:50 UTC 2018 - mar...@gmx.de
+
+- Update to version 0.02.05
+  * Makefile: bump version
+  * Manual, change -e all to -E in example to show alternate form
+  * Reformat some lines, comments and overly wide scanf
+  * Minor code clean ups
+  * Ensure all fields in no_info are initialized
+  * Manual: Fix process table information formatting
+  * Voidify function returns
+  * Add more constifications
+  * Add -E (enable all events) option
+  * PROC_EVENT_COREDUMP has been introduced in kernel version 3.10
+  * Replace curved corner glyph with square corner
+
+---

Old:

  forkstat-0.02.04.tar.xz

New:

  forkstat-0.02.05.tar.xz



Other differences:
--
++ forkstat.spec ++
--- /var/tmp/diff_new_pack.sDTw10/_old  2018-07-22 23:05:20.460906021 +0200
+++ /var/tmp/diff_new_pack.sDTw10/_new  2018-07-22 23:05:20.464906020 +0200
@@ -18,7 +18,7 @@
 
 
 Name:   forkstat
-Version:0.02.04
+Version:0.02.05
 Release:0
 Summary:Process fork/exec/exit monitoring tool
 License:GPL-2.0-or-later

++ forkstat-0.02.04.tar.xz -> forkstat-0.02.05.tar.xz ++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/forkstat-0.02.04/Makefile 
new/forkstat-0.02.05/Makefile
--- old/forkstat-0.02.04/Makefile   2018-07-10 14:36:39.0 +0200
+++ new/forkstat-0.02.05/Makefile   2018-07-13 08:50:32.0 +0200
@@ -16,7 +16,7 @@
 # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, 
USA.
 #
 
-VERSION=0.02.04
+VERSION=0.02.05
 #
 # Version "Perspicacious Process Peeker"
 #
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/forkstat-0.02.04/forkstat.8 
new/forkstat-0.02.05/forkstat.8
--- old/forkstat-0.02.04/forkstat.8 2018-07-10 14:36:39.0 +0200
+++ new/forkstat-0.02.05/forkstat.8 2018-07-13 08:50:32.0 +0200
@@ -2,7 +2,7 @@
 .\" First parameter, NAME, should be all caps
 .\" Second parameter, SECTION, should be 1-8, maybe w/ subsection
 .\" other parameters are allowed: see man(7), man(1)
-.TH FORKSTAT 8 "8 June, 2018"
+.TH FORKSTAT 8 "13 July, 2018"
 .\" Please adjust this date whenever revising the manpage.
 .\"
 .\" Some roff macros, for reference:
@@ -24,6 +24,7 @@
 .RI [ \-d ]
 .RI [ \-D ]
 .RI [ \-e ]
+.RI [ \-E ]
 .RI [ \-g ]
 .RI [ \-h ]
 .RI [ \-l ]
@@ -54,7 +55,9 @@
 Info   Parent or child if a fork, or process exit(2) value.
 Duration   T{
 On exit, the duration the command ran for in seconds.
-ProcessThe process name. The name will be in [ ] brackets if it is a 
kernel thread.
+T}
+ProcessT{
+The process name. The name will be in [ ] brackets if it is a kernel thread.
 T}
 .TE
 .SH OPTIONS
@@ -84,6 +87,9 @@
 allall the events above
 .TE
 .TP
+.B \-E
+enable all events, equivalent to \-e all
+.TP
 .B \-g
 show glyph annotations of events, useful for easier identification of 
 different events.
@@ -128,7 +134,7 @@
 .LP
 Trace all events for 10 minutes:
 .RS 8
-forkstat \-e all \-D 600
+forkstat \-E \-D 600
 .RE
 .LP
 Trace clones for 1 minute:
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/forkstat-0.02.04/forkstat.c 
new/forkstat-0.02.05/forkstat.c
--- old/forkstat-0.02.04/forkstat.c 2018-07-10 14:36:39.0 +0200
+++ new/forkstat-0.02.05/forkstat.c 2018-07-13 08:50:32.0 +0200
@@ -137,9 +137,9 @@
 
 /* scaling factor */
 typedef struct {
-   const char ch;  /* Scaling suffix */
-   const uint32_t base;/* Base of part following . point */
-   const uint64_t scale;   /* Amount to scale by */
+   const char ch;  /* Scaling suffix */
+   const uint32_t base;/* Base of part following . point */
+   const uint64_t scale;   /* Amount to scale by */
 } time_scale_t;
 
 /* Mapping of event names to option flags and event_t types */
@@ -171,6 +171,8 @@
 static proc_info_t no_info = {
.pid = NULL_PID,
.uid = NULL_UID,
+   .gid = NULL_GID,
+   .tty = NULL_TTY,
.cmdline = "",

commit forkstat for openSUSE:Factory

2018-07-12 Thread root
Hello community,

here is the log from the commit of package forkstat for openSUSE:Factory 
checked in at 2018-07-12 09:19:58

Comparing /work/SRC/openSUSE:Factory/forkstat (Old)
 and  /work/SRC/openSUSE:Factory/.forkstat.new (New)


Package is "forkstat"

Thu Jul 12 09:19:58 2018 rev:8 rq:622043 version:0.02.04

Changes:

--- /work/SRC/openSUSE:Factory/forkstat/forkstat.changes2018-06-13 
15:39:31.744254232 +0200
+++ /work/SRC/openSUSE:Factory/.forkstat.new/forkstat.changes   2018-07-12 
09:21:41.382630408 +0200
@@ -1,0 +2,12 @@
+Wed Jul 11 07:47:25 UTC 2018 - mar...@gmx.de
+
+- Update to version 0.02.04
+  * Makefile: bump version
+  * Add .travis.yml to make dist rule
+  * Makefile + debian/watch: produce a .xz tarball
+  * Fix checking on zero sized reads
+  * Add detection of first time all alive processes were started
+  * Use UTF-16 codes for glyphs
+  * Add travis build yaml file
+
+---

Old:

  forkstat-0.02.03.tar.gz

New:

  forkstat-0.02.04.tar.xz



Other differences:
--
++ forkstat.spec ++
--- /var/tmp/diff_new_pack.Ri1nf8/_old  2018-07-12 09:21:41.942631193 +0200
+++ /var/tmp/diff_new_pack.Ri1nf8/_new  2018-07-12 09:21:41.942631193 +0200
@@ -18,13 +18,13 @@
 
 
 Name:   forkstat
-Version:0.02.03
+Version:0.02.04
 Release:0
 Summary:Process fork/exec/exit monitoring tool
 License:GPL-2.0-or-later
 Group:  System/Monitoring
 URL:http://kernel.ubuntu.com/~cking/forkstat/
-Source: 
http://kernel.ubuntu.com/~cking/tarballs/%{name}/%{name}-%{version}.tar.gz
+Source: 
http://kernel.ubuntu.com/~cking/tarballs/%{name}/%{name}-%{version}.tar.xz
 
 %description
 Forkstat monitors process fork(), exec() and exit() activity. It is useful for




commit forkstat for openSUSE:Factory

2018-06-13 Thread root
Hello community,

here is the log from the commit of package forkstat for openSUSE:Factory 
checked in at 2018-06-13 15:38:47

Comparing /work/SRC/openSUSE:Factory/forkstat (Old)
 and  /work/SRC/openSUSE:Factory/.forkstat.new (New)


Package is "forkstat"

Wed Jun 13 15:38:47 2018 rev:7 rq:615437 version:0.02.03

Changes:

--- /work/SRC/openSUSE:Factory/forkstat/forkstat.changes2018-02-06 
16:51:28.601544461 +0100
+++ /work/SRC/openSUSE:Factory/.forkstat.new/forkstat.changes   2018-06-13 
15:39:31.744254232 +0200
@@ -1,0 +2,14 @@
+Sat Jun  9 07:37:14 UTC 2018 - mar...@gmx.de
+
+- Update to version 0.02.03
+  * Makefile: bump version
+  * debian/control: update debhelper to >= 11
+  * debian/compat: update to 11
+  * debian/copyright: replace http with https for secure URL
+  * debian/control: remove trailing line
+  * Add -g option to mini-help
+  * Add -g glyph annotations
+  * Add faster container check for systemd based systems
+  * Add snapcraft plugins
+
+---

Old:

  forkstat-0.02.02.tar.gz

New:

  forkstat-0.02.03.tar.gz



Other differences:
--
++ forkstat.spec ++
--- /var/tmp/diff_new_pack.WZE2NR/_old  2018-06-13 15:39:32.432228916 +0200
+++ /var/tmp/diff_new_pack.WZE2NR/_new  2018-06-13 15:39:32.436228769 +0200
@@ -18,14 +18,13 @@
 
 
 Name:   forkstat
-Version:0.02.02
+Version:0.02.03
 Release:0
 Summary:Process fork/exec/exit monitoring tool
-License:GPL-2.0+
+License:GPL-2.0-or-later
 Group:  System/Monitoring
-Url:http://kernel.ubuntu.com/~cking/forkstat/
+URL:http://kernel.ubuntu.com/~cking/forkstat/
 Source: 
http://kernel.ubuntu.com/~cking/tarballs/%{name}/%{name}-%{version}.tar.gz
-BuildRoot:  %{_tmppath}/%{name}-%{version}-build
 
 %description
 Forkstat monitors process fork(), exec() and exit() activity. It is useful for
@@ -43,9 +42,8 @@
 %make_install
 
 %files
-%defattr(-,root,root)
-%doc COPYING
+%license COPYING
 %{_bindir}/forkstat
-%{_mandir}/man8/forkstat.8%{ext_man}
+%{_mandir}/man8/forkstat.8%{?ext_man}
 
 %changelog

++ forkstat-0.02.02.tar.gz -> forkstat-0.02.03.tar.gz ++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/forkstat-0.02.02/Makefile 
new/forkstat-0.02.03/Makefile
--- old/forkstat-0.02.02/Makefile   2018-01-31 11:36:35.0 +0100
+++ new/forkstat-0.02.03/Makefile   2018-06-08 17:23:10.0 +0200
@@ -16,7 +16,7 @@
 # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, 
USA.
 #
 
-VERSION=0.02.02
+VERSION=0.02.03
 #
 # Version "Perspicacious Process Peeker"
 #
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/forkstat-0.02.02/forkstat.8 
new/forkstat-0.02.03/forkstat.8
--- old/forkstat-0.02.02/forkstat.8 2018-01-31 11:36:35.0 +0100
+++ new/forkstat-0.02.03/forkstat.8 2018-06-08 17:23:10.0 +0200
@@ -2,7 +2,7 @@
 .\" First parameter, NAME, should be all caps
 .\" Second parameter, SECTION, should be 1-8, maybe w/ subsection
 .\" other parameters are allowed: see man(7), man(1)
-.TH FORKSTAT 8 "24 June, 2017"
+.TH FORKSTAT 8 "8 June, 2018"
 .\" Please adjust this date whenever revising the manpage.
 .\"
 .\" Some roff macros, for reference:
@@ -24,6 +24,7 @@
 .RI [ \-d ]
 .RI [ \-D ]
 .RI [ \-e ]
+.RI [ \-g ]
 .RI [ \-h ]
 .RI [ \-l ]
 .RI [ \-r ]
@@ -83,6 +84,10 @@
 allall the events above
 .TE
 .TP
+.B \-g
+show glyph annotations of events, useful for easier identification of 
+different events.
+.TP
 .B \-h
 show brief help summary.
 .TP
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/forkstat-0.02.02/forkstat.c 
new/forkstat-0.02.03/forkstat.c
--- old/forkstat-0.02.02/forkstat.c 2018-01-31 11:36:35.0 +0100
+++ new/forkstat-0.02.03/forkstat.c 2018-06-08 17:23:10.0 +0200
@@ -68,6 +68,7 @@
 #define OPT_QUIET  (0x0010)/* Run quietly */
 #define OPT_REALTIME   (0x0020)/* Run with Real Time 
scheduling */
 #define OPT_EXTRA  (0x0040)/* Show extra stats */
+#define OPT_GLYPH  (0x0080)/* Show glyphs */
 
 #define OPT_EV_FORK(0x0100)/* Fork event */
 #define OPT_EV_EXEC(0x0200)/* Exec event */
@@ -175,6 +176,9 @@
  */
 static const int signals[] = {
/* POSIX.1-1990 */
+#ifdef SIGALRM
+   SIGALRM,
+#endif
 #ifdef SIGHUP
SIGHUP,
 #endif
@@ -421,6 +425,11 @@
bool ret = true;
const char *ptr = pattern;
 
+   /* Fast check */
+   if 

commit forkstat for openSUSE:Factory

2018-02-06 Thread root
Hello community,

here is the log from the commit of package forkstat for openSUSE:Factory 
checked in at 2018-02-06 16:51:17

Comparing /work/SRC/openSUSE:Factory/forkstat (Old)
 and  /work/SRC/openSUSE:Factory/.forkstat.new (New)


Package is "forkstat"

Tue Feb  6 16:51:17 2018 rev:6 rq:573310 version:0.02.02

Changes:

--- /work/SRC/openSUSE:Factory/forkstat/forkstat.changes2018-01-09 
14:54:18.328673588 +0100
+++ /work/SRC/openSUSE:Factory/.forkstat.new/forkstat.changes   2018-02-06 
16:51:28.601544461 +0100
@@ -1,0 +2,9 @@
+Wed Jan 31 19:29:12 UTC 2018 - mar...@gmx.de
+
+- update to version 0.02.02
+  * Makefile: bump version
+  * ensure tty string never overflows, fixes gcc warning
+  * include  to fix clang warning
+  * Add -x option into mini help
+
+---

Old:

  forkstat-0.02.01.tar.gz

New:

  forkstat-0.02.02.tar.gz



Other differences:
--
++ forkstat.spec ++
--- /var/tmp/diff_new_pack.R2zXqL/_old  2018-02-06 16:51:29.489502879 +0100
+++ /var/tmp/diff_new_pack.R2zXqL/_new  2018-02-06 16:51:29.493502691 +0100
@@ -18,7 +18,7 @@
 
 
 Name:   forkstat
-Version:0.02.01
+Version:0.02.02
 Release:0
 Summary:Process fork/exec/exit monitoring tool
 License:GPL-2.0+

++ forkstat-0.02.01.tar.gz -> forkstat-0.02.02.tar.gz ++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/forkstat-0.02.01/Makefile 
new/forkstat-0.02.02/Makefile
--- old/forkstat-0.02.01/Makefile   2018-01-04 23:56:57.0 +0100
+++ new/forkstat-0.02.02/Makefile   2018-01-31 11:36:35.0 +0100
@@ -1,5 +1,5 @@
 #
-# Copyright (C) 2014-2017 Canonical, Ltd.
+# Copyright (C) 2014-2018 Canonical, Ltd.
 #
 # This program is free software; you can redistribute it and/or
 # modify it under the terms of the GNU General Public License
@@ -16,7 +16,7 @@
 # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, 
USA.
 #
 
-VERSION=0.02.01
+VERSION=0.02.02
 #
 # Version "Perspicacious Process Peeker"
 #
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/forkstat-0.02.01/forkstat.8 
new/forkstat-0.02.02/forkstat.8
--- old/forkstat-0.02.01/forkstat.8 2018-01-04 23:56:57.0 +0100
+++ new/forkstat-0.02.02/forkstat.8 2018-01-31 11:36:35.0 +0100
@@ -139,7 +139,7 @@
 This manual page was written by Colin King ,
 for the Ubuntu project (but may be used by others).
 .SH COPYRIGHT
-Copyright \(co 2014-2017 Canonical Ltd.
+Copyright \(co 2014-2018 Canonical Ltd.
 .br
 This is free software; see the source for copying conditions.  There is NO
 warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/forkstat-0.02.01/forkstat.c 
new/forkstat-0.02.02/forkstat.c
--- old/forkstat-0.02.01/forkstat.c 2018-01-04 23:56:57.0 +0100
+++ new/forkstat-0.02.02/forkstat.c 2018-01-31 11:36:35.0 +0100
@@ -1,5 +1,5 @@
 /*
- * Copyright (C) 2014-2017 Canonical Ltd.
+ * Copyright (C) 2014-2018 Canonical Ltd.
  *
  * This program is free software; you can redistribute it and/or
  * modify it under the terms of the GNU General Public License
@@ -1431,7 +1431,7 @@
 int main(int argc, char * const argv[])
 {
size_t i;
-   int sock = -1, ret = EXIT_FAILURE;
+   int sock, ret = EXIT_FAILURE;
struct sigaction new_action;
 
for (;;) {




commit forkstat for openSUSE:Factory

2018-01-09 Thread root
Hello community,

here is the log from the commit of package forkstat for openSUSE:Factory 
checked in at 2018-01-09 14:54:17

Comparing /work/SRC/openSUSE:Factory/forkstat (Old)
 and  /work/SRC/openSUSE:Factory/.forkstat.new (New)


Package is "forkstat"

Tue Jan  9 14:54:17 2018 rev:5 rq:562359 version:0.02.01

Changes:

--- /work/SRC/openSUSE:Factory/forkstat/forkstat.changes2017-06-27 
10:21:54.329825789 +0200
+++ /work/SRC/openSUSE:Factory/.forkstat.new/forkstat.changes   2018-01-09 
14:54:18.328673588 +0100
@@ -1,0 +2,10 @@
+Fri Jan  5 21:27:17 UTC 2018 - mar...@gmx.de
+
+- update to version 0.02.01
+  * Makefile: bump version
+  * debian/control: update Standards-Version to 4.1.2
+  * ensure tty string never overflows, fixes gcc warning
+  * include  to fix clang warning
+  * Add -x option into mini help
+
+---

Old:

  forkstat-0.02.00.tar.gz

New:

  forkstat-0.02.01.tar.gz



Other differences:
--
++ forkstat.spec ++
--- /var/tmp/diff_new_pack.QlSnRW/_old  2018-01-09 14:54:18.972643399 +0100
+++ /var/tmp/diff_new_pack.QlSnRW/_new  2018-01-09 14:54:18.976643211 +0100
@@ -1,7 +1,7 @@
 #
 # spec file for package forkstat
 #
-# Copyright (c) 2017 SUSE LINUX GmbH, Nuernberg, Germany.
+# Copyright (c) 2018 SUSE LINUX GmbH, Nuernberg, Germany.
 # Copyright (c) 2017, Martin Hauke 
 #
 # All modifications and additions to the file contributed by third parties
@@ -18,7 +18,7 @@
 
 
 Name:   forkstat
-Version:0.02.00
+Version:0.02.01
 Release:0
 Summary:Process fork/exec/exit monitoring tool
 License:GPL-2.0+

++ forkstat-0.02.00.tar.gz -> forkstat-0.02.01.tar.gz ++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/forkstat-0.02.00/Makefile 
new/forkstat-0.02.01/Makefile
--- old/forkstat-0.02.00/Makefile   2017-06-24 21:43:28.0 +0200
+++ new/forkstat-0.02.01/Makefile   2018-01-04 23:56:57.0 +0100
@@ -16,7 +16,7 @@
 # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, 
USA.
 #
 
-VERSION=0.02.00
+VERSION=0.02.01
 #
 # Version "Perspicacious Process Peeker"
 #
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/forkstat-0.02.00/forkstat.c 
new/forkstat-0.02.01/forkstat.c
--- old/forkstat-0.02.00/forkstat.c 2017-06-24 21:43:28.0 +0200
+++ new/forkstat-0.02.01/forkstat.c 2018-01-04 23:56:57.0 +0100
@@ -46,6 +46,7 @@
 #include 
 #include 
 #include 
+#include 
 
 #include 
 #include 
@@ -268,7 +269,7 @@
continue;
 
if (buf.st_rdev == dev) {
-   snprintf(tty, sizeof(tty), "pts/%s", dirent->d_name);
+   snprintf(tty, sizeof(tty), "pts/%-11.11s", 
dirent->d_name);
break;
}
}
@@ -1394,7 +1395,8 @@
   "-r\trun with real time FIFO scheduler.\n"
   "-s\tshow short process name.\n"
   "-S\tshow event statistics at end of the run.\n"
-  "-q\trun quietly and enable -S option.\n");
+  "-q\trun quietly and enable -S option.\n"
+  "-x\tshow extra process information.\n");
 }
 
 /*




commit forkstat for openSUSE:Factory

2017-06-27 Thread root
Hello community,

here is the log from the commit of package forkstat for openSUSE:Factory 
checked in at 2017-06-27 10:21:47

Comparing /work/SRC/openSUSE:Factory/forkstat (Old)
 and  /work/SRC/openSUSE:Factory/.forkstat.new (New)


Package is "forkstat"

Tue Jun 27 10:21:47 2017 rev:4 rq:506335 version:0.02.00

Changes:

--- /work/SRC/openSUSE:Factory/forkstat/forkstat.changes2017-06-26 
15:53:32.992775741 +0200
+++ /work/SRC/openSUSE:Factory/.forkstat.new/forkstat.changes   2017-06-27 
10:21:54.329825789 +0200
@@ -1,0 +2,24 @@
+Sun Jun 25 19:12:00 UTC 2017 - mar...@gmx.de
+
+- update to version 0.02.00
+  * Makefile: update version and change codename
+  * Minor tweaks to the manual, cosmetic changes
+  * Move arrays to end of stacks to help avoid any stack smashing
+  * Minor source clean-up
+  * Avoid TOCTOU race on stat + open
+  * Use alternative ptrace pid info
+  * Add -x extra UID and TTY information option
+  * Add uid/sid event tracing
+  * Display name of events on -e option when invalid event used
+  * Add ptrace event spying
+  * Fix realtime flag opts mask
+  * Fix -r help option
+  * Add extra spacing in heading as it is offset by one after PID
+  * Remove old set_priority code now that -r replaces it
+  * Manpage: fix pdf warning:
+  * Makefile: add pdf man page rule and add .PHONEYs
+  * Add Philipp Gesang to the man page for kudos for contributions.
+  * Add -r real time scheduling option
+  * Put help options into one large printf statement
+
+---

Old:

  forkstat-0.01.19.tar.gz

New:

  forkstat-0.02.00.tar.gz



Other differences:
--
++ forkstat.spec ++
--- /var/tmp/diff_new_pack.Sc9sQb/_old  2017-06-27 10:21:54.889746653 +0200
+++ /var/tmp/diff_new_pack.Sc9sQb/_new  2017-06-27 10:21:54.889746653 +0200
@@ -18,7 +18,7 @@
 
 
 Name:   forkstat
-Version:0.01.19
+Version:0.02.00
 Release:0
 Summary:Process fork/exec/exit monitoring tool
 License:GPL-2.0+

++ forkstat-0.01.19.tar.gz -> forkstat-0.02.00.tar.gz ++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/forkstat-0.01.19/Makefile 
new/forkstat-0.02.00/Makefile
--- old/forkstat-0.01.19/Makefile   2017-06-21 18:59:39.0 +0200
+++ new/forkstat-0.02.00/Makefile   2017-06-24 21:43:28.0 +0200
@@ -16,9 +16,9 @@
 # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, 
USA.
 #
 
-VERSION=0.01.19
+VERSION=0.02.00
 #
-# Version "Frantic Forking Finder"
+# Version "Perspicacious Process Peeker"
 #
 
 CFLAGS += -Wall -Wextra -DVERSION='"$(VERSION)"' -O2
@@ -43,6 +43,7 @@
 forkstat.8.gz: forkstat.8
gzip -c $< > $@
 
+.PHONEY: dist
 dist:
rm -rf forkstat-$(VERSION)
mkdir forkstat-$(VERSION)
@@ -51,10 +52,17 @@
tar -zcf forkstat-$(VERSION).tar.gz forkstat-$(VERSION)
rm -rf forkstat-$(VERSION)
 
+.PHONEY: pdf
+pdf:
+   man -t ./forkstat.8 | ps2pdf - > forkstat.pdf
+
+.PHONEY: clean
 clean:
rm -f forkstat forkstat.o forkstat.8.gz
rm -f forkstat-$(VERSION).tar.gz
+   rm -f forkstat.pdf
 
+.PHONEY: install
 install: forkstat forkstat.8.gz
mkdir -p ${DESTDIR}${BINDIR}
cp forkstat ${DESTDIR}${BINDIR}
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/forkstat-0.01.19/forkstat.8 
new/forkstat-0.02.00/forkstat.8
--- old/forkstat-0.01.19/forkstat.8 2017-06-21 18:59:39.0 +0200
+++ new/forkstat-0.02.00/forkstat.8 2017-06-24 21:43:28.0 +0200
@@ -2,7 +2,7 @@
 .\" First parameter, NAME, should be all caps
 .\" Second parameter, SECTION, should be 1-8, maybe w/ subsection
 .\" other parameters are allowed: see man(7), man(1)
-.TH FORKSTAT 8 "21 June, 2017"
+.TH FORKSTAT 8 "24 June, 2017"
 .\" Please adjust this date whenever revising the manpage.
 .\"
 .\" Some roff macros, for reference:
@@ -26,9 +26,11 @@
 .RI [ \-e ]
 .RI [ \-h ]
 .RI [ \-l ]
+.RI [ \-r ]
 .RI [ \-s ]
 .RI [ \-S ]
 .RI [ \-q ]
+.RI [ \-x ]
 .br
 
 .SH DESCRIPTION
@@ -43,12 +45,12 @@
 
 Forkstat will display several columns of process related information:
 .TS
-l lw(5i).
+l l.
 \fBTitle   Description\fR
 Time   When the fork/exec/exit event occurred.
 Event  Type of event.
 PIDProcess or thread ID.
-Info   Parent or child if a fork, or exit value.
+Info   Parent or child if a fork, or process exit(2) value.
 Duration   T{
 On exit, the duration the command ran for in seconds.
 ProcessThe process name. The name will be in [ ] brackets if it is a 
kernel thread.
@@ -67,7 +69,7 @@
 specify events to trace as a comma seperated list. By default the fork, exec 
and 

commit forkstat for openSUSE:Factory

2017-06-26 Thread root
Hello community,

here is the log from the commit of package forkstat for openSUSE:Factory 
checked in at 2017-06-26 15:53:31

Comparing /work/SRC/openSUSE:Factory/forkstat (Old)
 and  /work/SRC/openSUSE:Factory/.forkstat.new (New)


Package is "forkstat"

Mon Jun 26 15:53:31 2017 rev:3 rq:505863 version:0.01.19

Changes:

--- /work/SRC/openSUSE:Factory/forkstat/forkstat.changes2017-05-18 
20:50:14.035055450 +0200
+++ /work/SRC/openSUSE:Factory/.forkstat.new/forkstat.changes   2017-06-26 
15:53:32.992775741 +0200
@@ -1,0 +2,17 @@
+Thu Jun 22 08:15:16 UTC 2017 - mar...@gmx.de
+
+- update to version 0.01.19
+  * Makefile: bump version again
+  * Debian/control: update standards version to 4.0.0
+  * Update man page date
+  * forkstat: add flag for line buffered output
+
+---
+Tue Jun 20 14:58:59 UTC 2017 - mar...@gmx.de
+
+- update to version 0.01.18
+  * Makefile: bump version
+  * Only add proc_info if strtol parses pid correctly.
+  * snapcraft: add default type and grade keys
+
+---

Old:

  forkstat-0.01.17.tar.gz

New:

  forkstat-0.01.19.tar.gz



Other differences:
--
++ forkstat.spec ++
--- /var/tmp/diff_new_pack.3tOfrx/_old  2017-06-26 15:53:35.028488683 +0200
+++ /var/tmp/diff_new_pack.3tOfrx/_new  2017-06-26 15:53:35.032488119 +0200
@@ -18,7 +18,7 @@
 
 
 Name:   forkstat
-Version:0.01.17
+Version:0.01.19
 Release:0
 Summary:Process fork/exec/exit monitoring tool
 License:GPL-2.0+
@@ -44,7 +44,7 @@
 
 %files
 %defattr(-,root,root)
-%%doc COPYING
+%doc COPYING
 %{_bindir}/forkstat
 %{_mandir}/man8/forkstat.8%{ext_man}
 

++ forkstat-0.01.17.tar.gz -> forkstat-0.01.19.tar.gz ++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/forkstat-0.01.17/Makefile 
new/forkstat-0.01.19/Makefile
--- old/forkstat-0.01.17/Makefile   2017-04-14 18:37:45.0 +0200
+++ new/forkstat-0.01.19/Makefile   2017-06-21 18:59:39.0 +0200
@@ -16,7 +16,7 @@
 # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, 
USA.
 #
 
-VERSION=0.01.17
+VERSION=0.01.19
 #
 # Version "Frantic Forking Finder"
 #
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/forkstat-0.01.17/forkstat.8 
new/forkstat-0.01.19/forkstat.8
--- old/forkstat-0.01.17/forkstat.8 2017-04-14 18:37:45.0 +0200
+++ new/forkstat-0.01.19/forkstat.8 2017-06-21 18:59:39.0 +0200
@@ -2,7 +2,7 @@
 .\" First parameter, NAME, should be all caps
 .\" Second parameter, SECTION, should be 1-8, maybe w/ subsection
 .\" other parameters are allowed: see man(7), man(1)
-.TH FORKSTAT 8 "14 April, 2017"
+.TH FORKSTAT 8 "21 June, 2017"
 .\" Please adjust this date whenever revising the manpage.
 .\"
 .\" Some roff macros, for reference:
@@ -25,6 +25,7 @@
 .RI [ \-D ]
 .RI [ \-e ]
 .RI [ \-h ]
+.RI [ \-l ]
 .RI [ \-s ]
 .RI [ \-S ]
 .RI [ \-q ]
@@ -88,6 +89,9 @@
 .TP
 .B \-q
 run quietly and enable the \-S option.
+.TP
+.B \-l
+set stdout to line-buffered mode.
 .SH EXAMPLES
 .LP
 Show process activity with short process names and directory base path 
stripped off:
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/forkstat-0.01.17/forkstat.c 
new/forkstat-0.01.19/forkstat.c
--- old/forkstat-0.01.17/forkstat.c 2017-04-14 18:37:45.0 +0200
+++ new/forkstat-0.01.19/forkstat.c 2017-06-21 18:59:39.0 +0200
@@ -849,9 +849,10 @@
 
errno = 0;
pid = (pid_t)strtol(dirent->d_name, NULL, 10);
-   (void)proc_info_add(pid, NULL);
-   if (!errno)
+   if (!errno) {
+   (void)proc_info_add(pid, NULL);
proc_thread_info_add(pid);
+   }
}
}
 
@@ -1188,11 +1189,12 @@
 static void show_help(char *const argv[])
 {
printf("%s, version %s\n\n", APP_NAME, VERSION);
-   printf("usage: %s [-d|-D|-e|-h|-s|-S|-q]\n", argv[0]);
+   printf("usage: %s [-d|-D|-e|-h|-l|-s|-S|-q]\n", argv[0]);
printf("-d\tstrip off directory path from process name.\n");
printf("-D\tspecify run duration in seconds.\n");
printf("-e\tselect which events to monitor.\n");
printf("-h\tshow this help.\n");
+   printf("-l\tforce stdout line buffering.\n");
printf("-s\tshow short process name.\n");
printf("-S\tshow event statistics at end of the run.\n");
printf("-q\trun quietly and enable -S option.\n");

commit forkstat for openSUSE:Factory

2017-05-18 Thread root
Hello community,

here is the log from the commit of package forkstat for openSUSE:Factory 
checked in at 2017-05-18 20:50:08

Comparing /work/SRC/openSUSE:Factory/forkstat (Old)
 and  /work/SRC/openSUSE:Factory/.forkstat.new (New)


Package is "forkstat"

Thu May 18 20:50:08 2017 rev:2 rq:495694 version:0.01.17

Changes:

--- /work/SRC/openSUSE:Factory/forkstat/forkstat.changes2016-09-21 
18:46:42.0 +0200
+++ /work/SRC/openSUSE:Factory/.forkstat.new/forkstat.changes   2017-05-18 
20:50:14.035055450 +0200
@@ -1,0 +2,33 @@
+Wed May 10 14:53:13 UTC 2017 - mar...@gmx.de
+
+- update to version 0.01.17
+  * Makefile: bump version
+  * Manual: update copyright year and manual date
+  * Makefile: add snapcraft to make dist rule
+  * Add variable pid size handling.
+  * Remove redundant free on a null pointer
+  * Add snapcraft
+  * Update copyright year
+  * Manual: expand width of columns to 5i
+
+- update to version 0.01.16
+  * Makefile: bump version
+  * Make kernel_tasks const
+  * unconstify arg in parse_ev to fix pedantic build warning
+  * Clean up formatting on ev_map table
+  * constify s1 and s2
+  * Makefile: add PEDANTIC build flags
+
+- update to version 0.01.15
+  * Makefile: bump version
+  * forkstat: make counters size_t
+  * forkstat: voidify return from fclose
+  * Debian: fix spelling mistake in changelog
+
+- update to version 0.01.14
+  * Makefile: bump version
+  * debian/control: update Standards-Version to 3.9.8
+  * debian/rules: make build reproducible (Closes: #833439)
+  * Update copyright year to 2016
+
+---

Old:

  forkstat-0.01.13.tar.gz

New:

  forkstat-0.01.17.tar.gz



Other differences:
--
++ forkstat.spec ++
--- /var/tmp/diff_new_pack.EDuyTV/_old  2017-05-18 20:50:14.922930148 +0200
+++ /var/tmp/diff_new_pack.EDuyTV/_new  2017-05-18 20:50:14.926929583 +0200
@@ -1,7 +1,8 @@
 #
 # spec file for package forkstat
 #
-# Copyright (c) 2015, Martin Hauke 
+# Copyright (c) 2017 SUSE LINUX GmbH, Nuernberg, Germany.
+# Copyright (c) 2017, Martin Hauke 
 #
 # All modifications and additions to the file contributed by third parties
 # remain the property of their copyright owners, unless otherwise agreed
@@ -17,7 +18,7 @@
 
 
 Name:   forkstat
-Version:0.01.13
+Version:0.01.17
 Release:0
 Summary:Process fork/exec/exit monitoring tool
 License:GPL-2.0+
@@ -45,6 +46,6 @@
 %defattr(-,root,root)
 %%doc COPYING
 %{_bindir}/forkstat
-%{_mandir}/man8/*
+%{_mandir}/man8/forkstat.8%{ext_man}
 
 %changelog

++ forkstat-0.01.13.tar.gz -> forkstat-0.01.17.tar.gz ++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/forkstat-0.01.13/Makefile 
new/forkstat-0.01.17/Makefile
--- old/forkstat-0.01.13/Makefile   2015-11-30 14:02:33.0 +0100
+++ new/forkstat-0.01.17/Makefile   2017-04-14 18:37:45.0 +0200
@@ -1,5 +1,5 @@
 #
-# Copyright (C) 2014-2015 Canonical, Ltd.
+# Copyright (C) 2014-2017 Canonical, Ltd.
 #
 # This program is free software; you can redistribute it and/or
 # modify it under the terms of the GNU General Public License
@@ -16,12 +16,21 @@
 # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, 
USA.
 #
 
-VERSION=0.01.13
+VERSION=0.01.17
 #
 # Version "Frantic Forking Finder"
 #
 
 CFLAGS += -Wall -Wextra -DVERSION='"$(VERSION)"' -O2
+#
+# Pedantic flags
+#
+ifeq ($(PEDANTIC),1)
+CFLAGS += -Wabi -Wcast-qual -Wfloat-equal -Wmissing-declarations \
+   -Wmissing-format-attribute -Wno-long-long -Wpacked \
+   -Wredundant-decls -Wshadow -Wno-missing-field-initializers \
+   -Wno-missing-braces -Wno-sign-compare -Wno-multichar
+endif
 
 export DEB_BUILD_HARDENING=1
 
@@ -38,7 +47,7 @@
rm -rf forkstat-$(VERSION)
mkdir forkstat-$(VERSION)
cp -rp Makefile forkstat.c forkstat.8 mascot COPYING \
-   forkstat-$(VERSION)
+   snapcraft forkstat-$(VERSION)
tar -zcf forkstat-$(VERSION).tar.gz forkstat-$(VERSION)
rm -rf forkstat-$(VERSION)
 
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/forkstat-0.01.13/forkstat.8 
new/forkstat-0.01.17/forkstat.8
--- old/forkstat-0.01.13/forkstat.8 2015-11-30 14:02:33.0 +0100
+++ new/forkstat-0.01.17/forkstat.8 2017-04-14 18:37:45.0 +0200
@@ -2,7 +2,7 @@
 .\" First parameter, NAME, should be all caps
 .\" Second parameter, SECTION, should be 1-8, maybe w/ subsection
 .\" other parameters are allowed: see man(7), man(1)
-.TH FORKSTAT 8 "18 May, 2015"
+.TH FORKSTAT 8 "14 April, 2017"
 .\" Please adjust this date whenever