Accepting request 24435 from Base:System

Copy from Base:System/mcelog based on submit request 24435 from user msmeissn

OBS-URL: https://build.opensuse.org/request/show/24435
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/mcelog?expand=0&rev=6
This commit is contained in:
OBS User autobuild 2009-11-16 17:01:52 +00:00 committed by Git OBS Bridge
parent 2bf69e5261
commit 12cebb1f32
6 changed files with 14 additions and 1127 deletions

File diff suppressed because it is too large Load Diff

View File

@ -1,3 +0,0 @@
version https://git-lfs.github.com/spec/v1
oid sha256:8eb6072d6ad947f21f3c56a9d20b48d1d9490a32a2375ed786a717944234dc1b
size 13094

3
mcelog-0.9pre.tar.bz2 Normal file
View File

@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:bc931a0bf0eb221e3b01727f2dd59b0d39e94dbc30f5dd7134f78d61ea439986
size 567856

View File

@ -1,52 +0,0 @@
---
p4.c | 19 +++++++++++++++++++
1 file changed, 19 insertions(+)
Index: mcelog-0.7/p4.c
===================================================================
--- mcelog-0.7.orig/p4.c
+++ mcelog-0.7/p4.c
@@ -28,6 +28,8 @@
#include "nehalem.h"
#include "dunnington.h"
+#define BANK_THERMAL 128
+
/* decode mce for P4/Xeon and Core2 family */
static inline int test_prefix(int nr, __u32 value)
@@ -274,10 +276,25 @@ static void decode_mcg(__u64 mcgstatus)
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_intel_mc(struct mce *log, int cputype)
{
int cpu = log->cpu;
+ if (log->bank == BANK_THERMAL) {
+ decode_thermal(log);
+ return;
+ }
+
decode_mcg(log->mcgstatus);
decode_mci(log->status, cpu);
@@ -306,6 +323,8 @@ void decode_intel_mc(struct mce *log, in
char *intel_bank_name(int num)
{
static char bname[64];
+ if (num == BANK_THERMAL)
+ return "THERMAL EVENT";
sprintf(bname, "BANK %d", num);
return bname;
}

View File

@ -1,3 +1,10 @@
-------------------------------------------------------------------
Fri Oct 2 17:06:03 CEST 2009 - trenn@suse.de
- Update to latest git version (0.9pre)
Introduces mcelog damon mode, service file will follow in an
extra commit.
-------------------------------------------------------------------
Fri Jan 9 08:41:58 CET 2009 - olh@suse.de

View File

@ -1,5 +1,5 @@
#
# spec file for package mcelog (Version 0.7)
# spec file for package mcelog (Version 0.9pre)
#
# Copyright (c) 2009 SUSE LINUX Products GmbH, Nuernberg, Germany.
#
@ -21,13 +21,11 @@
Name: mcelog
License: GPL v2 or later
Summary: Log Machine Check Events
Version: 0.7
Release: 112
Version: 0.9pre
Release: 1
AutoReqProv: on
ExclusiveArch: x86_64
Source: mcelog-%{version}.tar.gz
Patch0: mcelog-0.7-newcpus-1.diff
Patch1: mcelog-thermal.diff
Source: mcelog-%{version}.tar.bz2
Group: System/Monitoring
BuildRoot: %{_tmppath}/%{name}-%{version}-build
@ -49,8 +47,6 @@ Authors:
%prep
%setup
%patch0 -p1
%patch1 -p1
%build
make CFLAGS="$RPM_OPT_FLAGS"
@ -76,45 +72,3 @@ rm -rf $RPM_BUILD_ROOT
/etc/logrotate.d/mcelog
%changelog
* Fri Jan 09 2009 olh@suse.de
- use ExclusiveArch as in /SRC/arch/
* Sat Sep 27 2008 trenn@suse.de
- fate #304279 mcelog support for Tigerton/Dunnington
Patch is from Andi himself with this statement:
While it looks large most of it is just new tables.
* 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