Blame SPECS/stalld.spec

16859e
Name:		stalld
a7866d
Version:	1.15
16859e
Release:	1%{?dist}
16859e
Summary:	Daemon that finds starving tasks and gives them a temporary boost
16859e
16859e
License:	GPLv2
f92baf
URL:		https://gitlab.com/rt-linux-tools/%{name}/%{name}.git
f92baf
Source0:	https://gitlab.com/rt-linux-tools/%{name}/-/archive/v%{version}/%{name}-%{version}.tar.bz2
16859e
16859e
BuildRequires:	glibc-devel
16859e
BuildRequires:	gcc
16859e
BuildRequires:	make
16859e
BuildRequires:	systemd-rpm-macros
16859e
16859e
Requires:	systemd
16859e
16859e
%description
16859e
The stalld program monitors the set of system threads,
16859e
looking for threads that are ready-to-run but have not
16859e
been given processor time for some threshold period.
16859e
When a starving thread is found, it is given a temporary
16859e
boost using the SCHED_DEADLINE policy. The default is to
16859e
allow 10 microseconds of runtime for 1 second of clock time.
16859e
16859e
%prep
16859e
%autosetup
16859e
16859e
%build
f92baf
%make_build CFLAGS="%{optflags} %{build_cflags} -DVERSION="\\\"%{version}\\\"""  LDFLAGS="%{build_ldflags}"
16859e
16859e
%install
16859e
%make_install DOCDIR=%{_docdir} MANDIR=%{_mandir} BINDIR=%{_bindir} DATADIR=%{_datadir} VERSION=%{version}
16859e
%make_install -C redhat UNITDIR=%{_unitdir}
16859e
16859e
%files
16859e
%{_bindir}/%{name}
16859e
%{_bindir}/throttlectl
16859e
%{_unitdir}/%{name}.service
16859e
%config(noreplace) %{_sysconfdir}/sysconfig/stalld
16859e
%doc %{_docdir}/README.md
16859e
%doc %{_mandir}/man8/stalld.8*
16859e
%license gpl-2.0.txt
16859e
16859e
%post
16859e
%systemd_post %{name}.service
16859e
16859e
%preun
16859e
%systemd_preun %{name}.service
16859e
16859e
%postun
16859e
%systemd_postun_with_restart %{name}.service
16859e
16859e
%changelog
a7866d
* Mon Nov 15 2021 Fernando Pacheco <fpacheco@redhat.com> - 1.15-1
a7866d
- stalld: Fix incorrect open() return value checks
a7866d
- stalld: Pass errno to strerror() on sig*set() failures
a7866d
- throttling: Always null terminate sched_rt_runtime_us output
a7866d
- stalld: Remove unreachable statement in detect_task_format()
a7866d
- tests: Fix uninitialized value action.sa_mask
a7866d
- utils: Bail if malloc() returns null in parse_cpu_list()
a7866d
- stalld: Use correct format specifier for long types
a7866d
  Resolves: rhbz#1990057, rhbz#1996799, rhbz#1996825
