2019-09-30 11:16:11 -04:00
|
|
|
Name: rasdaemon
|
2023-01-19 11:39:20 +08:00
|
|
|
Version: 0.6.8
|
2023-06-17 16:06:56 +08:00
|
|
|
Release: 5
|
2019-09-30 11:16:11 -04:00
|
|
|
License: GPLv2
|
|
|
|
|
Summary: Utility to get Platform Reliability, Availability and Serviceability (RAS) reports via the Kernel tracing events
|
|
|
|
|
URL: https://github.com/mchehab/rasdaemon.git
|
2020-09-25 01:13:15 -07:00
|
|
|
Source0: https://github.com/mchehab/rasdaemon/archive/v%{version}.tar.gz#/%{name}-%{version}.tar.gz
|
2019-09-30 11:16:11 -04:00
|
|
|
|
|
|
|
|
ExcludeArch: s390 s390x
|
|
|
|
|
BuildRequires: gcc, gettext-devel, perl-generators, sqlite-devel, systemd, git, libtool
|
|
|
|
|
Provides: bundled(kernel-event-lib)
|
|
|
|
|
Requires: hwdata
|
|
|
|
|
Requires: perl-DBD-SQLite
|
|
|
|
|
%ifarch %{ix86} x86_64
|
|
|
|
|
Requires: dmidecode
|
|
|
|
|
%endif
|
|
|
|
|
|
|
|
|
|
Requires(post): systemd
|
|
|
|
|
Requires(preun): systemd
|
|
|
|
|
Requires(postun): systemd
|
|
|
|
|
|
2023-03-24 09:47:09 +08:00
|
|
|
Patch6000: backport-rasdaemon-ras-memory-failure-handler-handle-localtim.patch
|
|
|
|
|
Patch6001: backport-rasdaemon-ras-report-fix-possible-but-unlikely-file-.patch
|
2023-06-17 16:06:56 +08:00
|
|
|
Patch6002: backport-traceevent-Add-proper-KBUFFER_TYPE_TIME_STAMP-handling.patch
|
2023-03-24 09:47:09 +08:00
|
|
|
|
2023-01-19 11:39:20 +08:00
|
|
|
Patch9000: bugfix-rasdaemon-wait-for-file-access.patch
|
|
|
|
|
Patch9001: bugfix-fix-fd-check.patch
|
|
|
|
|
Patch9002: bugfix-fix-disk-error-log-storm.patch
|
|
|
|
|
Patch9003: 0001-rasdaemon-Support-cpu-fault-isolation-for-corrected-.patch
|
|
|
|
|
Patch9004: 0002-rasdaemon-Support-cpu-fault-isolation-for-recoverabl.patch
|
|
|
|
|
Patch9005: 0003-rasdaemon-Modify-recording-Hisilicon-common-error-da.patch
|
|
|
|
|
Patch9006: 0004-rasdaemon-ras-mc-ctl-Modify-error-statistics-for-HiS.patch
|
|
|
|
|
Patch9007: 0005-rasdaemon-ras-mc-ctl-Reformat-error-info-of-the-HiSi.patch
|
|
|
|
|
Patch9008: 0006-rasdaemon-ras-mc-ctl-Add-printing-usage-if-necessary.patch
|
|
|
|
|
Patch9009: 0007-rasdaemon-ras-mc-ctl-Add-support-to-display-the-HiSi.patch
|
|
|
|
|
Patch9010: 0008-rasdaemon-ras-mc-ctl-Relocate-reading-and-display-Ku.patch
|
|
|
|
|
Patch9011: 0009-rasdaemon-ras-mc-ctl-Updated-HiSilicon-platform-name.patch
|
|
|
|
|
Patch9012: 0010-rasdaemon-Fix-for-a-memory-out-of-bounds-issue-and-o.patch
|
|
|
|
|
Patch9013: 0001-rasdaemon-use-standard-length-PATH_MAX-for-path-name.patch
|
2023-04-04 10:24:15 +08:00
|
|
|
Patch9014: 0001-rasdaemon-Fix-for-regression-in-ras_mc_create_table-.patch
|
|
|
|
|
Patch9015: 0002-rasdaemon-Fix-poll-on-per_cpu-trace_pipe_raw-blocks-.patch
|
2023-06-01 16:23:35 +01:00
|
|
|
Patch9016: 0001-rasdaemon-fix-return-value-type-issue-of-read-write-.patch
|
|
|
|
|
Patch9017: 0002-rasdaemon-fix-issue-of-signed-and-unsigned-integer-c.patch
|
|
|
|
|
Patch9018: 0003-rasdaemon-Add-support-for-creating-the-vendor-error-.patch
|
|
|
|
|
Patch9019: 0004-rasdaemon-Add-four-modules-supported-by-HiSilicon-co.patch
|
2019-09-30 11:16:11 -04:00
|
|
|
|
|
|
|
|
%description
|
|
|
|
|
The rasdaemon program is a daemon which monitors the platform
|
|
|
|
|
Reliablity, Availability and Serviceability (RAS) reports from the
|
|
|
|
|
Linux kernel trace events. These trace events are logged in
|
|
|
|
|
/sys/kernel/debug/tracing, reporting them via syslog/journald.
|
|
|
|
|
|
|
|
|
|
%prep
|
2020-07-24 16:39:38 +08:00
|
|
|
%autosetup -n %{name}-%{version} -p1
|
2019-09-30 11:16:11 -04:00
|
|
|
|
|
|
|
|
%build
|
|
|
|
|
autoscan
|
|
|
|
|
aclocal
|
|
|
|
|
autoconf
|
|
|
|
|
autoheader
|
|
|
|
|
libtoolize --automake --copy --debug --force
|
|
|
|
|
automake --add-missing
|
|
|
|
|
%ifarch %{arm} aarch64
|
2022-05-25 17:15:14 +01:00
|
|
|
%configure --enable-mce --enable-aer --enable-sqlite3 --enable-extlog --enable-abrt-report --enable-devlink --enable-diskerror --enable-non-standard --enable-hisi-ns-decode --enable-arm --enable-memory-failure --enable-memory-ce-pfa --enable-cpu-fault-isolation
|
2019-09-30 11:16:11 -04:00
|
|
|
%else
|
|
|
|
|
%configure --enable-mce --enable-aer --enable-sqlite3 --enable-extlog --enable-abrt-report --enable-devlink --enable-diskerror
|
|
|
|
|
%endif
|
|
|
|
|
make %{?_smp_mflags}
|
|
|
|
|
|
|
|
|
|
%install
|
|
|
|
|
make install DESTDIR=%{buildroot}
|
|
|
|
|
install -D -p -m 0644 misc/rasdaemon.env %{buildroot}%{_sysconfdir}/sysconfig/%{name}
|
|
|
|
|
install -D -p -m 0644 misc/rasdaemon.service %{buildroot}/%{_unitdir}/rasdaemon.service
|
|
|
|
|
install -D -p -m 0644 misc/ras-mc-ctl.service %{buildroot}%{_unitdir}/ras-mc-ctl.service
|
|
|
|
|
rm INSTALL %{buildroot}/usr/include/*.h
|
|
|
|
|
|
|
|
|
|
%files
|
2019-11-06 19:51:08 +08:00
|
|
|
%doc ChangeLog README TODO
|
|
|
|
|
%license AUTHORS COPYING
|
2019-09-30 11:16:11 -04:00
|
|
|
%{_sbindir}/rasdaemon
|
|
|
|
|
%{_sbindir}/ras-mc-ctl
|
|
|
|
|
%{_mandir}/*/*
|
|
|
|
|
%{_unitdir}/*.service
|
|
|
|
|
%{_sysconfdir}/ras/dimm_labels.d
|
|
|
|
|
%config(noreplace) %{_sysconfdir}/sysconfig/%{name}
|
|
|
|
|
|
|
|
|
|
%post
|
|
|
|
|
/usr/bin/systemctl enable rasdaemon.service >/dev/null 2>&1 || :
|
|
|
|
|
|
|
|
|
|
%changelog
|
2023-06-17 16:06:56 +08:00
|
|
|
* Sat Jun 17 2023 yanglongkang <yanglongkang@h-partners.com> - 0.6.8-5
|
|
|
|
|
- Type:bugfix
|
|
|
|
|
- ID:NA
|
|
|
|
|
- SUG:NA
|
|
|
|
|
- DESC:backport libtraceevent patch to adapt to kernel ftrace ring buffer change
|
|
|
|
|
|
2023-06-01 16:23:35 +01:00
|
|
|
* Fri Jun 2 2023 Shiju Jose<shiju.jose@huawei.com> - 0.6.8-4
|
|
|
|
|
- Type:bugfix
|
|
|
|
|
- ID:NA
|
|
|
|
|
- SUG:NA
|
|
|
|
|
- DESC:
|
|
|
|
|
1. Fix return value type issue of read/write function from unistd.h.
|
|
|
|
|
2. Fix issue of signed and unsigned integer comparison.
|
|
|
|
|
3. Remove redundant header file and do some cleaup.
|
|
|
|
|
4. Add support for create/open the vendor error tables at rasdaemon startup.
|
|
|
|
|
5. Make changes in the HiSilicon error handling code for the same.
|
|
|
|
|
6. Add four modules supported by HiSilicon common section
|
|
|
|
|
|
2023-04-04 10:24:15 +08:00
|
|
|
* Fri Mar 31 2023 huangfangrun <huangfangrun1@h-partners.com> - 0.6.8-3
|
|
|
|
|
- Type:bugfix
|
|
|
|
|
- ID:NA
|
|
|
|
|
- SUG:NA
|
|
|
|
|
- DESC:
|
|
|
|
|
1.Fix for regression in ras_mc_create_table() if some cpus are offline at the system start.
|
|
|
|
|
2.Fix poll() on per_cpu trace_pipe_raw blocks indefinitely.
|
|
|
|
|
|
2023-03-24 09:47:09 +08:00
|
|
|
* Fri Mar 24 2023 renhongxun <renhongxun@h-partners.com> - 0.6.8-2
|
|
|
|
|
- backport patches from upstream
|
|
|
|
|
|
2023-01-19 11:39:20 +08:00
|
|
|
* Thu Jan 19 2023 Lv Ying <lvying6@huawei.com> - 0.6.8-1
|
|
|
|
|
- backport bugfix patches from community:
|
|
|
|
|
1. Fix error print handle_ras_events.
|
|
|
|
|
|
2022-08-25 16:09:18 +08:00
|
|
|
* Thu Aug 25 2022 Xiaofei Tan <tanxiaofei@huawei.com> - 0.6.7-6
|
|
|
|
|
- Type:bugfix
|
|
|
|
|
- ID:NA
|
|
|
|
|
- SUG:NA
|
|
|
|
|
- DESC:
|
|
|
|
|
Add the following patch to fix startup core dumped issue.
|
|
|
|
|
0001-rasdaemon-use-standard-length-PATH_MAX-for-path-name.patch
|
|
|
|
|
|
2022-05-25 17:15:14 +01:00
|
|
|
* Mon May 23 2022 Shiju Jose<shiju.jose@huawei.com> - 0.6.7-5
|
|
|
|
|
- Type:feature
|
|
|
|
|
- ID:NA
|
|
|
|
|
- SUG:NA
|
|
|
|
|
- DESC:
|
|
|
|
|
Update with the latest patches for the
|
|
|
|
|
1. CPU online fault isolation for arm event.
|
|
|
|
|
2. Modify recording Hisilicon common error data in the rasdaemon
|
|
|
|
|
3. In the ras-mc-ctl,
|
|
|
|
|
3.1. Improve Hisilicon common error statistics.
|
|
|
|
|
3.2. Add support to display the HiSilicon vendor-errors for a specified module.
|
|
|
|
|
3.3. Add printing usage if necessary parameters are not passed for the HiSilicon vendor-errors options.
|
|
|
|
|
3.4. Reformat error info of the HiSilicon Kunpeng920.
|
|
|
|
|
3.5. Relocate reading and display Kunpeng920 errors to under Kunpeng9xx.
|
|
|
|
|
3.6. Updated the HiSilicon platform name as KunPeng9xx.
|
|
|
|
|
4. Fixed a memory out-of-bounds issue in the rasdaemon.
|
|
|
|
|
|
2022-03-28 16:19:44 +08:00
|
|
|
* Mon Mar 07 2022 Shiju Jose<shiju.jose@huawei.com> - 0.6.7-4
|
2021-12-09 15:20:46 +08:00
|
|
|
- Type:feature
|
|
|
|
|
- ID:NA
|
|
|
|
|
- SUG:NA
|
2022-03-28 16:19:44 +08:00
|
|
|
- DESC:
|
|
|
|
|
1. Modify recording Hisilicon common error data in the rasdaemon and
|
|
|
|
|
2. In the ras-mc-ctl,
|
|
|
|
|
2.1. Improve Hisilicon common error statistics.
|
|
|
|
|
2.2. Add support to display the HiSilicon vendor-errors for a specified module.
|
|
|
|
|
2.3. Add printing usage if necessary parameters are not passed for the HiSilicon vendor-errors options.
|
|
|
|
|
2.4. Reformat error info of the HiSilicon Kunpeng920.
|
|
|
|
|
2.5. Relocate reading and display Kunpeng920 errors to under Kunpeng9xx.
|
2021-12-09 15:20:46 +08:00
|
|
|
|
2022-03-28 16:19:44 +08:00
|
|
|
* Wed Mar 2 2022 tanxiaofei<tanxiaofei@huawei.com> - 0.6.7-3
|
|
|
|
|
- Type:bugfix
|
2021-12-03 11:26:06 +08:00
|
|
|
- ID:NA
|
|
|
|
|
- SUG:NA
|
2022-03-28 16:19:44 +08:00
|
|
|
- DESC:
|
|
|
|
|
1. Backport 4 patches from openEuler master branch.
|
|
|
|
|
1) Fix the issue of sprintf data type mismatch in uuid_le()
|
|
|
|
|
2) Fix the issue of command option -r for hip08
|
|
|
|
|
3) Fix some print format issues for hisi common error section
|
|
|
|
|
4) Add some modules supported by hisi common error section
|
|
|
|
|
2.Enable compilation of the feature memory fault prediction based on
|
|
|
|
|
corrected error.
|
|
|
|
|
3.Fix changelog date error of this spec file.
|
2021-12-03 11:26:06 +08:00
|
|
|
|
2022-03-28 16:19:44 +08:00
|
|
|
* Wed Feb 23 2022 luoshengwei<luoshengwei@huawei.com> - 0.6.7-2
|
2021-10-27 11:51:26 +08:00
|
|
|
- Type:feature
|
|
|
|
|
- ID:NA
|
|
|
|
|
- SUG:NA
|
2022-03-28 16:19:44 +08:00
|
|
|
- DESC: Add cpu online fault isolation for arm event.
|
2021-10-27 11:51:26 +08:00
|
|
|
|
2022-03-28 16:19:44 +08:00
|
|
|
* Wed Dec 8 2021 xujing <xujing99@huawei.com> - 0.6.7-1
|
|
|
|
|
- Update software to v0.6.7
|
2021-10-21 11:26:19 +08:00
|
|
|
|
2022-03-28 16:19:44 +08:00
|
|
|
* Thu Jul 29 2021 tanxiaofei<tanxiaofei@huawei.com> - 0.6.6-6
|
2021-07-30 14:29:14 +08:00
|
|
|
- Type:feature
|
|
|
|
|
- ID:NA
|
|
|
|
|
- SUG:NA
|
|
|
|
|
- DESC:Add support for hisilicon common section that some IIO devices may
|
|
|
|
|
- used in new firmware of Kunpeng920, and Kunpeng930 will also use it too.
|
|
|
|
|
|
2021-05-15 18:24:31 +08:00
|
|
|
* Sat May 15 2021 xujing<17826839720@163.com> - 0.6.6-5
|
|
|
|
|
- Type:bugfix
|
|
|
|
|
- ID:NA
|
|
|
|
|
- SUG:NA
|
|
|
|
|
- DESC:fix disk error log storm
|
|
|
|
|
|
2021-04-28 11:59:49 +08:00
|
|
|
* Wed Apr 28 2021 Lv Ying <lvying6@huawei.com> - 0.6.6-4
|
|
|
|
|
- backport bugfix patches from community:
|
|
|
|
|
1. Fix error print handle_ras_events.
|
|
|
|
|
|
2021-03-31 10:49:55 -07:00
|
|
|
* Wed Mar 31 2021 Lv Ying <lvying6@huawei.com> - 0.6.6-3
|
|
|
|
|
- backport bugfix patches from community:
|
|
|
|
|
1. ras-page-isolation: do_page_offline always considers page offline was successful
|
|
|
|
|
2. ras-page-isolation: page which is PAGE_OFFLINE_FAILED can be offlined again
|
|
|
|
|
|
2020-09-25 01:13:15 -07:00
|
|
|
* Fri Sep 25 2020 openEuler Buildteam <buildteam@openeuler.org> - 0.6.6-2
|
|
|
|
|
- Update software source URL
|
|
|
|
|
|
2020-07-24 16:39:38 +08:00
|
|
|
* Fri Jul 24 2020 openEuler Buildteam <buildteam@openeuler.org> - 0.6.6-1
|
|
|
|
|
- Update software to v0.6.6
|
|
|
|
|
|
2020-03-11 16:38:47 +08:00
|
|
|
* Tue Feb 25 2020 lvying<lvying6@huawei.com> - 0.6.3-2
|
|
|
|
|
- Type:bugfix
|
|
|
|
|
- ID:NA
|
|
|
|
|
- SUG:NA
|
|
|
|
|
- DESC:fix file descriptor leak in ras-report.c:setup_report_socket()
|
|
|
|
|
|
2019-09-30 11:16:11 -04:00
|
|
|
* Wed Sep 18 2019 openEuler Buildteam <buildteam@openeuler.org> - 0.6.3-1
|
|
|
|
|
- Package init
|