13 Commits

Author SHA256 Message Date
908b0af4cf Accepting request 1158796 from home:dirkmueller:Factory
- update to 0.06.00:
  * eventstat: the Init Function should be annotated as "Kernel
    Init Function"
  * eventstat: report all cumulative events

OBS-URL: https://build.opensuse.org/request/show/1158796
OBS-URL: https://build.opensuse.org/package/show/server:monitoring/eventstat?expand=0&rev=30
2024-04-07 08:36:21 +00:00
c88928300d Accepting request 1127943 from home:dirkmueller:Factory
- update to 0.05.01:
  * Minor code cleanup, no functional changes
  * Fix potential division by zero when duration is 0.0
  * Limit sscanf string field sizes to match size of buffers
    being used

OBS-URL: https://build.opensuse.org/request/show/1127943
OBS-URL: https://build.opensuse.org/package/show/server:monitoring/eventstat?expand=0&rev=28
2023-11-27 12:34:01 +00:00
6d09295bbf Accepting request 973578 from home:dirkmueller:Factory
- udpate to 0.04.13:
  * manual: update date, author email and copyright
  * Add README.md file
  * snapcraft: update to core20

OBS-URL: https://build.opensuse.org/request/show/973578
OBS-URL: https://build.opensuse.org/package/show/server:monitoring/eventstat?expand=0&rev=26
2022-04-28 08:58:14 +00:00
Lars Vogdt
d098e069b0 Accepting request 889277 from home:mnhauke
- Update to version 0.04.12
  * Rename clock_tick_rate to g_clock_tick_rate
  * Make get_events_buf local
- Update to version 0.04.11
  * handle case where comm field contains ) and spaces

OBS-URL: https://build.opensuse.org/request/show/889277
OBS-URL: https://build.opensuse.org/package/show/server:monitoring/eventstat?expand=0&rev=24
2021-05-12 15:04:32 +00:00
3d73315190 Accepting request 846851 from home:mnhauke
- Update to version 0.04.10
  * handle case where comm field contains ) and spaces

OBS-URL: https://build.opensuse.org/request/show/846851
OBS-URL: https://build.opensuse.org/package/show/server:monitoring/eventstat?expand=0&rev=22
2020-11-11 19:58:18 +00:00
Lars Vogdt
eb5f9ac222 Accepting request 783073 from home:mnhauke
- Drop SLE12 compat ifdef
- Supplement against bash-completion, not bash

- Update to version 0.04.09
  * Add bash completion script

OBS-URL: https://build.opensuse.org/request/show/783073
OBS-URL: https://build.opensuse.org/package/show/server:monitoring/eventstat?expand=0&rev=20
2020-03-12 12:27:52 +00:00
Lars Vogdt
ad4e69f5e6 Accepting request 757612 from home:mnhauke
- 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

- Update to version 0.04.07
  * No functional changes

- Update to version 0.04.06
  * Reduce scope of variable ticks
  * Remove unused assignments
  * Update copyright year

OBS-URL: https://build.opensuse.org/request/show/757612
OBS-URL: https://build.opensuse.org/package/show/server:monitoring/eventstat?expand=0&rev=18
2019-12-17 21:31:29 +00:00
Lars Vogdt
afa320eb26 Accepting request 664970 from home:mnhauke
- 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

OBS-URL: https://build.opensuse.org/request/show/664970
OBS-URL: https://build.opensuse.org/package/show/server:monitoring/eventstat?expand=0&rev=16
2019-01-16 13:43:06 +00:00
c5d33f37b7 Accepting request 616700 from home:mnhauke
- 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

- Update to version 0.04.03
- Update to version 0.04.02
- Update to version 0.04.01
- Update to version 0.04.00

OBS-URL: https://build.opensuse.org/request/show/616700
OBS-URL: https://build.opensuse.org/package/show/server:monitoring/eventstat?expand=0&rev=14
2018-07-11 08:47:27 +00:00
Lars Vogdt
19e7bba0af Accepting request 571692 from home:mnhauke
- 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

OBS-URL: https://build.opensuse.org/request/show/571692
OBS-URL: https://build.opensuse.org/package/show/server:monitoring/eventstat?expand=0&rev=12
2018-02-09 12:13:08 +00:00
Lars Vogdt
ca370157d5 Accepting request 535300 from home:mnhauke
- 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

OBS-URL: https://build.opensuse.org/request/show/535300
OBS-URL: https://build.opensuse.org/package/show/server:monitoring/eventstat?expand=0&rev=10
2017-10-29 16:43:37 +00:00
Lars Vogdt
2addd5b3b2 Accepting request 517696 from home:mnhauke
- 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

OBS-URL: https://build.opensuse.org/request/show/517696
OBS-URL: https://build.opensuse.org/package/show/server:monitoring/eventstat?expand=0&rev=8
2017-09-07 15:21:12 +00:00
28e871f052 Accepting request 494297 from home:mnhauke
- 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

OBS-URL: https://build.opensuse.org/request/show/494297
OBS-URL: https://build.opensuse.org/package/show/server:monitoring/eventstat?expand=0&rev=6
2017-05-17 18:48:10 +00:00
4 changed files with 216 additions and 16 deletions

3
V0.06.00.tar.gz Normal file
View File

@@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:cf4060b6e867f60be2da0fb47930b58d76a8c22612243d09db19363dfce3f384
size 32292

View File

@@ -1,3 +0,0 @@
version https://git-lfs.github.com/spec/v1
oid sha256:1bc325263ba234d2dcbe0d5187832ca29913f68b4184ef95bcaf13a22210e4c4
size 20899

