From 29dcccd35f73f62364fbeafa721de738862bf628e09657b4f3a97834ce5d0e7c Mon Sep 17 00:00:00 2001 From: OBS User unknown Date: Mon, 15 Jan 2007 23:24:56 +0000 Subject: [PATCH] OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/mcelog?expand=0&rev=1 --- .gitattributes | 23 +++++++++++ .gitignore | 1 + mcelog-0.7.tar.gz | 3 ++ mcelog-thermal | 42 +++++++++++++++++++ mcelog.changes | 66 +++++++++++++++++++++++++++++ mcelog.spec | 103 ++++++++++++++++++++++++++++++++++++++++++++++ ready | 0 7 files changed, 238 insertions(+) create mode 100644 .gitattributes create mode 100644 .gitignore create mode 100644 mcelog-0.7.tar.gz create mode 100644 mcelog-thermal create mode 100644 mcelog.changes create mode 100644 mcelog.spec create mode 100644 ready diff --git a/.gitattributes b/.gitattributes new file mode 100644 index 0000000..9b03811 --- /dev/null +++ b/.gitattributes @@ -0,0 +1,23 @@ +## Default LFS +*.7z filter=lfs diff=lfs merge=lfs -text +*.bsp filter=lfs diff=lfs merge=lfs -text +*.bz2 filter=lfs diff=lfs merge=lfs -text +*.gem filter=lfs diff=lfs merge=lfs -text +*.gz filter=lfs diff=lfs merge=lfs -text +*.jar filter=lfs diff=lfs merge=lfs -text +*.lz filter=lfs diff=lfs merge=lfs -text +*.lzma filter=lfs diff=lfs merge=lfs -text +*.obscpio filter=lfs diff=lfs merge=lfs -text +*.oxt filter=lfs diff=lfs merge=lfs -text +*.pdf filter=lfs diff=lfs merge=lfs -text +*.png filter=lfs diff=lfs merge=lfs -text +*.rpm filter=lfs diff=lfs merge=lfs -text +*.tbz filter=lfs diff=lfs merge=lfs -text +*.tbz2 filter=lfs diff=lfs merge=lfs -text +*.tgz filter=lfs diff=lfs merge=lfs -text +*.ttf filter=lfs diff=lfs merge=lfs -text +*.txz filter=lfs diff=lfs merge=lfs -text +*.whl filter=lfs diff=lfs merge=lfs -text +*.xz filter=lfs diff=lfs merge=lfs -text +*.zip filter=lfs diff=lfs merge=lfs -text +*.zst filter=lfs diff=lfs merge=lfs -text diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..57affb6 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +.osc diff --git a/mcelog-0.7.tar.gz b/mcelog-0.7.tar.gz new file mode 100644 index 0000000..565efa2 --- /dev/null +++ b/mcelog-0.7.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:8eb6072d6ad947f21f3c56a9d20b48d1d9490a32a2375ed786a717944234dc1b +size 13094 diff --git a/mcelog-thermal b/mcelog-thermal new file mode 100644 index 0000000..64061f3 --- /dev/null +++ b/mcelog-thermal @@ -0,0 +1,42 @@ +--- mcelog/p4.c~ 2005-02-09 12:20:20.000000000 +0100 ++++ mcelog/p4.c 2006-05-27 06:22:06.000000000 +0200 +@@ -24,6 +24,8 @@ + #include + #include "mcelog.h" + ++#define BANK_THERMAL 128 ++ + /* decode mce for P4/Xeon family */ + + static inline int test_prefix(int nr, __u32 value) +@@ -272,8 +274,21 @@ + Wprintf("\n"); + } + ++static void decode_thermal(struct mce *log) ++{ ++ if (log->status & 1) ++ Wprintf("Processor core is above trip temperature. Throttling enabled.\n"); ++ else ++ Wprintf("Processor core below trip temperature. Throttling disabled\n"); ++} ++ + void decode_p4_mc(struct mce *log) + { ++ if (log->bank == BANK_THERMAL) { ++ decode_thermal(log); ++ return; ++ } ++ + decode_mcg(log->mcgstatus); + decode_mci(log->status); + } +@@ -281,6 +296,8 @@ + char *p4_bank_name(int num) + { + static char bname[64]; ++ if (num == BANK_THERMAL) ++ return "THERMAL EVENT"; + sprintf(bname, "BANK %d", num); + return bname; + } diff --git a/mcelog.changes b/mcelog.changes new file mode 100644 index 0000000..235b984 --- /dev/null +++ b/mcelog.changes @@ -0,0 +1,66 @@ +------------------------------------------------------------------- +Mon May 29 16:23:12 CEST 2006 - ak@suse.de + +- decode intel thermal events too (#179327) + +------------------------------------------------------------------- +Fri May 5 19:00:23 CEST 2006 - ak@suse.de + +- Update to 0.7. This fixes + - Fix --dmi option (#166324) + - Incorporate old patches + +------------------------------------------------------------------- +Fri Mar 3 20:21:01 CET 2006 - ak@suse.de + +- Avoid cosmetic problem in --filter (#153347) + +------------------------------------------------------------------- +Wed Feb 8 14:58:50 CET 2006 - ak@suse.de + +- update to mcelog 0.6 + * Fixes bugs (#148869, #137985) + * Adds --dmi option to map addresses to DIMMs using SMBIOS + (default to off) + +------------------------------------------------------------------- +Wed Jan 25 21:45:03 CET 2006 - mls@suse.de + +- converted neededforbuild to BuildRequires + +------------------------------------------------------------------- +Mon Dec 19 10:42:35 CET 2005 - sf@suse.de + +- update to version 0.5 + * Clarify --ascii in the manpage + *Support for AMD K8 Revision F machine check DRAM error + thresholding + +------------------------------------------------------------------- +Fri Feb 11 10:39:53 CET 2005 - ak@suse.de + +- Use RPM_OPT_FLAGS +- Improve description again + +------------------------------------------------------------------- +Thu Feb 10 19:21:39 CET 2005 - ak@suse.de + +- mcelog-0.4: + * add support to decode AMD K8 (Opteron/Athlon64/AthlonFX) and + Intel P4 (Xeon and Pentium 4) events + * add --ascii option to decode machine check panic information +- Rewrite description in .spec file + +------------------------------------------------------------------- +Wed Jun 9 21:51:14 CEST 2004 - ak@suse.de + +- memlog-0.2: + * fix mcelog looping (#41863) + * Add GPL notices + +------------------------------------------------------------------- +Thu Mar 25 17:55:05 CET 2004 - sf@suse.de + +- initial version +- fixes #36898 + diff --git a/mcelog.spec b/mcelog.spec new file mode 100644 index 0000000..7912a3e --- /dev/null +++ b/mcelog.spec @@ -0,0 +1,103 @@ +# +# spec file for package mcelog (Version 0.7) +# +# Copyright (c) 2006 SUSE LINUX Products GmbH, Nuernberg, Germany. +# This file and all modifications and additions to the pristine +# package are under the same license as the package itself. +# +# Please submit bugfixes or comments via http://bugs.opensuse.org/ +# + +# norootforbuild + +Name: mcelog +License: GPL +Summary: Log Machine Check Events +Version: 0.7 +Release: 3 +Autoreqprov: on +Source: mcelog-%{version}.tar.gz +Patch0: mcelog-thermal +Group: System/Monitoring +BuildRoot: %{_tmppath}/%{name}-%{version}-build + +%description +mcelog retrieves machine check events from an x86-64 kernel in a cron +job, decodes them, and logs them to /var/log/mcelog. + +A machine check event is a hardware error detected by the CPU. + +It should run on any x86-64 system. + +In addition, it allows decoding machine check kernel panic messages. + + + +Authors: +-------- + Andi Kleen + +%prep +%setup +%patch0 -p1 + +%build +make CFLAGS="$RPM_OPT_FLAGS" + +%install +mkdir -p $RPM_BUILD_ROOT/usr/sbin/ +mkdir -p $RPM_BUILD_ROOT/etc/cron.hourly/ +mkdir -p $RPM_BUILD_ROOT/%{_mandir}/man8 +mkdir -p $RPM_BUILD_ROOT/etc/logrotate.d/ +cp mcelog $RPM_BUILD_ROOT/usr/sbin +cp mcelog.cron $RPM_BUILD_ROOT/etc/cron.hourly/mcelog +cp mcelog.8 $RPM_BUILD_ROOT/%{_mandir}/man8 +cp mcelog.logrotate $RPM_BUILD_ROOT/etc/logrotate.d/mcelog + +%clean +rm -rf $RPM_BUILD_ROOT + +%files +%defattr (-,root,root,755) +%{_mandir}/man8/* +/usr/sbin/mcelog +/etc/cron.hourly/mcelog +/etc/logrotate.d/mcelog + +%changelog -n mcelog +* Mon May 29 2006 - ak@suse.de +- decode intel thermal events too (#179327) +* Fri May 05 2006 - ak@suse.de +- Update to 0.7. This fixes +- Fix --dmi option (#166324) +- Incorporate old patches +* Fri Mar 03 2006 - ak@suse.de +- Avoid cosmetic problem in --filter (#153347) +* Wed Feb 08 2006 - ak@suse.de +- update to mcelog 0.6 + * Fixes bugs (#148869, #137985) + * Adds --dmi option to map addresses to DIMMs using SMBIOS + (default to off) +* Wed Jan 25 2006 - mls@suse.de +- converted neededforbuild to BuildRequires +* Mon Dec 19 2005 - sf@suse.de +- update to version 0.5 + * Clarify --ascii in the manpage + *Support for AMD K8 Revision F machine check DRAM error + thresholding +* Fri Feb 11 2005 - ak@suse.de +- Use RPM_OPT_FLAGS +- Improve description again +* Thu Feb 10 2005 - ak@suse.de +- mcelog-0.4: + * add support to decode AMD K8 (Opteron/Athlon64/AthlonFX) and + Intel P4 (Xeon and Pentium 4) events + * add --ascii option to decode machine check panic information +- Rewrite description in .spec file +* Wed Jun 09 2004 - ak@suse.de +- memlog-0.2: + * fix mcelog looping (#41863) + * Add GPL notices +* Thu Mar 25 2004 - sf@suse.de +- initial version +- fixes #36898 diff --git a/ready b/ready new file mode 100644 index 0000000..473a0f4