Name: rasdaemon Version: 0.6.6 Release: 10 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 Source0: %{name}-%{version}.tar.gz 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 Patch1: bugfix-ras-events-memory-leak.patch Patch2: bugfix-rasdaemon-wait-for-file-access.patch Patch3: bugfix-fix-fd-check.patch Patch4: bugfix-fix-disk-error-log-storm.patch Patch5: backport-rasdaemon-Fix-error-print.patch Patch6: backport-0001-rasdaemon-delete-the-duplicate-code-about-the-defini.patch Patch7: backport-0002-rasdaemon-delete-the-code-of-non-standard-error-deco.patch Patch8: backport-0003-rasdaemon-add-support-for-hisilicon-common-section-d.patch Patch9: backport-0001-rasdaemon-Modify-non-standard-error-decoding-interfa.patch Patch10: 0001-rasdaemon-Fix-the-issue-of-sprintf-data-type-mismatc.patch Patch11: 0002-rasdaemon-Fix-the-issue-of-command-option-r-for-hip0.patch Patch12: 0003-rasdaemon-Fix-some-print-format-issues-for-hisi-comm.patch Patch13: 0004-rasdaemon-Add-some-modules-supported-by-hisi-common-.patch Patch14: 0006-add-cpu-online-fault-isolation.patch Patch15: 0007-add-trace-print-and-add-sqlite-store.patch Patch16: 0008-modify-cpu-parse-for-adapting-to-new-bios-version.patch Patch17: bugfix-modify-the-way-counting-cpu-logical-index.patch Patch18: bugfix-fix-where-local-variables-are-not-initialized.patch Patch19: backport-ras-mc-ctl-PCIe-AER-display-PCIe-dev-name.patch Patch20: backport-Fix-ras-mc-ctl-script.patch Patch21: backport-traceevent-Add-proper-KBUFFER_TYPE_TIME_STAMP-handling.patch %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 %autosetup -n %{name}-%{version} -p1 %build autoscan aclocal autoconf autoheader libtoolize --automake --copy --debug --force automake --add-missing %ifarch %{arm} aarch64 %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 %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 %doc ChangeLog README TODO %license AUTHORS COPYING %{_sbindir}/rasdaemon %{_sbindir}/ras-mc-ctl %{_mandir}/*/* %{_unitdir}/*.service %{_sharedstatedir}/rasdaemon %{_sysconfdir}/ras/dimm_labels.d %config(noreplace) %{_sysconfdir}/sysconfig/%{name} %post /usr/bin/systemctl enable rasdaemon.service >/dev/null 2>&1 || : %changelog * Sat Jun 17 2023 yanglongkang - 0.6.6-10 - Type:bugfix - ID:NA - SUG:NA - DESC:backport libtraceevent patch to adapt to kernel ftrace ring buffer change * Tue Mar 21 2023 shixuantong - 0.6.6-9 - Type:bugfix - ID:NA - SUG:NA - DESC:Fix ras-mc-ctl script * Wed Dec 15 2021 luoshengwei - 0.6.6-8 - Type:bugfix - ID:NA - SUG:NA - DESC: Add initialization to some local variables when they are cleaned - or defined. * Wed Dec 1 2021 luoshengwei - 0.6.6-7 - Type:bugfix - ID:NA - SUG:NA - DESC: Since the cpu logical index has been counted in kernel, remove - related code in ras. * Wed Oct 27 2021 luoshengwei - 0.6.6-6 - Type:feature - ID:NA - SUG:NA - DESC: Sync three patches, add cpu online fault isolation. * Wed Oct 20 2021 tanxiaofei - 0.6.6-5 - Type:Bugfix - ID:NA - SUG:NA - DESC: Backport one patch, and some little fixes and add some modules support for kunpeng series: 1. Modify non-standard error decoding interface using linked list 2. Fix the issue of sprintf data type mismatch in uuid_le() 3. Fix the issue of command option -r for hip08 4. Fix some print format issues for hisi common error section 5. Add some modules supported by hisi common error section * Sat July 29 2021 tanxiaofei - 0.6.6-4 - 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. * Sat May 15 2021 xujing<17826839720@163.com> - 0.6.6-3 - Type:bugfix - ID:NA - SUG:NA - DESC:fix error print in handle_ras_events * Sat May 15 2021 xujing<17826839720@163.com> - 0.6.6-2 - Type:bugfix - ID:NA - SUG:NA - DESC:fix disk error log storm * Fri Jul 24 2020 openEuler Buildteam - 0.6.6-1 - Update software to v0.6.6 * Tue Feb 25 2020 lvying - 0.6.3-2 - Type:bugfix - ID:NA - SUG:NA - DESC:fix file descriptor leak in ras-report.c:setup_report_socket() * Wed Sep 18 2019 openEuler Buildteam - 0.6.3-1 - Package init