View File

@@ -1,3 +1,188 @@
-------------------------------------------------------------------
Sun Mar 17 17:44:54 UTC 2024 - Dirk Müller <dmueller@suse.com>
- update to 0.06.00:
* eventstat: the Init Function should be annotated as "Kernel
Init Function"
* eventstat: report all cumulative events
-------------------------------------------------------------------
Fri Mar 17 17:12:28 UTC 2023 - Dirk Müller <dmueller@suse.com>
- update to 0.05.01:
* Minor code cleanup, no functional changes
* Fix potential division by zero when duration is 0.0
* Limit sscanf string field sizes to match size of buffers
being used
-------------------------------------------------------------------
Thu Apr 28 07:39:11 UTC 2022 - Dirk Müller <dmueller@suse.com>
- udpate to 0.04.13:
* manual: update date, author email and copyright
* Add README.md file
* snapcraft: update to core20
-------------------------------------------------------------------
Thu Apr 29 11:47:22 UTC 2021 - Martin Hauke <mardnh@gmx.de>
- Update to version 0.04.12
* Rename clock_tick_rate to g_clock_tick_rate
* Make get_events_buf local
- Update to version 0.04.11
* handle case where comm field contains ) and spaces
-------------------------------------------------------------------
Sat Nov 7 18:21:22 UTC 2020 - Martin Hauke <mardnh@gmx.de>
- Update to version 0.04.10
* handle case where comm field contains ) and spaces
-------------------------------------------------------------------
Mon Mar 9 18:53:10 UTC 2020 - Martin Hauke <mardnh@gmx.de>
- Drop SLE12 compat ifdef
- Supplement against bash-completion, not bash
-------------------------------------------------------------------
Wed Feb 26 13:36:40 UTC 2020 - Martin Hauke <mardnh@gmx.de>
- Update to version 0.04.09
* Add bash completion script
-------------------------------------------------------------------
Tue Dec 17 19:37:05 UTC 2019 - Martin Hauke <mardnh@gmx.de>
- 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 <mardnh@gmx.de>
- Update to version 0.04.07
* No functional changes
-------------------------------------------------------------------
Fri Jul 12 18:28:14 UTC 2019 - Martin Hauke <mardnh@gmx.de>
- Update to version 0.04.06
* Reduce scope of variable ticks
* Remove unused assignments
* Update copyright year
-------------------------------------------------------------------
Sat Jan 12 12:28:24 UTC 2019 - mardnh@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
-------------------------------------------------------------------
Thu Jun 14 06:17:28 UTC 2018 - mardnh@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
-------------------------------------------------------------------
Thu Feb 1 12:58:11 UTC 2018 - mardnh@gmx.de
- Update to version 0.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
-------------------------------------------------------------------
Thu Oct 19 17:49:55 UTC 2017 - mardnh@gmx.de
- Update to version 0.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
-------------------------------------------------------------------
Sat Aug 19 13:59:47 UTC 2017 - mardnh@gmx.de
- Update to version 0.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 0.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
-------------------------------------------------------------------
Wed May 10 14:40:35 UTC 2017 - mardnh@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
------------------------------------------------------------------- -------------------------------------------------------------------
Sat Jul 30 13:41:13 UTC 2016 - mardnh@gmx.de Sat Jul 30 13:41:13 UTC 2016 - mardnh@gmx.de

View File

@@ -1,7 +1,8 @@
# #
# spec file for package eventstat # spec file for package eventstat
# #
# Copyright (c) 2016, Martin Hauke <mardnh@gmx.de> # Copyright (c) 2024 SUSE LLC
# Copyright (c) 2017-2021, Martin Hauke <mardnh@gmx.de>
# #
# All modifications and additions to the file contributed by third parties # All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed # remain the property of their copyright owners, unless otherwise agreed
@@ -12,20 +13,19 @@
# license that conforms to the Open Source Definition (Version 1.9) # license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative. # 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 Name: eventstat
Version: 0.03.02 Version: 0.06.00
Release: 0 Release: 0
Summary: Kernel event states monitoring tool Summary: Kernel event states monitoring tool
License: GPL-2.0+ License: GPL-2.0-or-later
Group: System/Monitoring Group: System/Monitoring
Url: http://kernel.ubuntu.com/~cking/eventstat/ URL: https://github.com/ColinIanKing/eventstat
Source: http://kernel.ubuntu.com/~cking/tarballs/%{name}/%{name}-%{version}.tar.gz Source: https://github.com/ColinIanKing/eventstat/archive/refs/tags/V%{version}.tar.gz
BuildRequires: ncurses-devel BuildRequires: ncurses-devel
BuildRoot: %{_tmppath}/%{name}-%{version}-build
%description %description
Eventstat periodically dumps out the current kernel event state.It keeps track Eventstat periodically dumps out the current kernel event state.It keeps track
@@ -33,20 +33,35 @@ 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 The tool requires sudo to run since it needs to write to /proc/timer_stats to
start and stop the event monitoring. 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 %prep
%setup -q %setup -q
%build %build
export CFLAGS="%{optflags}" export CFLAGS="%{optflags}"
make %{?_smp_mflags} %make_build
%install %install
%make_install %make_install
%files %files
%defattr(-,root,root) %license COPYING
%doc COPYING %doc README.md
%{_bindir}/eventstat %{_bindir}/eventstat
%{_mandir}/man8/* %{_mandir}/man8/eventstat.8%{?ext_man}
%files bash-completion
%{_datadir}/bash-completion/completions/%{name}
%changelog %changelog