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 - [email protected] + +- 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 <[email protected]> # # 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.000000000 +0100 +++ new/eventstat-0.04.05/.travis.yml 2018-10-24 10:51:08.000000000 +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.000000000 +0200 +++ new/eventstat-0.04.05/Makefile 2018-10-24 10:51:08.000000000 +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.000000000 +0200 +++ new/eventstat-0.04.05/eventstat.c 2018-10-24 10:51:08.000000000 +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_t ref_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 func */ char *ident; /* Unique identity */ - bool kernel_thread; /* True if task is a kernel thread */ - uint16_t cpu_rt_prio; /* process priority level */ - int16_t cpu_nice; /* process nice level */ - uint32_t ref_count; /* Timer stat reference count */ uint64_t timer; /* Timer ID */ uint64_t total_events; /* Total number of events */ uint64_t delta_events; /* Events in one time period */ + uint16_t cpu_rt_prio; /* process priority level */ + int16_t cpu_nice; /* process nice level */ uint32_t cpu_tasks; /* Number of tasks sharing ticks */ uint64_t cpu_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 */ + bool kernel_thread; /* True if task is a kernel thread */ } timer_info_t; typedef struct timer_stat { @@ -328,7 +328,7 @@ static inline void eventstat_clear(void) { if (g_curses_init) - clear(); + (void)clear(); } /* @@ -338,7 +338,7 @@ static inline void eventstat_refresh(void) { if (g_curses_init) - refresh(); + (void)refresh(); } /* @@ -348,7 +348,7 @@ static inline void eventstat_move(const int y, const int x) { if (g_curses_init) - move(y, x); + (void)move(y, x); } /* @@ -358,8 +358,8 @@ static void eventstat_endwin(void) { if (g_curses_init) { - clear(); - endwin(); + (void)clear(); + (void)endwin(); } } @@ -381,7 +381,7 @@ } /* - * set_tracing_enable() + * set_tracing() * enable/disable timer stat */ static void set_tracing(const char *path, const char *str, const bool carp) @@ -541,7 +541,7 @@ struct dirent *d; uint32_t n = 0; - snprintf(path, sizeof(path), "/proc/%d/task", pid); + (void)snprintf(path, sizeof(path), "/proc/%d/task", pid); dir = opendir(path); if (!dir) @@ -584,7 +584,7 @@ uint64_t utime, stime; ssize_t len; - snprintf(path, sizeof(path), "/proc/%d/stat", pid); + (void)snprintf(path, sizeof(path), "/proc/%d/stat", pid); *ticks = 0; @@ -1420,8 +1420,8 @@ eventstat_winsize(); if (UNLIKELY(g_resized && g_curses_init)) { - resizeterm(g_rows, g_cols); - refresh(); + (void)resizeterm(g_rows, g_cols); + (void)refresh(); g_resized = false; } @@ -1671,7 +1671,7 @@ while (*tmpptr) { char *ptr, *eol = tmpptr; char task[64]; - char task_mangled[64]; + char task_mangled[68]; char func[64]; char *cmdline; int mask; @@ -1938,12 +1938,12 @@ if (sigaction(SIGWINCH, &sa, NULL) < 0) err_abort("sigaction failed: errno=%d (%s)\n", errno, strerror(errno)); - initscr(); - cbreak(); - noecho(); - nodelay(stdscr, 1); - keypad(stdscr, 1); - curs_set(0); + (void)initscr(); + (void)cbreak(); + (void)noecho(); + (void)nodelay(stdscr, 1); + (void)keypad(stdscr, 1); + (void)curs_set(0); g_curses_init = true; } diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/eventstat-0.04.04/snap/Makefile new/eventstat-0.04.05/snap/Makefile --- old/eventstat-0.04.04/snap/Makefile 1970-01-01 01:00:00.000000000 +0100 +++ new/eventstat-0.04.05/snap/Makefile 2018-10-24 10:51:08.000000000 +0200 @@ -0,0 +1,18 @@ +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: set_version + LC_ALL=C.UTF-8 LANG=C.UTF-8 snapcraft + +set_version: + cat snapcraft.yaml | sed 's/version: .*/version: $(V)/' > snapcraft-tmp.yaml + mv snapcraft-tmp.yaml snapcraft.yaml + +clean: + rm -rf setup *.snap + LC_ALL=C.UTF-8 LANG=C.UTF-8 snapcraft clean + cat snapcraft.yaml | sed 's/version: .*/version: 0/' > snapcraft-tmp.yaml + mv snapcraft-tmp.yaml snapcraft.yaml diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/eventstat-0.04.04/snap/snapcraft.yaml new/eventstat-0.04.05/snap/snapcraft.yaml --- old/eventstat-0.04.04/snap/snapcraft.yaml 1970-01-01 01:00:00.000000000 +0100 +++ new/eventstat-0.04.05/snap/snapcraft.yaml 2018-10-24 10:51:08.000000000 +0200 @@ -0,0 +1,21 @@ +name: eventstat +version: 0.03.04-20170425-264-0910972 +summary: kernel event states monitoring tool +description: Eventstat periodically dumps out the current kernel event state. It keeps track of current events and outputs the change in events on each output update. The tool requires sudo to run since it needs to write to /proc/timer_stats to start and stop the event monitoring. +confinement: strict +type: app +grade: stable + +parts: + eventstat: + plugin: make + source: git://kernel.ubuntu.com/cking/eventstat + build-packages: + - gcc + - make + - libncurses5-dev + +apps: + eventstat: + command: usr/bin/eventstat + diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/eventstat-0.04.04/snapcraft/Makefile new/eventstat-0.04.05/snapcraft/Makefile --- old/eventstat-0.04.04/snapcraft/Makefile 2018-06-13 17:33:43.000000000 +0200 +++ new/eventstat-0.04.05/snapcraft/Makefile 1970-01-01 01:00:00.000000000 +0100 @@ -1,18 +0,0 @@ -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: set_version - LC_ALL=C.UTF-8 LANG=C.UTF-8 snapcraft - -set_version: - cat snapcraft.yaml | sed 's/version: .*/version: $(V)/' > snapcraft-tmp.yaml - mv snapcraft-tmp.yaml snapcraft.yaml - -clean: - rm -rf setup *.snap - LC_ALL=C.UTF-8 LANG=C.UTF-8 snapcraft clean - cat snapcraft.yaml | sed 's/version: .*/version: 0/' > snapcraft-tmp.yaml - mv snapcraft-tmp.yaml snapcraft.yaml diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/eventstat-0.04.04/snapcraft/snapcraft.yaml new/eventstat-0.04.05/snapcraft/snapcraft.yaml --- old/eventstat-0.04.04/snapcraft/snapcraft.yaml 2018-06-13 17:33:43.000000000 +0200 +++ new/eventstat-0.04.05/snapcraft/snapcraft.yaml 1970-01-01 01:00:00.000000000 +0100 @@ -1,21 +0,0 @@ -name: eventstat -version: 0.03.04-20170425-264-0910972 -summary: kernel event states monitoring tool -description: Eventstat periodically dumps out the current kernel event state. It keeps track of current events and outputs the change in events on each output update. The tool requires sudo to run since it needs to write to /proc/timer_stats to start and stop the event monitoring. -confinement: strict -type: app -grade: stable - -parts: - eventstat: - plugin: make - source: git://kernel.ubuntu.com/cking/eventstat - build-packages: - - gcc - - make - - libncurses5-dev - -apps: - eventstat: - command: usr/bin/eventstat -
