2023-12-05 11:34:06 +08:00
|
|
|
|
Name: powerapi
|
2024-11-18 21:13:05 +08:00
|
|
|
|
Version: 1.1.0
|
2024-11-26 19:55:54 +08:00
|
|
|
|
Release: 11
|
2023-12-05 11:34:06 +08:00
|
|
|
|
Summary: The ability to support openEuler power consumption control.
|
|
|
|
|
|
|
|
|
|
|
|
License: MulanPSL-2.0
|
|
|
|
|
|
URL: https://gitee.com/openeuler/powerapi/
|
|
|
|
|
|
Source0: %{name}-%{version}.tar.gz
|
|
|
|
|
|
|
|
|
|
|
|
BuildRequires: gcc,cmake,zip,unzip
|
2024-11-18 21:13:05 +08:00
|
|
|
|
Requires: tar,ipmitool,psmisc,systemd,perf
|
2023-12-05 11:34:06 +08:00
|
|
|
|
|
|
|
|
|
|
%description
|
|
|
|
|
|
Including a power API SO and the Power API Service.
|
|
|
|
|
|
|
|
|
|
|
|
%package -n powerapi-devel
|
|
|
|
|
|
Summary: The ability to support openEuler power consumption control.
|
|
|
|
|
|
BuildRequires: gcc,cmake,zip,unzip
|
2024-11-18 21:13:05 +08:00
|
|
|
|
Requires: tar,ipmitool,psmisc,systemd,perf,powerapi
|
2023-12-05 11:34:06 +08:00
|
|
|
|
|
|
|
|
|
|
%description -n powerapi-devel
|
|
|
|
|
|
Contains the client and server components and API header files for powerapi integration development.
|
|
|
|
|
|
|
|
|
|
|
|
%prep
|
2023-12-27 16:22:04 +08:00
|
|
|
|
%autosetup -p1
|
2023-12-05 11:34:06 +08:00
|
|
|
|
|
|
|
|
|
|
%build
|
|
|
|
|
|
sh build.sh release
|
|
|
|
|
|
|
|
|
|
|
|
%install
|
|
|
|
|
|
install -d %{buildroot}/%{_sysconfdir}/sysconfig/pwrapis
|
|
|
|
|
|
cp release/pwrapis/conf/pwrapis_config.ini %{buildroot}/%{_sysconfdir}/sysconfig/pwrapis
|
2023-12-15 15:33:47 +08:00
|
|
|
|
install -d %{buildroot}/%{_sbindir}
|
|
|
|
|
|
cp release/pwrapis/pwrapis %{buildroot}/%{_sbindir}
|
|
|
|
|
|
install -d %{buildroot}/%{_sysconfdir}/systemd/system
|
|
|
|
|
|
cp pwrapis/pwrapis.service %{buildroot}/%{_sysconfdir}/systemd/system
|
2023-12-05 11:34:06 +08:00
|
|
|
|
install -d %{buildroot}/%{_libdir}
|
|
|
|
|
|
cp release/pwrapic/lib/libpwrapi.so %{buildroot}/%{_libdir}
|
|
|
|
|
|
install -d %{buildroot}/%{_includedir}/pwrapic
|
2023-12-15 15:33:47 +08:00
|
|
|
|
cp -r release/pwrapic/inc/* %{buildroot}/%{_includedir}/pwrapic
|
|
|
|
|
|
|
|
|
|
|
|
%post
|
|
|
|
|
|
systemctl start pwrapis
|
|
|
|
|
|
|
|
|
|
|
|
%preun
|
|
|
|
|
|
systemctl stop pwrapis
|
|
|
|
|
|
|
2023-12-05 11:34:06 +08:00
|
|
|
|
%files
|
2023-12-15 15:33:47 +08:00
|
|
|
|
%{_sbindir}/pwrapis
|
2023-12-05 11:34:06 +08:00
|
|
|
|
%{_libdir}/libpwrapi.so
|
|
|
|
|
|
%dir %{_sysconfdir}/sysconfig/pwrapis
|
|
|
|
|
|
%{_sysconfdir}/sysconfig/pwrapis/*
|
2023-12-15 15:33:47 +08:00
|
|
|
|
%{_sysconfdir}/systemd/system/pwrapis.service
|
2023-12-05 11:34:06 +08:00
|
|
|
|
|
|
|
|
|
|
%files -n powerapi-devel
|
2023-12-15 15:33:47 +08:00
|
|
|
|
%{_sbindir}/pwrapis
|
2023-12-05 11:34:06 +08:00
|
|
|
|
%{_libdir}/libpwrapi.so
|
|
|
|
|
|
%dir %{_sysconfdir}/sysconfig/pwrapis
|
|
|
|
|
|
%{_sysconfdir}/sysconfig/pwrapis/*
|
|
|
|
|
|
%dir %{_includedir}/pwrapic
|
|
|
|
|
|
%{_includedir}/pwrapic/*
|
|
|
|
|
|
|
|
|
|
|
|
%changelog
|
2024-11-26 19:55:54 +08:00
|
|
|
|
* Tue Nov 26 2024 heppen <hepeng68@huawei.com> - 1.1.0-11
|
|
|
|
|
|
- Bug fix: wrong log print.
|
|
|
|
|
|
|
2024-11-18 21:13:05 +08:00
|
|
|
|
* Mon Nov 18 2024 jinye <jinye10@huawei.com> - 1.1.0-10
|
2024-11-26 19:55:54 +08:00
|
|
|
|
- Bug fix: Stop eagle cause process block.
|
|
|
|
|
|
- Add some gtest code.
|
2024-11-18 21:13:05 +08:00
|
|
|
|
|
|
|
|
|
|
* 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.
|
2024-04-03 14:55:56 +08:00
|
|
|
|
|
|
|
|
|
|
* Wed Apr 3 2024 heppen <hepeng68@huawei.com> - 1.0.1-4
|
|
|
|
|
|
- Add the dependency on ipmitool.
|
|
|
|
|
|
- Fix bug: Coredump when CPU cores number exceed 248 or numa nodes exceed 16.
|
|
|
|
|
|
- Fix some memory bug.
|
|
|
|
|
|
|
2024-03-09 12:25:26 +08:00
|
|
|
|
* Sat Mar 9 2024 queyanwen <queyanwen@huawei.com> - 1.0.1-3
|
|
|
|
|
|
- Add the dependency on tar that is omitted in the earlier version.
|
|
|
|
|
|
|
2023-12-27 16:22:04 +08:00
|
|
|
|
* Wed Dec 27 2023 xuchongyu <xuchongyu@huawei.com> - 1.0.1-2
|
|
|
|
|
|
- Solve the problem that the client is actively disconnected and the server is incorrect in clearing resources
|
|
|
|
|
|
|
2023-12-23 14:49:12 +08:00
|
|
|
|
* Sat Dec 23 2023 queyanwen <queyanwen@huawei.com> - 1.0.1-1
|
|
|
|
|
|
- Change the version number for the first releasing
|
2023-12-22 23:46:40 +08:00
|
|
|
|
|
|
|
|
|
|
* Fri Dec 22 2023 queyanwen <queyanwen@huawei.com> - 1.0.0-9
|
|
|
|
|
|
- Solve the problem that the client will coredump if the user is not in the white list
|
|
|
|
|
|
|
2023-12-22 17:21:02 +08:00
|
|
|
|
* Fri Dec 22 2023 xuchongyu <xuchongyu@huawei.com> - 1.0.0-8
|
|
|
|
|
|
- Solve the problem that the automatic generation permission of the sockfile path on the server is insufficient
|
|
|
|
|
|
- And ordinary users cannot connect
|
|
|
|
|
|
|
2023-12-21 16:03:40 +08:00
|
|
|
|
* Thu Dec 21 2023 xuchongyu <xuchongyu@huawei.com> - 1.0.0-7
|
|
|
|
|
|
- Solve the problem that the illegal frequency range of the PWR_CPU_SetFreq interface is inconsistent with the illegal governor error code
|
|
|
|
|
|
- And the error code returned by the interface with the set frequency range is inappropriate
|
|
|
|
|
|
|
2023-12-19 11:23:25 +08:00
|
|
|
|
* Tue Dec 19 2023 xuchongyu <xuchongyu@huawei.com> - 1.0.0-6
|
|
|
|
|
|
- Automatically create the sockfile directory if it does not exist
|
|
|
|
|
|
|
|
|
|
|
|
* Mon Dec 18 2023 queyanwen <queyanwen@huawei.com> - 1.0.0-5
|
|
|
|
|
|
- Solve the coredump problem during CI compilation
|
|
|
|
|
|
- Solve the garbled characters caused by uninitialized string variables
|
|
|
|
|
|
|
|
|
|
|
|
* Mon Dec 18 2023 queyanwen <queyanwen@huawei.com> - 1.0.0-4
|
|
|
|
|
|
- Modify powerapi.spec to support the debug package
|
|
|
|
|
|
|
|
|
|
|
|
* Mon Dec 18 2023 xuchongyu <xuchongyu@huawei.com> - 1.0.0-3
|
2023-12-18 17:22:12 +08:00
|
|
|
|
- update souce code:retain debug compilation mode
|
|
|
|
|
|
|
2023-12-15 15:33:47 +08:00
|
|
|
|
* Fri Dec 15 2023 xuchongyu <xuchongyu@huawei.com> - 1.0.0-2
|
|
|
|
|
|
- add pwrapis.service
|
|
|
|
|
|
|
2023-12-05 11:34:06 +08:00
|
|
|
|
* Tue Dec 5 2023 xuchongyu <xuchongyu@huawei.com> - 1.0.0-1
|
|
|
|
|
|
- init powerapi
|