a7866d
f92baf
* Mon Jul 19 2021 Fernando Pacheco <fpacheco@redhat.com> - 1.14.1-1
f92baf
- stalld: Coding style cleanup
f92baf
- stalld: spaces in place of <TAB>
f92baf
- throttling: Use RT_RUNTIME_PATH in rt_throttling_is_off()
f92baf
- throttling: Check open() on turn_off_rt_throttling
f92baf
- throttling: Adjust variables in restore_rt_throttling()
f92baf
- stalld.c: utils.c: Remove complex assignments from variable declarations
f92baf
- stalld.h: Define MAX_PATH/DIR_PATH/FILE_NAME and use them
f92baf
- stalld: Adjust variables in parse_old_task_format()
f92baf
- utils.c: Use MAX_PATH for pidfile
f92baf
- stalld.c: Remove variable declaration from the middle of  the function
f92baf
- stalld: Respect -l option in single threaded mode (1983100)
f92baf
- utils: s/try_to_open_file/check_file_exists/
f92baf
- utils: use check_file_exists in setup_hr_tick()
f92baf
- utils: Check for the new sched_features path
f92baf
f92baf
* Fri Jul 02 2021 Fernando Pacheco <fpacheco@redhat.com> - 1.13-1
f92baf
- stalld: Fix log message on boost_cpu_starving_vector()
f92baf
- stalld: Add the overload control to the single-threaded mode
f92baf
- stalld: Add the adaptive mode option
f92baf
- stalld: Use the last mode set in the cmdline
f92baf
- stalld: Fallback to the adaptive mode if force_fifo is selected
f92baf
- stalld: Make single-threaded mode the default one (1920041)
f92baf
- stalld.service: Always restart stalld on exit
f92baf
- utils.c: Fail if user is not root
f92baf
- utils.c: Make the path to sched_debug path dynamic (1977663)
f92baf
f92baf
* Tue Jun 29 2021 Fernando Pacheco <fpacheco@redhat.com> - 1.12-1
f92baf
- stalld.8: fix diff cruft left in manpage source
f92baf
- stalld.c: clean up handling of nr_running
f92baf
- stalld.c: remove duplicate parameter to fill_waiting_task() (1934582)
f92baf
- stalld.service: Run stalld as sched_fifo via systemd
f92baf
- stalld: Add error handling in get_cpu_idle_time() (1966259)
f92baf
- packaging: clean up Makefiles and rpm specfile (1972806)
f92baf
- stalld: Always print current function for info messages
f92baf
- stalld: Always print current function for warn messages
f92baf
- stalld: Always print current function for die messages
f92baf
- utils: change PATHMAX to 4096 (1934581)
f92baf
f92baf
* Thu May 13 2021 Clark Williams <williams@redhat.com> - 1.11-1
f92baf
- redhat/stalld.spec: pick up gating test version for changelog
f92baf
- utils.c: set daemon umask to restrict global write/execute (1934586)
f92baf
- hardening fixes from coverity scan (1934590)
f92baf
f92baf
* Tue Apr 27 2021 Clark Williams <williams@redhat.com> - 1.10-1
f92baf
- utils: Fix bounds check on cpu and end_cpu variables
f92baf
- stalld: Support denylisting of tasks in stalld
f92baf
- src/utils: use right argument for warning printf
f92baf
f92baf
* Wed Feb 17 2021 Clark Williams <williams@redhat.com> - 1.9-2
f92baf
- update to pick up latest gating test
f92baf
f92baf
* Wed Feb 17 2021 Clark Williams <williams@redhat.com> - 1.9-1
f92baf
- Set starvation threshold default to 30 seconds
f92baf
- rework read buffer allocation to properly find page size
f92baf
- Add the -g/--granularity option
f92baf
- Change the default granularity to five seconds
f92baf
- Implement idle detection
f92baf
- Implement the single-threaded mode
f92baf
- Add HRTICK_DL support
f92baf
f92baf
* Fri Feb  5 2021 Clark Williams <williams@redhat.com> - 1.8-1
f92baf
- Fix Readiness Protocol Mismatch with systemd
f92baf
- test01:  update to use buildin atomic operations
f92baf
- test01: add throttling check
f92baf
f92baf
* Tue Feb  2 2021 Clark Williams <williams@redhat.com> - 1.7-1
f92baf
- rework detect_task_format and buffer_size logic
f92baf
- make CFLAGS for local compile match rpmbuild CFLAGS
f92baf
16859e
* Tue Jan 26 2021 Clark Williams <williams@redhat.com> - 1.6-1
16859e
- add systemd handling of RT Throttling
16859e
16859e
* Wed Jan 20 2021 Clark Williams <williams@redhat.com> - 1.5-1
16859e
- fix signal handler to catch SIGTERM
16859e
16859e
* Fri Dec 11 2020 Clark Williams <williams@redhat.com> - 1.4-1
16859e
- stalld: Set rt_runtime to -1 before trying the SCHED_DEADLINE
16859e
- Fix incorrect recursion of specfile version field
16859e
16859e
* Fri Nov 20 2020 Clark Williams <williams@redhat.com> - 1.3-1
16859e
- Readme: Add information about repositories
16859e
- Add version management and version option
16859e
- create doc and scripts directory and add info on releases
16859e
16859e
* Mon Nov  2 2020 Clark Williams <williams@redhat.com> - 1.2-1
16859e
- utils.c: added info() functions
16859e
- detect and correctly parse old-style /proc/sched_debug
16859e
- src/stalld: Fix an retval check while reading sched_debug
16859e
- src/throttling: Fix a compilation warning
16859e
- ensure we only count task lines in old-format sched_debug info
16859e
- Add comments, clean up trailing whitespace
16859e
- src/utils: Fix runtime parameters check
16859e
- stalld: Do not take actions if log_only is set
16859e
- remove warning from parse_old_task_format
16859e
16859e
* Tue Oct 27 2020 Clark Williams <williams@redhat.com> - 1.1-1
16859e
- Fix an option in README.md; consistency in user facing docs.
16859e
- Makefile: add 'static' target to link stalld statically
16859e
- gitignore: ignore object files and the stalld executable
16859e
- use FIFO for boosting (v3)
16859e
- stalld.c: fix sched_debug parsing and modify waiting task parsing
16859e
- redhat:  update release for features and bugfix
16859e
- stalld: Do not die if sched_debug returns an invalid value
16859e
- src/stalld: Do not die if the comm is too large
16859e
- src/stalld: Do not die if cannot write a message to the log
16859e
- src/stalld: Do not die if the main runs while a thread is monitoring the CPU
16859e
- implement RT throttling management and refactor source files
16859e
- more refactoring
16859e
- src/stalld: Reuse already read nr_running nr_rt_running
16859e
- src/stalld: Gracefully handle CPUs not found on sched_debug
16859e
- src/stalld: Use dynamically allocated memory to read sched_debug
16859e
- src/utils: Die with a divizion by zero if verbose
16859e
- src/stalld: Add config_buffer_size variable
16859e
- src/stalld: Increase the sched_debug read buffer if it gets too small
16859e
- src/stalld: Fix an retval check while reading sched_debug
16859e
- src/throttling: Fix a compilation warning
16859e
16859e
* Sun Oct  4 2020 Clark Williams <williams@redhat.com> - 1.0-4
16859e
- Fix an option in README.md; consistency in user facing docs.
16859e
- gitignore: ignore object files and the stalld executable
16859e
- Makefile: add 'static' target to link stalld statically
16859e
- use FIFO for boosting (v3)
16859e
- stalld: update usage message to include --force_fifo/-F option
16859e
- stalld.c: fix sched_debug parsing and modify waiting task parsing
16859e
16859e
* Tue Sep  1 2020 Clark Williams <williams@redhat.com> - 1.0-3
16859e
- Place BuildRequires on individual lines
16859e
- Fix changelog notations
16859e
- Modify build command to pass in CFLAGS and LDFLAGS
16859e
- fix compiler warnings in stalld.c
16859e
16859e
* Mon Aug 31 2020 Clark Williams <williams@redhat.com> - 1.0-2
16859e
- use _docdir macro for README.md
16859e
- use _mandir macro for stalld.8 manpage
16859e
- use tabs for spacing
16859e
- added push Makefile target to copy latest to upstream URL
16859e
16859e
* Tue Aug 25 2020 Clark Williams <williams@redhat.com> - 1.0-1
16859e
- rename project to stalld
16859e
- set version to 1.0
16859e
- clean up rpmlint complaints
16859e
16859e
* Fri Aug 21 2020 Clark Williams <williams@redhat.com> - 0.2-1
16859e
- add pidfile logic
16859e
16859e
* Thu Aug 20 2020 Clark Williams <williams@redhat.com> - 0.1-1
16859e
- Added systemd service to redhat subdirectory
16859e
- added make and rpm logic for systemd files
16859e
16859e
* Wed Aug 19 2020 Clark Williams <williams@redhat.com> - 0.0-1
16859e
- initial version of specfile
16859e
- Makefile mods for RPM builds
16859e
- added systemd service and config files