commit eventstat for openSUSE:Factory
Hello community, here is the log from the commit of package eventstat for openSUSE:Factory checked in at 2020-03-12 23:08:00 Comparing /work/SRC/openSUSE:Factory/eventstat (Old) and /work/SRC/openSUSE:Factory/.eventstat.new.3160 (New) Package is "eventstat" Thu Mar 12 23:08:00 2020 rev:9 rq:784310 version:0.04.09 Changes: --- /work/SRC/openSUSE:Factory/eventstat/eventstat.changes 2019-12-18 14:48:42.245949202 +0100 +++ /work/SRC/openSUSE:Factory/.eventstat.new.3160/eventstat.changes 2020-03-12 23:12:32.919329665 +0100 @@ -1,0 +2,12 @@ +Mon Mar 9 18:53:10 UTC 2020 - Martin Hauke + +- Drop SLE12 compat ifdef +- Supplement against bash-completion, not bash + +--- +Wed Feb 26 13:36:40 UTC 2020 - Martin Hauke + +- Update to version 0.04.09 + * Add bash completion script + +--- Old: eventstat-0.04.08.tar.gz New: eventstat-0.04.09.tar.gz Other differences: -- ++ eventstat.spec ++ --- /var/tmp/diff_new_pack.900k8n/_old 2020-03-12 23:12:33.275329805 +0100 +++ /var/tmp/diff_new_pack.900k8n/_new 2020-03-12 23:12:33.279329807 +0100 @@ -1,7 +1,7 @@ # # spec file for package eventstat # -# 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: eventstat -Version:0.04.08 +Version:0.04.09 Release:0 Summary:Kernel event states monitoring tool License:GPL-2.0-or-later @@ -33,12 +33,24 @@ The tool requires sudo to run since it needs to write to /proc/timer_stats to start and stop the event monitoring. +%package bash-completion +Summary:Bash Completion for %{name} +Group: System/Benchmark +BuildRequires: bash-completion +Requires: %{name} = %{version} +Requires: bash-completion +Supplements:(eventstat and bash-completion) +BuildArch: noarch + +%description bash-completion +Bash completion script for %{name}. + %prep %setup -q %build export CFLAGS="%{optflags}" -make %{?_smp_mflags} +%make_build %install %make_install @@ -48,4 +60,7 @@ %{_bindir}/eventstat %{_mandir}/man8/eventstat.8%{?ext_man} +%files bash-completion +%{_datadir}/bash-completion/completions/%{name} + %changelog ++ eventstat-0.04.08.tar.gz -> eventstat-0.04.09.tar.gz ++ diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/eventstat-0.04.08/Makefile new/eventstat-0.04.09/Makefile --- old/eventstat-0.04.08/Makefile 2019-12-16 12:12:12.0 +0100 +++ new/eventstat-0.04.09/Makefile 2020-02-26 01:05:14.0 +0100 @@ -1,5 +1,5 @@ # -# Copyright (C) 2011-2019 Canonical, Ltd. +# Copyright (C) 2011-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.04.08 +VERSION=0.04.09 CFLAGS += -Wall -Wextra -DVERSION='"$(VERSION)"' -O2 @@ -32,6 +32,7 @@ BINDIR=/usr/bin MANDIR=/usr/share/man/man8 +BASHDIR=/usr/share/bash-completion/completions eventstat: eventstat.o $(CC) $(CFLAGS) $< -lm -lncurses -o $@ $(LDFLAGS) @@ -43,7 +44,7 @@ rm -rf eventstat-$(VERSION) mkdir eventstat-$(VERSION) cp -rp Makefile eventstat.c eventstat.8 COPYING snap .travis.yml \ - eventstat-$(VERSION) + bash-completion eventstat-$(VERSION) tar -zcf eventstat-$(VERSION).tar.gz eventstat-$(VERSION) rm -rf eventstat-$(VERSION) @@ -56,3 +57,5 @@ cp eventstat ${DESTDIR}${BINDIR} mkdir -p ${DESTDIR}${MANDIR} cp eventstat.8.gz ${DESTDIR}${MANDIR} + mkdir -p ${DESTDIR}${BASHDIR} + cp bash-completion/eventstat ${DESTDIR}${BASHDIR} diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/eventstat-0.04.08/bash-completion/eventstat new/eventstat-0.04.09/bash-completion/eventstat --- old/eventstat-0.04.08/bash-completion/eventstat 1970-01-01 01:00:00.0 +0100 +++ new/eventstat-0.04.09/bash-completion/eventstat 2020-02-26 01:05:14.0 +0100 @@ -0,0 +1,50 @@ +# eventstat 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 Software Foundation; either version 2 +# of the License, or (at your
commit eventstat for openSUSE:Factory
Hello community, here is the log from the commit of package eventstat for openSUSE:Factory checked in at 2019-12-18 14:46:13 Comparing /work/SRC/openSUSE:Factory/eventstat (Old) and /work/SRC/openSUSE:Factory/.eventstat.new.4691 (New) Package is "eventstat" Wed Dec 18 14:46:13 2019 rev:8 rq:757630 version:0.04.08 Changes: --- /work/SRC/openSUSE:Factory/eventstat/eventstat.changes 2019-01-21 10:58:33.863414713 +0100 +++ /work/SRC/openSUSE:Factory/.eventstat.new.4691/eventstat.changes 2019-12-18 14:48:42.245949202 +0100 @@ -1,0 +2,31 @@ +Tue Dec 17 19:37:05 UTC 2019 - Martin Hauke + +- update to version 0.04.08 + * Add UNLIKELY hinting on memory allocation failure checks + * check for failed allocation of comm field + * Add null check on failed allocation of comm field + * Add null check on return of ctime + * Don't strdup basename return but strdup base string + * Fix inverted null check logic on comm field + * Add null check on localtime return + * check that basename returns a non-null string + * fix out of memory allocation failure check + * eventstat: fix '\n' check on string (null ptr dereference) + * eventstat: use comm field for task name rather than task info +field + +--- +Tue Aug 27 09:41:42 UTC 2019 - Martin Hauke + +- Update to version 0.04.07 + * No functional changes + +--- +Fri Jul 12 18:28:14 UTC 2019 - Martin Hauke + +- Update to version 0.04.06 + * Reduce scope of variable ticks + * Remove unused assignments + * Update copyright year + +--- Old: eventstat-0.04.05.tar.gz New: eventstat-0.04.08.tar.gz Other differences: -- ++ eventstat.spec ++ --- /var/tmp/diff_new_pack.WrVAXN/_old 2019-12-18 14:48:42.569949351 +0100 +++ /var/tmp/diff_new_pack.WrVAXN/_new 2019-12-18 14:48:42.573949352 +0100 @@ -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: eventstat -Version:0.04.05 +Version:0.04.08 Release:0 Summary:Kernel event states monitoring tool License:GPL-2.0-or-later ++ eventstat-0.04.05.tar.gz -> eventstat-0.04.08.tar.gz ++ diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/eventstat-0.04.05/Makefile new/eventstat-0.04.08/Makefile --- old/eventstat-0.04.05/Makefile 2018-10-24 10:51:08.0 +0200 +++ new/eventstat-0.04.08/Makefile 2019-12-16 12:12:12.0 +0100 @@ -1,5 +1,5 @@ # -# Copyright (C) 2011-2018 Canonical, Ltd. +# Copyright (C) 2011-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.04.05 +VERSION=0.04.08 CFLAGS += -Wall -Wextra -DVERSION='"$(VERSION)"' -O2 diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/eventstat-0.04.05/eventstat.c new/eventstat-0.04.08/eventstat.c --- old/eventstat-0.04.05/eventstat.c 2018-10-24 10:51:08.0 +0200 +++ new/eventstat-0.04.08/eventstat.c 2019-12-16 12:12:12.0 +0100 @@ -1,5 +1,5 @@ /* - * Copyright (C) 2011-2018 Canonical + * Copyright (C) 2011-2019 Canonical * * This program is free software; you can redistribute it and/or * modify it under the terms of the GNU General Public License @@ -117,9 +117,8 @@ struct timer_info *hash_next; /* Next in hash list */ pid_t pid; uint32_tref_count; /* Timer stat reference count */ - char*task; /* Name of process/kernel task */ - char*task_mangled; /* Modified name of process/kernel */ char*cmdline; /* From /proc/$pid/cmdline */ + char*comm; /* from /proc/$pid/comm */ char*func; /* Kernel waiting func */ char*ident; /* Unique identity */ uint64_ttimer; /* Timer ID */ @@ -710,7 +709,8 @@ * list since time is assumed to be increasing */ if (!found) { - if ((sdl = calloc(1, sizeof(*sdl))) == NULL) + sdl = calloc(1, sizeof(*sdl)); + if (UNLIKELY(!sdl)) err_abort("C
commit eventstat for openSUSE:Factory
Hello community, here is the log from the commit of package eventstat for openSUSE:Factory checked in at 2019-01-21 10:57:56 Comparing /work/SRC/openSUSE:Factory/eventstat (Old) and /work/SRC/openSUSE:Factory/.eventstat.new.28833 (New) Package is "eventstat" Mon Jan 21 10:57:56 2019 rev:7 rq:666478 version:0.04.05 Changes: --- /work/SRC/openSUSE:Factory/eventstat/eventstat.changes 2018-07-12 09:21:31.226616196 +0200 +++ /work/SRC/openSUSE:Factory/.eventstat.new.28833/eventstat.changes 2019-01-21 10:58:33.863414713 +0100 @@ -1,0 +2,8 @@ +Sat Jan 12 12:28:24 UTC 2019 - mar...@gmx.de + +- Update to version 0.04.05 + * Add in some missing voidifications on function returns + * Make task_mangled large enough to avoid truncation + * Re-order some fields in timer_info to pack more efficiently + +--- Old: eventstat-0.04.04.tar.gz New: eventstat-0.04.05.tar.gz Other differences: -- ++ eventstat.spec ++ --- /var/tmp/diff_new_pack.blwItS/_old 2019-01-21 10:58:34.719413597 +0100 +++ /var/tmp/diff_new_pack.blwItS/_new 2019-01-21 10:58:34.719413597 +0100 @@ -1,7 +1,7 @@ # # spec file for package eventstat # -# 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,15 +18,14 @@ Name: eventstat -Version:0.04.04 +Version:0.04.05 Release:0 Summary:Kernel event states monitoring tool License:GPL-2.0-or-later Group: System/Monitoring -Url:http://kernel.ubuntu.com/~cking/eventstat/ -Source: http://kernel.ubuntu.com/~cking/tarballs/%{name}/%{name}-%{version}.tar.gz +URL:https://kernel.ubuntu.com/~cking/eventstat/ +Source: https://kernel.ubuntu.com/~cking/tarballs/%{name}/%{name}-%{version}.tar.gz BuildRequires: ncurses-devel -BuildRoot: %{_tmppath}/%{name}-%{version}-build %description Eventstat periodically dumps out the current kernel event state.It keeps track @@ -45,9 +44,8 @@ %make_install %files -%defattr(-,root,root) -%doc COPYING +%license COPYING %{_bindir}/eventstat -%{_mandir}/man8/eventstat.8%{ext_man} +%{_mandir}/man8/eventstat.8%{?ext_man} %changelog ++ eventstat-0.04.04.tar.gz -> eventstat-0.04.05.tar.gz ++ diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/eventstat-0.04.04/.travis.yml new/eventstat-0.04.05/.travis.yml --- old/eventstat-0.04.04/.travis.yml 1970-01-01 01:00:00.0 +0100 +++ new/eventstat-0.04.05/.travis.yml 2018-10-24 10:51:08.0 +0200 @@ -0,0 +1,15 @@ +dist: bionic +sudo: required + +matrix: +include: +- env: PEDANTIC=1 + +before_install: +- sudo apt-get update -q +- sudo apt-get install build-essential + +language: c + +script: +- make -j2 PEDANTIC=$PEDANTIC diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/eventstat-0.04.04/Makefile new/eventstat-0.04.05/Makefile --- old/eventstat-0.04.04/Makefile 2018-06-13 17:33:43.0 +0200 +++ new/eventstat-0.04.05/Makefile 2018-10-24 10:51:08.0 +0200 @@ -16,7 +16,7 @@ # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. # -VERSION=0.04.04 +VERSION=0.04.05 CFLAGS += -Wall -Wextra -DVERSION='"$(VERSION)"' -O2 @@ -42,7 +42,7 @@ dist: rm -rf eventstat-$(VERSION) mkdir eventstat-$(VERSION) - cp -rp Makefile eventstat.c eventstat.8 COPYING snapcraft \ + cp -rp Makefile eventstat.c eventstat.8 COPYING snap .travis.yml \ eventstat-$(VERSION) tar -zcf eventstat-$(VERSION).tar.gz eventstat-$(VERSION) rm -rf eventstat-$(VERSION) diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/eventstat-0.04.04/eventstat.c new/eventstat-0.04.05/eventstat.c --- old/eventstat-0.04.04/eventstat.c 2018-06-13 17:33:43.0 +0200 +++ new/eventstat-0.04.05/eventstat.c 2018-10-24 10:51:08.0 +0200 @@ -116,24 +116,24 @@ struct timer_info *next;/* Next in list */ struct timer_info *hash_next; /* Next in hash list */ pid_t pid; + uint32_tref_count; /* Timer stat reference count */ char*task; /* Name of process/kernel task */ char*task_mangled; /* Modified name of process/kernel */ char*cmdline; /* From /proc/$pid/cmdline */ char*func; /* Kernel waiting f
commit eventstat for openSUSE:Factory
Hello community, here is the log from the commit of package eventstat for openSUSE:Factory checked in at 2018-07-12 09:19:37 Comparing /work/SRC/openSUSE:Factory/eventstat (Old) and /work/SRC/openSUSE:Factory/.eventstat.new (New) Package is "eventstat" Thu Jul 12 09:19:37 2018 rev:6 rq:622036 version:0.04.04 Changes: --- /work/SRC/openSUSE:Factory/eventstat/eventstat.changes 2018-02-09 15:53:32.246480297 +0100 +++ /work/SRC/openSUSE:Factory/.eventstat.new/eventstat.changes 2018-07-12 09:21:31.226616196 +0200 @@ -1,0 +2,13 @@ +Thu Jun 14 06:17:28 UTC 2018 - mar...@gmx.de + +- Update to version 0.04.04 + * Makefile: bump version + * debian/copyright: use secure url https:// etc + * debian/control: remove trailing empty line + * Fix -b brief mode headings + * Ensure we have at least 1 task accounted for + * Add CPU load, real time priority and niceness fields + * Add fast check if we are inside a container +- Fix version number typos in changelog + +--- @@ -4 +17 @@ -- Update to version 4.04.03 +- Update to version 0.04.03 @@ -14 +27 @@ -- Update to version 4.04.02 +- Update to version 0.04.02 @@ -29 +42 @@ -- Update to version 4.04.01 +- Update to version 0.04.01 @@ -45 +58 @@ -- Update to version 4.04.00 +- Update to version 0.04.00 Old: eventstat-0.04.03.tar.gz New: eventstat-0.04.04.tar.gz Other differences: -- ++ eventstat.spec ++ --- /var/tmp/diff_new_pack.5kkYgd/_old 2018-07-12 09:21:31.894617132 +0200 +++ /var/tmp/diff_new_pack.5kkYgd/_new 2018-07-12 09:21:31.898617136 +0200 @@ -18,10 +18,10 @@ Name: eventstat -Version:0.04.03 +Version:0.04.04 Release:0 Summary:Kernel event states monitoring tool -License:GPL-2.0+ +License:GPL-2.0-or-later Group: System/Monitoring Url:http://kernel.ubuntu.com/~cking/eventstat/ Source: http://kernel.ubuntu.com/~cking/tarballs/%{name}/%{name}-%{version}.tar.gz ++ eventstat-0.04.03.tar.gz -> eventstat-0.04.04.tar.gz ++ diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/eventstat-0.04.03/Makefile new/eventstat-0.04.04/Makefile --- old/eventstat-0.04.03/Makefile 2018-02-01 11:09:48.0 +0100 +++ new/eventstat-0.04.04/Makefile 2018-06-13 17:33:43.0 +0200 @@ -16,7 +16,7 @@ # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. # -VERSION=0.04.03 +VERSION=0.04.04 CFLAGS += -Wall -Wextra -DVERSION='"$(VERSION)"' -O2 diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/eventstat-0.04.03/eventstat.c new/eventstat-0.04.04/eventstat.c --- old/eventstat-0.04.03/eventstat.c 2018-02-01 11:09:48.0 +0100 +++ new/eventstat-0.04.04/eventstat.c 2018-06-13 17:33:43.0 +0200 @@ -40,6 +40,7 @@ #include #include #include +#include #define TABLE_SIZE (1009) /* Should be a prime */ @@ -121,10 +122,15 @@ char*func; /* Kernel waiting func */ char*ident; /* Unique identity */ boolkernel_thread; /* True if task is a kernel thread */ + uint16_tcpu_rt_prio;/* process priority level */ + int16_t cpu_nice; /* process nice level */ uint32_tref_count; /* Timer stat reference count */ uint64_ttimer; /* Timer ID */ uint64_ttotal_events; /* Total number of events */ uint64_tdelta_events; /* Events in one time period */ + uint32_tcpu_tasks; /* Number of tasks sharing ticks */ + uint64_tcpu_ticks; /* CPU utilization ticks */ + double cpu_ticks_time; /* CPU utilization ticks, last read */ double time_total; /* Total time */ double last_used; /* Last referenced */ double prev_used; /* Previous time used */ @@ -195,6 +201,7 @@ static bool g_curses_init; /* curses initialised */ static int g_rows = 25;/* tty size, rows */ static int g_cols = 80;/* tty size, columns */ +static uint64_t clock_tick_rate; /* system clock tick rate */ /* * Attempt to catch a range of signals so @@ -484,6 +491,10 @@ const char *ptr = pattern; bool ret = true; +/* Fast check */ +if (access("/run/systemd/container", R_OK) == 0) + return false; + fp = fopen("/proc/1/environ", "r"); if (!fp) return false; @@ -523,6 +534,135
commit eventstat for openSUSE:Factory
Hello community, here is the log from the commit of package eventstat for openSUSE:Factory checked in at 2018-02-09 15:53:27 Comparing /work/SRC/openSUSE:Factory/eventstat (Old) and /work/SRC/openSUSE:Factory/.eventstat.new (New) Package is "eventstat" Fri Feb 9 15:53:27 2018 rev:5 rq:574630 version:0.04.03 Changes: --- /work/SRC/openSUSE:Factory/eventstat/eventstat.changes 2017-10-30 21:19:00.798044294 +0100 +++ /work/SRC/openSUSE:Factory/.eventstat.new/eventstat.changes 2018-02-09 15:53:32.246480297 +0100 @@ -1,0 +2,10 @@ +Thu Feb 1 12:58:11 UTC 2018 - mar...@gmx.de + +- Update to version 4.04.03 + * Makefile: bump version + * re-format some overly wide source lines + * Don't force wide display unless long mode is used + * eventstat: add some more UNLIKELY/LIKELY annotations + * Update copyright dates + +--- Old: eventstat-0.04.02.tar.gz New: eventstat-0.04.03.tar.gz Other differences: -- ++ eventstat.spec ++ --- /var/tmp/diff_new_pack.DnCb8O/_old 2018-02-09 15:53:33.134448402 +0100 +++ /var/tmp/diff_new_pack.DnCb8O/_new 2018-02-09 15:53:33.134448402 +0100 @@ -1,7 +1,7 @@ # # spec file for package eventstat # -# 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: eventstat -Version:0.04.02 +Version:0.04.03 Release:0 Summary:Kernel event states monitoring tool License:GPL-2.0+ ++ eventstat-0.04.02.tar.gz -> eventstat-0.04.03.tar.gz ++ diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/eventstat-0.04.02/Makefile new/eventstat-0.04.03/Makefile --- old/eventstat-0.04.02/Makefile 2017-10-18 23:15:10.0 +0200 +++ new/eventstat-0.04.03/Makefile 2018-02-01 11:09:48.0 +0100 @@ -1,5 +1,5 @@ # -# Copyright (C) 2011-2017 Canonical, Ltd. +# Copyright (C) 2011-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.04.02 +VERSION=0.04.03 CFLAGS += -Wall -Wextra -DVERSION='"$(VERSION)"' -O2 diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/eventstat-0.04.02/eventstat.8 new/eventstat-0.04.03/eventstat.8 --- old/eventstat-0.04.02/eventstat.8 2017-10-18 23:15:10.0 +0200 +++ new/eventstat-0.04.03/eventstat.8 2018-02-01 11:09:48.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 EVENTSTAT 8 "August 14, 2018" +.TH EVENTSTAT 8 "August 14, 2017" .\" Please adjust this date whenever revising the manpage. .\" .\" Some roff macros, for reference: diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/eventstat-0.04.02/eventstat.c new/eventstat-0.04.03/eventstat.c --- old/eventstat-0.04.02/eventstat.c 2017-10-18 23:15:10.0 +0200 +++ new/eventstat-0.04.03/eventstat.c 2018-02-01 11:09:48.0 +0100 @@ -1,5 +1,5 @@ /* - * Copyright (C) 2011-2017 Canonical + * Copyright (C) 2011-2018 Canonical * * This program is free software; you can redistribute it and/or * modify it under the terms of the GNU General Public License @@ -261,7 +261,7 @@ const int min_digits = 5; char buf[32]; - if (max_digits) + if (LIKELY(max_digits)) goto ret; max_digits = default_digits; @@ -621,7 +621,7 @@ timer_info_t *const *info1 = (timer_info_t *const *)item1; timer_info_t *const *info2 = (timer_info_t *const *)item2; - if ((*info2)->total_events == (*info1)->total_events) + if (UNLIKELY((*info2)->total_events == (*info1)->total_events)) return 0; return ((*info2)->total_events > (*info1)->total_events) ? 1 : -1; @@ -679,7 +679,7 @@ const pid_t pgid = id == 0 ? 0 : getpgid(id); /* We are either in a container, or with a task with a NULL cmdline */ - if (g_sane_procs || (id >= 0)) + if (LIKELY(g_sane_procs || (id >= 0))) return (pgid == 0); /* Can't get pgid on that pid, so make a guess */ @@ -798,7 +798,8 @@ (void)fprintf(fp, ",Total:"); for (i = 0; i < n; i++) - (void)fprintf(fp, ",%"
commit eventstat for openSUSE:Factory
Hello community, here is the log from the commit of package eventstat for openSUSE:Factory checked in at 2017-10-30 21:18:40 Comparing /work/SRC/openSUSE:Factory/eventstat (Old) and /work/SRC/openSUSE:Factory/.eventstat.new (New) Package is "eventstat" Mon Oct 30 21:18:40 2017 rev:4 rq:537433 version:0.04.02 Changes: --- /work/SRC/openSUSE:Factory/eventstat/eventstat.changes 2017-09-09 20:26:13.000780368 +0200 +++ /work/SRC/openSUSE:Factory/.eventstat.new/eventstat.changes 2017-10-30 21:19:00.798044294 +0100 @@ -1,0 +2,15 @@ +Thu Oct 19 17:49:55 UTC 2017 - mar...@gmx.de + +- Update to version 4.04.02 + * Makefile: bump version + * Iterate over arrays using size of array rather than using +sentinels at end of array + * Remove empty lines + * Voidify returns from various functions + * Add some UNLIKELY/LIKELY branch hinting + * debian/control: update Standards-Version to 4.1.1 + * Prefix all globals with g_ to notify scope + * Use sizeof object rather than size of type + * Remove whitespace from source + +--- Old: eventstat-0.04.01.tar.gz New: eventstat-0.04.02.tar.gz Other differences: -- ++ eventstat.spec ++ --- /var/tmp/diff_new_pack.AvqflS/_old 2017-10-30 21:19:01.366023644 +0100 +++ /var/tmp/diff_new_pack.AvqflS/_new 2017-10-30 21:19:01.390022771 +0100 @@ -18,7 +18,7 @@ Name: eventstat -Version:0.04.01 +Version:0.04.02 Release:0 Summary:Kernel event states monitoring tool License:GPL-2.0+ ++ eventstat-0.04.01.tar.gz -> eventstat-0.04.02.tar.gz ++ diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/eventstat-0.04.01/Makefile new/eventstat-0.04.02/Makefile --- old/eventstat-0.04.01/Makefile 2017-08-16 20:47:11.0 +0200 +++ new/eventstat-0.04.02/Makefile 2017-10-18 23:15:10.0 +0200 @@ -16,7 +16,7 @@ # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. # -VERSION=0.04.01 +VERSION=0.04.02 CFLAGS += -Wall -Wextra -DVERSION='"$(VERSION)"' -O2 diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/eventstat-0.04.01/eventstat.c new/eventstat-0.04.02/eventstat.c --- old/eventstat-0.04.01/eventstat.c 2017-08-16 20:47:11.0 +0200 +++ new/eventstat-0.04.02/eventstat.c 2017-10-18 23:15:10.0 +0200 @@ -43,6 +43,8 @@ #define TABLE_SIZE (1009) /* Should be a prime */ +#define SIZEOF_ARRAY(a)(sizeof(a) / sizeof(a[0])) + #define OPT_QUIET (0x0001) #define OPT_CUMULATIVE (0x0002) #define OPT_CMD_SHORT (0x0004) @@ -95,6 +97,14 @@ #define OPTIMIZE3 #endif +#if defined(__GNUC__) +#define LIKELY(x) __builtin_expect((x),1) +#define UNLIKELY(x)__builtin_expect((x),0) +#else +#define LIKELY(x) (x) +#define UNLIKELY(x)(x) +#endif + #define FLOAT_TINY (0.001) #define FLOAT_CMP(a, b)(fabs(a - b) < FLOAT_TINY) @@ -150,47 +160,47 @@ #define KERN_TASK_INFO(str){ str, sizeof(str) - 1 } -static const char * const app_name = "eventstat"; -static const char * const sys_tracing_enable = +static const char * const g_app_name = "eventstat"; +static const char * const g_sys_tracing_enable = "/sys/kernel/debug/tracing/events/timer/hrtimer_start/enable"; -static const char * const sys_tracing_pipe = +static const char * const g_sys_tracing_pipe = "/sys/kernel/debug/tracing/trace_pipe"; -static const char * const sys_tracing_set_event = +static const char * const g_sys_tracing_set_event = "/sys/kernel/debug/tracing/set_event"; -static const char * const sys_tracing_filter = +static const char * const g_sys_tracing_filter = "/sys/kernel/debug/tracing/events/timer/filter"; static void es_printf(const char *fmt, ...) __attribute__((format(printf, 1, 2))); -static timer_stat_t *timer_stat_free_list; /* free list of timer stats */ -static timer_info_t *timer_info_list; /* cache list of timer_info */ -static timer_info_t *timer_info_hash[TABLE_SIZE]; /* hash of timer_info */ +static timer_stat_t *g_timer_stat_free_list; /* free list of timer stats */ +static timer_info_t *g_timer_info_list;/* cache list of timer_info */ +static timer_info_t *g_timer_info_hash[TABLE_SIZE]; /* hash of timer_info */ /* head of list of samples, sorted in sample time order */ -static sample_delta_list_t *sample_delta_list_head; +static sample_delta_list_t *g_sample_delta_list_head; /* tail of list of samples, sorted in sample time order */ -static sample_delta_list_
commit eventstat for openSUSE:Factory
Hello community, here is the log from the commit of package eventstat for openSUSE:Factory checked in at 2017-09-09 20:26:06 Comparing /work/SRC/openSUSE:Factory/eventstat (Old) and /work/SRC/openSUSE:Factory/.eventstat.new (New) Package is "eventstat" Sat Sep 9 20:26:06 2017 rev:3 rq:522035 version:0.04.01 Changes: --- /work/SRC/openSUSE:Factory/eventstat/eventstat.changes 2017-05-18 20:50:29.676847974 +0200 +++ /work/SRC/openSUSE:Factory/.eventstat.new/eventstat.changes 2017-09-09 20:26:13.000780368 +0200 @@ -1,0 +2,32 @@ +Sat Aug 19 13:59:47 UTC 2017 - mar...@gmx.de + +- Update to version 4.04.01 + * Makefile: bump version + * Remove unused variable fields + * Fix -c cumulative stats + * Make column sizing more intelligent + * snapcraft: Makefile: set LC_ALL=C.UTF-8 LANG=C.UTF-8 + * Add back ref_count reference counting which was accidentally removed + * Compute column width correctly with -i mode being used + * Make source more 80 column friendly + * Use double_to_timeval instead of time coversion + * Minor code clean up, no functional changes + * Fix non-root failure message + * Break out of trace reading loop on SIGINT + * Add -i timer ID information mode + * Add libncurses5-dev to snapcraft build dependencies + +- Update to version 4.04.00 + * Makefile: bump version + * Debian/control: update Standards-Version to 4.0.0 + * Update manual + * Fix reversed order sample list, put data on tail instead of head + * Add back functioning -S option now that stats look sane + * Fake initial previous time event on first event. + * Remove whence debug info + * Eventstat: use event tracing rather than the older deprecated +/proc/timer_stats interface (LP: #1705472) + * Make symlink to snapcraft file + * Snapcraft: add default type and grade keys to yaml + +--- Old: eventstat-0.03.04.tar.gz New: eventstat-0.04.01.tar.gz Other differences: -- ++ eventstat.spec ++ --- /var/tmp/diff_new_pack.yWVFH5/_old 2017-09-09 20:26:14.168615759 +0200 +++ /var/tmp/diff_new_pack.yWVFH5/_new 2017-09-09 20:26:14.176614632 +0200 @@ -18,7 +18,7 @@ Name: eventstat -Version:0.03.04 +Version:0.04.01 Release:0 Summary:Kernel event states monitoring tool License:GPL-2.0+ ++ eventstat-0.03.04.tar.gz -> eventstat-0.04.01.tar.gz ++ diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/eventstat-0.03.04/Makefile new/eventstat-0.04.01/Makefile --- old/eventstat-0.03.04/Makefile 2017-04-14 17:41:53.0 +0200 +++ new/eventstat-0.04.01/Makefile 2017-08-16 20:47:11.0 +0200 @@ -16,7 +16,7 @@ # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. # -VERSION=0.03.04 +VERSION=0.04.01 CFLAGS += -Wall -Wextra -DVERSION='"$(VERSION)"' -O2 diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/eventstat-0.03.04/eventstat.8 new/eventstat-0.04.01/eventstat.8 --- old/eventstat-0.03.04/eventstat.8 2017-04-14 17:41:53.0 +0200 +++ new/eventstat-0.04.01/eventstat.8 2017-08-16 20:47:11.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 EVENTSTAT 8 "February 11, 2016" +.TH EVENTSTAT 8 "August 14, 2018" .\" Please adjust this date whenever revising the manpage. .\" .\" Some roff macros, for reference: @@ -25,7 +25,8 @@ .br .SH DESCRIPTION -eventstat is a program that dumps the current active system events. +eventstat is a program that dumps the current active system events that are +added to the kernel timer list. .SH OPTIONS eventstat options are as follow: @@ -46,7 +47,10 @@ strip full directory path off the process name in the CSV output. .TP .B \-h -show help +show help. +.TP +.B \-i +show timer ID information. .TP .B \-k report just kernel threads. @@ -115,15 +119,19 @@ .LP The first row lists the task name of the thread or process. Task names in [ ] brackets are kernel threads, other tasks are the names of user space processes. By default these -names are derived from the task names from /proc/timer_stats but the \-s \-l options +names are derived from the task names from kernel trace events but the \-s \-l options fetch more complete task names from /proc/pid/cmdline instead. .LP -The second and third rows list the names of the internal Linux kernel timer init and callback functions, respectively. +The second and third rows list the names of the internal Linux kernel timer init function.
commit eventstat for openSUSE:Factory
Hello community, here is the log from the commit of package eventstat for openSUSE:Factory checked in at 2017-05-18 20:50:24 Comparing /work/SRC/openSUSE:Factory/eventstat (Old) and /work/SRC/openSUSE:Factory/.eventstat.new (New) Package is "eventstat" Thu May 18 20:50:24 2017 rev:2 rq:495697 version:0.03.04 Changes: --- /work/SRC/openSUSE:Factory/eventstat/eventstat.changes 2016-09-21 18:46:42.0 +0200 +++ /work/SRC/openSUSE:Factory/.eventstat.new/eventstat.changes 2017-05-18 20:50:29.676847974 +0200 @@ -1,0 +2,24 @@ +Wed May 10 14:40:35 UTC 2017 - mar...@gmx.de + +- update to version 0.03.04 + * Makefile: bump version + * Add GNU C printf attribute to err_abort + * Makefile: add snapcraft files to make dist rule + * Add variable pid size handling. + * Add snapcraft files + * Update copyright year + * Fix non-ANSI declaration of functions eventstat_winsize +and eventstat_refresh + +- update to version 0.03.03 + * Makefile: bump version + * Fix FLOAT_CMP macro - need fabs on result + * Remove sdl declarations to fix sdl shadowing + * constify info1, info2 + * Move scope of duration, removes shadowing of this variable + * Allow floating point comparisons a little bit of tiny slop + * Add stdarg.h header + * use gnu printf style attributes for es_printf + * Makefile: add PEDANTIC flags + +--- Old: eventstat-0.03.02.tar.gz New: eventstat-0.03.04.tar.gz Other differences: -- ++ eventstat.spec ++ --- /var/tmp/diff_new_pack.lpVUzY/_old 2017-05-18 20:50:30.544725493 +0200 +++ /var/tmp/diff_new_pack.lpVUzY/_new 2017-05-18 20:50:30.544725493 +0200 @@ -1,7 +1,8 @@ # # spec file for package eventstat # -# Copyright (c) 2016, 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: eventstat -Version:0.03.02 +Version:0.03.04 Release:0 Summary:Kernel event states monitoring tool License:GPL-2.0+ @@ -47,6 +48,6 @@ %defattr(-,root,root) %doc COPYING %{_bindir}/eventstat -%{_mandir}/man8/* +%{_mandir}/man8/eventstat.8%{ext_man} %changelog ++ eventstat-0.03.02.tar.gz -> eventstat-0.03.04.tar.gz ++ diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/eventstat-0.03.02/Makefile new/eventstat-0.03.04/Makefile --- old/eventstat-0.03.02/Makefile 2016-05-05 14:20:21.0 +0200 +++ new/eventstat-0.03.04/Makefile 2017-04-14 17:41:53.0 +0200 @@ -1,5 +1,5 @@ # -# Copyright (C) 2011-2016 Canonical, Ltd. +# Copyright (C) 2011-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,10 +16,20 @@ # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. # -VERSION=0.03.02 +VERSION=0.03.04 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 + BINDIR=/usr/bin MANDIR=/usr/share/man/man8 @@ -32,7 +42,8 @@ dist: rm -rf eventstat-$(VERSION) mkdir eventstat-$(VERSION) - cp -rp Makefile eventstat.c eventstat.8 COPYING eventstat-$(VERSION) + cp -rp Makefile eventstat.c eventstat.8 COPYING snapcraft \ + eventstat-$(VERSION) tar -zcf eventstat-$(VERSION).tar.gz eventstat-$(VERSION) rm -rf eventstat-$(VERSION) diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/eventstat-0.03.02/eventstat.c new/eventstat-0.03.04/eventstat.c --- old/eventstat-0.03.02/eventstat.c 2016-05-05 14:20:21.0 +0200 +++ new/eventstat-0.03.04/eventstat.c 2017-04-14 17:41:53.0 +0200 @@ -1,5 +1,5 @@ /* - * Copyright (C) 2011-2016 Canonical + * Copyright (C) 2011-2017 Canonical * Hugely modified parts from powertop-1.13, Copyright 2007, Intel Corporation * * This program is free software; you can redistribute it and/or @@ -23,6 +23,7 @@ #include #include #include +#include #include #include #include @@ -90,6 +91,9 @@ #define OPTIMIZE3 #endif +#define FLOAT_TINY (0.001) +#define FLOAT_CMP(a, b)(fabs(a - b) < FLOAT_TINY) +