bug fix: Stop eagle cause main process block

This commit is contained in:
jimmy-jiang-junior 2024-11-18 21:13:05 +08:00 committed by jinye
parent 7a86d27f93
commit 1e9b5d622a
3 changed files with 43 additions and 11 deletions

Binary file not shown.

BIN
powerapi-1.1.0.tar.gz Normal file

Binary file not shown.

View File

@ -1,6 +1,6 @@
Name: powerapi Name: powerapi
Version: 1.0.1 Version: 1.1.0
Release: 4 Release: 10
Summary: The ability to support openEuler power consumption control. Summary: The ability to support openEuler power consumption control.
License: MulanPSL-2.0 License: MulanPSL-2.0
@ -8,7 +8,7 @@ URL: https://gitee.com/openeuler/powerapi/
Source0: %{name}-%{version}.tar.gz Source0: %{name}-%{version}.tar.gz
BuildRequires: gcc,cmake,zip,unzip BuildRequires: gcc,cmake,zip,unzip
Requires: tar,ipmitool Requires: tar,ipmitool,psmisc,systemd,perf
%description %description
Including a power API SO and the Power API Service. Including a power API SO and the Power API Service.
@ -16,7 +16,7 @@ Including a power API SO and the Power API Service.
%package -n powerapi-devel %package -n powerapi-devel
Summary: The ability to support openEuler power consumption control. Summary: The ability to support openEuler power consumption control.
BuildRequires: gcc,cmake,zip,unzip BuildRequires: gcc,cmake,zip,unzip
Requires: tar,ipmitool Requires: tar,ipmitool,psmisc,systemd,perf,powerapi
%description -n powerapi-devel %description -n powerapi-devel
Contains the client and server components and API header files for powerapi integration development. Contains the client and server components and API header files for powerapi integration development.
@ -45,12 +45,6 @@ systemctl start pwrapis
%preun %preun
systemctl stop pwrapis systemctl stop pwrapis
%post -n powerapi-devel
systemctl start pwrapis
%preun -n powerapi-devel
systemctl stop pwrapis
%files %files
%{_sbindir}/pwrapis %{_sbindir}/pwrapis
%{_libdir}/libpwrapi.so %{_libdir}/libpwrapi.so
@ -65,9 +59,47 @@ systemctl stop pwrapis
%{_sysconfdir}/sysconfig/pwrapis/* %{_sysconfdir}/sysconfig/pwrapis/*
%dir %{_includedir}/pwrapic %dir %{_includedir}/pwrapic
%{_includedir}/pwrapic/* %{_includedir}/pwrapic/*
%{_sysconfdir}/systemd/system/pwrapis.service
%changelog %changelog
* Mon Nov 18 2024 jinye <jinye10@huawei.com> - 1.1.0-10
-Bug fix: Stop eagle cause process block.
-Add some gtest code.
* Mon Jul 15 2024 heppen <hepeng68@huawei.com> - 1.1.0-9
- Bug fix: powerapi-devel start/stop service without pwrapis.service.
* Thu Jun 20 2024 heppen <hepeng68@huawei.com> - 1.1.0-8
- Bug fix: Delete the unnecessary comma in the configuration file
* Thu Jun 18 2024 heppen <hepeng68@huawei.com> - 1.1.0-7
- Bug fix: expand msg buffer, wrong code of check if buffer full.
* Wed Jun 12 2024 Zihao Xue <xuezihao@huawei.com> - 1.1.0-6
- Bug fix: heap buffer overflow caused by sending incomplete strings.
- Bug fix: too long strings into QueryProcs causes services broke down.
* Thu Jun 6 2024 heppen <hepeng68@huawei.com> - 1.1.0-5
- Bug fix: SIGPIPE cause powerapi server exit.
- Bug fix: pstree command is too slow to get all pid.
- Bug fix: set smart grid state failed.
- Bug fix: get watt attr and task list is not correct.
* Mon Jun 3 2024 heppen <hepeng68@huawei.com> - 1.1.0-4
- Bug fix: memcpy null pointer, array out of bounds, struct align.
- Bug fix: get watt state will failed at the first time.
- Bug fix: use process name to query pid but return all pids.
- Bug fix: mismatch fopen/pclose and popen/fclose, useless if statement.
* Wed May 29 2024 heppen <hepeng68@huawei.com> - 1.1.0-3
- Bug fix: fix build warning.
- Bug fix: export PWR_SYS_GetRtPowerInfo.
- Bug fix: data collection task intercept invalid task type.
* Sat May 25 2024 heppen <hepeng68@huawei.com> - 1.1.0-2
- Bug fix: Incorrect passing of memory address for process list.
* Fri May 17 2024 heppen <hepeng68@huawei.com> - 1.1.0-1
- Add some new APIs about proc/hbm/cpu.
* Wed Apr 3 2024 heppen <hepeng68@huawei.com> - 1.0.1-4 * Wed Apr 3 2024 heppen <hepeng68@huawei.com> - 1.0.1-4
- Add the dependency on ipmitool. - Add the dependency on ipmitool.