Blame SPECS/stalld.spec

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