]> www.infradead.org Git - users/mchehab/rasdaemon.git/log
users/mchehab/rasdaemon.git
12 years agoedac-fake-inject: Check if the Kernel supports error injection
Mauro Carvalho Chehab [Thu, 23 May 2013 13:24:03 +0000 (10:24 -0300)]
edac-fake-inject: Check if the Kernel supports error injection

Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
12 years agoGet rid of mc_event_error_type
Mauro Carvalho Chehab [Thu, 23 May 2013 12:35:38 +0000 (09:35 -0300)]
Get rid of mc_event_error_type

Somehow, the tracing library is not finding it on some systems:
overriding event (710) ras:mc_event with new print handler
trace-cmd: File exists
  function mc_event_error_type not defined

Let's just get rid of it.

Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
12 years agoBetter handle parser errors with MC events
Mauro Carvalho Chehab [Thu, 23 May 2013 12:09:19 +0000 (09:09 -0300)]
Better handle parser errors with MC events

Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
12 years agoedac-fake-inject: Make it more generic
Mauro Carvalho Chehab [Thu, 23 May 2013 12:01:10 +0000 (09:01 -0300)]
edac-fake-inject: Make it more generic

The tool used to support only 2 or 3 layer memory controllers,
faling with edac_ghes driver. Make it more generic to also work
there.

Also, don't assume that the SYSFS is mounted at /sys/kernel/debug,
but look at its mount location via /proc/mounts.

Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
12 years agoFix rasdaemon -d
Mauro Carvalho Chehab [Thu, 23 May 2013 11:21:55 +0000 (08:21 -0300)]
Fix rasdaemon -d

We need to get the debugfs pointer in order to toggle the MC events.

Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
12 years agoGet rid of the remaining warnings
Mauro Carvalho Chehab [Thu, 23 May 2013 10:25:54 +0000 (07:25 -0300)]
Get rid of the remaining warnings

Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
12 years agolibtrace: get rid of breakpoint() function
Mauro Carvalho Chehab [Thu, 23 May 2013 10:23:11 +0000 (07:23 -0300)]
libtrace: get rid of breakpoint() function

This isn't used anywhere.

Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
12 years agoGet rid of most warnings at libtrace
Mauro Carvalho Chehab [Thu, 23 May 2013 10:22:40 +0000 (07:22 -0300)]
Get rid of most warnings at libtrace

Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
12 years agoFix usage of toggle_ras_mc_event() by -d parameter
Mauro Carvalho Chehab [Thu, 23 May 2013 10:10:53 +0000 (07:10 -0300)]
Fix usage of toggle_ras_mc_event() by -d parameter

Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
12 years agoEnable gcc warnings
Mauro Carvalho Chehab [Thu, 23 May 2013 10:07:44 +0000 (07:07 -0300)]
Enable gcc warnings

Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
12 years agorasdaemon.spec: specify the root directory on a consistent way v0.3.0
Mauro Carvalho Chehab [Tue, 21 May 2013 02:37:23 +0000 (23:37 -0300)]
rasdaemon.spec: specify the root directory on a consistent way

As fedora-review tool complained:

- Package consistently uses macro is (instead of hard-coded directory names).
  Note: Using both %{buildroot} and $RPM_BUILD_ROOT
  See: http://fedoraproject.org/wiki/Packaging/Guidelines#macros

Let's just use %{buildroot}.

Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
12 years agoUpdate it to point it to fedorapeople
Mauro Carvalho Chehab [Tue, 21 May 2013 02:24:09 +0000 (23:24 -0300)]
Update it to point it to fedorapeople

The tarball used to generate the src.rpm is the one produced
by "make dist-bz2", with doesn't contain .gitignore files,
while fedorahosted only generates an snapshot with them.

That makes its hash to not match the one used at .src.rpm.

Fix it by using the uploaded file.

Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
12 years agoAdd a target to upload a new version
Mauro Carvalho Chehab [Tue, 21 May 2013 01:54:54 +0000 (22:54 -0300)]
Add a target to upload a new version

Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
12 years agoUpdate the spec file to require autotools for building it
Mauro Carvalho Chehab [Tue, 21 May 2013 01:51:05 +0000 (22:51 -0300)]
Update the spec file to require autotools for building it

Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
12 years agorasdaemon.spec: Don't install INSTALL file
Mauro Carvalho Chehab [Tue, 21 May 2013 01:00:50 +0000 (22:00 -0300)]
rasdaemon.spec: Don't install INSTALL file

rpmlint complains with that:
rasdaemon.x86_64: W: install-file-in-docs /usr/share/doc/rasdaemon-0.3.0/INSTALL

Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
12 years agorpmlint: fix version compliant
Mauro Carvalho Chehab [Tue, 21 May 2013 00:45:04 +0000 (21:45 -0300)]
rpmlint: fix version compliant

rasdaemon.x86_64: W: incoherent-version-in-changelog 0.2.0-1 ['0.3.0-1.fc18', '0.3.0-1']

Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
12 years agoras-mc-ctl.8.in: fix rpmlint compliants
Mauro Carvalho Chehab [Tue, 21 May 2013 00:40:01 +0000 (21:40 -0300)]
ras-mc-ctl.8.in: fix rpmlint compliants

rasdaemon.x86_64: W: manual-page-warning /usr/share/man/man8/ras-mc-ctl.8.gz 79: a space character is not allowed in an escape name
rasdaemon.x86_64: W: manual-page-warning /usr/share/man/man8/ras-mc-ctl.8.gz 122: warning: macro `EL' not defined

Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
12 years agoWhitespace cleanups
Mauro Carvalho Chehab [Tue, 21 May 2013 00:34:17 +0000 (21:34 -0300)]
Whitespace cleanups

No functional changes here, just whitespacing cleanups.

Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
12 years agorpmlint target: RPMS files are wrong. Fix it.
Mauro Carvalho Chehab [Tue, 21 May 2013 00:30:54 +0000 (21:30 -0300)]
rpmlint target: RPMS files are wrong. Fix it.

Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
12 years agoFix rpmlint check line
Mauro Carvalho Chehab [Tue, 21 May 2013 00:28:26 +0000 (21:28 -0300)]
Fix rpmlint check line

It should not be checking the .tar.bz2, but, instead, the generated
rpm files.

Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
12 years agoAdd missing header files to Makefile.am
Mauro Carvalho Chehab [Tue, 21 May 2013 00:03:53 +0000 (21:03 -0300)]
Add missing header files to Makefile.am

This is needed, in order to generate the proper dist tar files.

Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
12 years agoBump it to version 0.3.0
Mauro Carvalho Chehab [Mon, 20 May 2013 23:53:09 +0000 (20:53 -0300)]
Bump it to version 0.3.0

As we now have initial mcelog/PCEe AER parsing, bump version
to 0.3.0.

Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
12 years agoAdd a rule to build a source rpm file
Mauro Carvalho Chehab [Mon, 20 May 2013 23:52:40 +0000 (20:52 -0300)]
Add a rule to build a source rpm file

Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
12 years agoAuto-fill the rasdaemon.spec version
Mauro Carvalho Chehab [Mon, 20 May 2013 22:28:34 +0000 (19:28 -0300)]
Auto-fill the rasdaemon.spec version

Instead of keeping it static, let ./configure to fill the
version of the rasdaemon.spec. That makes it a little easier
to be used on rpm-based distros.

Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
12 years agoAdd decoder for Ivy Bridge
Mauro Carvalho Chehab [Sat, 18 May 2013 19:49:33 +0000 (16:49 -0300)]
Add decoder for Ivy Bridge

The code came from mcelog. For now, let's disable the part that
handles the memory controller.

Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
12 years agoAdd decoder for Sandy Bridge
Mauro Carvalho Chehab [Sat, 18 May 2013 19:43:58 +0000 (16:43 -0300)]
Add decoder for Sandy Bridge

The code came from mcelog. For now, let's disable the part that
handles the memory controller.

Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
12 years agoAdd decoder for Intel MCE tulsa
Mauro Carvalho Chehab [Sat, 18 May 2013 15:16:46 +0000 (12:16 -0300)]
Add decoder for Intel MCE tulsa

The code came almost as-is from mcelog.

Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
12 years agoAdd decoder for Intel Dunnington CPUs
Mauro Carvalho Chehab [Sat, 18 May 2013 15:10:53 +0000 (12:10 -0300)]
Add decoder for Intel Dunnington CPUs

The code came almost as-is from mcelog.

Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
12 years agoAdd a decoder for Nehalem-specific types
Mauro Carvalho Chehab [Sat, 18 May 2013 14:35:55 +0000 (11:35 -0300)]
Add a decoder for Nehalem-specific types

Note: Memory Controller-specific decoding was excluded.

Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
12 years agoAdd a parser for Intel P4/P6 specific CPU error messages
Mauro Carvalho Chehab [Sat, 18 May 2013 14:20:37 +0000 (11:20 -0300)]
Add a parser for Intel P4/P6 specific CPU error messages

Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
12 years agoAdd a parser for Intel P4/P6 processors
Mauro Carvalho Chehab [Sat, 18 May 2013 14:13:07 +0000 (11:13 -0300)]
Add a parser for Intel P4/P6 processors

Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
12 years agomce-intel: Add support to decode MCI/MCA
Mauro Carvalho Chehab [Sat, 18 May 2013 09:26:01 +0000 (06:26 -0300)]
mce-intel: Add support to decode MCI/MCA

As almost all mce decoding code, those code came from Andi Kleen's
mcelog application.

While the code added there came from p4.c and nehalem.c, they're
used by all Intel CPUs so far.

Intel CPU-specific code parsing is still not implemented.

Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
12 years agomce-intel: simplify code and add an user_action field
Mauro Carvalho Chehab [Sat, 18 May 2013 08:23:48 +0000 (05:23 -0300)]
mce-intel: simplify code and add an user_action field

While for pure print messages, the user recommended action can be
together with the error message, having it in a separate field
helps to latter handle the error. So, split it.

Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
12 years agomce-amd-k8: Code cleanups
Mauro Carvalho Chehab [Sat, 18 May 2013 08:15:30 +0000 (05:15 -0300)]
mce-amd-k8: Code cleanups

Instead of doing the error_msg buffer filling logic everywhere,
move it to a common routine.

That cleans up the code a lot, and makes easier to use the same
code to also handle other *_msg fields on latter patches.

Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
12 years agomce-intel: add support to decode termal bank and mcg
Mauro Carvalho Chehab [Thu, 16 May 2013 14:54:13 +0000 (11:54 -0300)]
mce-intel: add support to decode termal bank and mcg

Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
12 years agoImprove MCE parser for AMD k8
Mauro Carvalho Chehab [Thu, 16 May 2013 11:16:12 +0000 (08:16 -0300)]
Improve MCE parser for AMD k8

Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
12 years agomce-amd-k8: add status decoding logic
Mauro Carvalho Chehab [Wed, 15 May 2013 20:43:32 +0000 (17:43 -0300)]
mce-amd-k8: add status decoding logic

Add the status decoding logic from mcelog's k8.c file.

Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
12 years agoAdd per-cpu-type handlers for MCE log
Mauro Carvalho Chehab [Wed, 15 May 2013 19:34:49 +0000 (16:34 -0300)]
Add per-cpu-type handlers for MCE log

For now, only the bank information is handled.

Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
12 years agoAdd a basic handler for MCE logs
Mauro Carvalho Chehab [Wed, 15 May 2013 18:16:53 +0000 (15:16 -0300)]
Add a basic handler for MCE logs

For now, this handler just detects the CPU type and parses all
fields at the MCE event trace.

Latter patches will add decoding capabilities to the event.

Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
12 years agoras-events: prepare to handle MCE events
Mauro Carvalho Chehab [Wed, 15 May 2013 11:56:25 +0000 (08:56 -0300)]
ras-events: prepare to handle MCE events

Parsing MCE events is hard, as it requires per-cpu-type parsing.
We can at least get those events and send them to syslog/journald.

So, ask tracing to collect them as well and add a hook for the
future mcelog parsing code.

Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
12 years agoAdd support for PCIe AER events
Mauro Carvalho Chehab [Wed, 15 May 2013 11:07:08 +0000 (08:07 -0300)]
Add support for PCIe AER events

The code is currently untested, as I'm missing a testing
system where I could inject PCIe AER events.

Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
12 years agoFix dummy function arguments when compiled without sqlite3 support
Mauro Carvalho Chehab [Wed, 15 May 2013 11:27:06 +0000 (08:27 -0300)]
Fix dummy function arguments when compiled without sqlite3 support

That shuts up a warning.

Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
12 years agoras-mc-handler: remove some unused headers
Mauro Carvalho Chehab [Wed, 15 May 2013 10:24:56 +0000 (07:24 -0300)]
ras-mc-handler: remove some unused headers

Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
12 years agorasdaemon: Better handle error conditions
Mauro Carvalho Chehab [Fri, 10 May 2013 19:07:15 +0000 (16:07 -0300)]
rasdaemon: Better handle error conditions

Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
12 years agoPrint cpu number at event records log
Mauro Carvalho Chehab [Fri, 10 May 2013 14:35:36 +0000 (11:35 -0300)]
Print cpu number at event records log

Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
12 years agoras-record: retry open if busy
Mauro Carvalho Chehab [Fri, 10 May 2013 14:28:59 +0000 (11:28 -0300)]
ras-record: retry open if busy

As we'll have several concurrent opens at the same time, we
need to retry if race conditions happen.

Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
12 years agoras-events: make the error patch to do the right thing
Mauro Carvalho Chehab [Fri, 10 May 2013 14:23:56 +0000 (11:23 -0300)]
ras-events: make the error patch to do the right thing

Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
12 years agoREADME: add project goals
Mauro Carvalho Chehab [Fri, 10 May 2013 13:49:56 +0000 (10:49 -0300)]
README: add project goals

Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
12 years agoUpdate README
Mauro Carvalho Chehab [Fri, 10 May 2013 13:11:26 +0000 (10:11 -0300)]
Update README

Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
12 years agoras-events: open database on each thread
Mauro Carvalho Chehab [Thu, 9 May 2013 16:11:26 +0000 (13:11 -0300)]
ras-events: open database on each thread

sqlite3 is only able to prevent race issues between different
threads if each thread opens its own connection to the database.

Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
12 years agoUpdate tarball URL
Mauro Carvalho Chehab [Wed, 8 May 2013 18:17:03 +0000 (15:17 -0300)]
Update tarball URL

That makes rpmlint happy

Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
12 years agoFix make dist-* targets v0.2.0
Mauro Carvalho Chehab [Wed, 8 May 2013 18:14:31 +0000 (15:14 -0300)]
Fix make dist-* targets

Those targets require to know what are the header files.

Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
12 years agoAdd a RPM spec file to build it with rpmbuild
Mauro Carvalho Chehab [Wed, 8 May 2013 17:52:05 +0000 (14:52 -0300)]
Add a RPM spec file to build it with rpmbuild

Add a rasdaemon.spec template file useful for compiling it with
Fedora. It may require changes to work with other distributions
that also use rpm files, as each distro has their own rules for
rpm's, but at least this file can be used as a reference.

Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
12 years agoAdd a service to register EDAC labels
Mauro Carvalho Chehab [Wed, 8 May 2013 17:35:57 +0000 (14:35 -0300)]
Add a service to register EDAC labels

Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
12 years agoAdd a manpage for the rasdaemon
Mauro Carvalho Chehab [Wed, 8 May 2013 15:24:36 +0000 (12:24 -0300)]
Add a manpage for the rasdaemon

Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
12 years agoModify the ras-mc-ctl manpage to reflect the current tool
Mauro Carvalho Chehab [Wed, 8 May 2013 15:12:56 +0000 (12:12 -0300)]
Modify the ras-mc-ctl manpage to reflect the current tool

Several changes happened at the tool, since when it was
part of edac-utils. Also, a few new options got added there.

Add the missing parts and change it to reflect its new name.

Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
12 years agoAdd a man page for ras-mc-ctl
Mauro Carvalho Chehab [Wed, 8 May 2013 14:30:44 +0000 (11:30 -0300)]
Add a man page for ras-mc-ctl

This is currently the same as edac-utils, but needs to be
re-written.

Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
12 years agoParse ras-mc-ctl via autoconf tools
Mauro Carvalho Chehab [Wed, 8 May 2013 14:24:43 +0000 (11:24 -0300)]
Parse ras-mc-ctl via autoconf tools

Instead of using fixed directory prefixes, let the building
system to tell them, via ./configure.

This uses the very same solution as edac-utils do.

Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
12 years agoAdd more autotools stuff into .gitignore
Mauro Carvalho Chehab [Wed, 8 May 2013 11:42:35 +0000 (08:42 -0300)]
Add more autotools stuff into .gitignore

Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
12 years agorasdaemon: change it to version 0.2.0
Mauro Carvalho Chehab [Wed, 8 May 2013 11:35:57 +0000 (08:35 -0300)]
rasdaemon: change it to version 0.2.0

There are too many changes there, and it is now on a more functional
state. So, bump it to version 0.2.0.

Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
12 years agoras-daemon: make sqlite3 code optional
Mauro Carvalho Chehab [Wed, 8 May 2013 11:33:05 +0000 (08:33 -0300)]
ras-daemon: make sqlite3 code optional

The sqlite3 code is experimental and currently having some issues
with multi-threading. Convert it into an optional feature that
it is only explicitly enabled.

Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
12 years agoUpdate TODO file
Mauro Carvalho Chehab [Mon, 6 May 2013 19:39:15 +0000 (16:39 -0300)]
Update TODO file

ras-mc-ctl is the tool that allows inspecting/modifying the EDAC
data on sysfs. Remove it from the TODO file.

Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
12 years agoras-mc-ctl: update copyright file
Mauro Carvalho Chehab [Mon, 6 May 2013 19:38:21 +0000 (16:38 -0300)]
ras-mc-ctl: update copyright file

Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
12 years agoras-mc-ctl: rename edac-ctl to ras-mc-ctl
Mauro Carvalho Chehab [Mon, 6 May 2013 19:27:56 +0000 (16:27 -0300)]
ras-mc-ctl: rename edac-ctl to ras-mc-ctl

In order to allow both EDAC and rasdaemon to be installed
at the same system, rename the control tool to ras-mc-ctl.

Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
12 years agoedac-ctl: drop support for legacy EDAC nodes
Mauro Carvalho Chehab [Mon, 6 May 2013 19:27:25 +0000 (16:27 -0300)]
edac-ctl: drop support for legacy EDAC nodes

Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
12 years agoedac-ctl: Convert it to use EDAC version 3.0.0 (HERM)
Mauro Carvalho Chehab [Mon, 6 May 2013 19:25:19 +0000 (16:25 -0300)]
edac-ctl: Convert it to use EDAC version 3.0.0 (HERM)

EDAC version 3.0.0 (HERM) added a new set of sysfs nodes
that provides the real location of the memory banks.

Use it, instead of the fake csrow/channel location.

Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
12 years agoedac-ctl: move dimm label parsing routine to the beginning
Mauro Carvalho Chehab [Mon, 6 May 2013 18:06:36 +0000 (15:06 -0300)]
edac-ctl: move dimm label parsing routine to the beginning

This routine will be used later on other places. So, move it to
the beginning.

Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
12 years agoRemove the already solved issues from TODO.
Mauro Carvalho Chehab [Fri, 3 May 2013 21:20:41 +0000 (18:20 -0300)]
Remove the already solved issues from TODO.

For now, don't renumber it, as the numbering is still usefull.

Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
12 years agoras-events: Use uptime clock if available
Mauro Carvalho Chehab [Fri, 3 May 2013 21:06:35 +0000 (18:06 -0300)]
ras-events: Use uptime clock if available

Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
12 years agoras-events: Use per-instance tracing ringbuffer, if supported
Mauro Carvalho Chehab [Fri, 3 May 2013 18:20:47 +0000 (15:20 -0300)]
ras-events: Use per-instance tracing ringbuffer, if supported

Kernel 3.10-rc1 and upper supports per-instance ringbuffers.
Use it if available.

Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
12 years agoras-events: warn if something got wrong with threads
Mauro Carvalho Chehab [Fri, 3 May 2013 17:16:15 +0000 (14:16 -0300)]
ras-events: warn if something got wrong with threads

Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
12 years agoSome fixes at the log function
Mauro Carvalho Chehab [Fri, 3 May 2013 16:47:35 +0000 (13:47 -0300)]
Some fixes at the log function

1) use the do { } while (0) logic, as it helps to avoid
   troubles with the define (see Kernel's Documentation);

2) add a "\n" where missing;

3) add ';' after log(...) to make it to look as a
real function.

Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
12 years agomove ras events generic code into a separate file
Mauro Carvalho Chehab [Fri, 3 May 2013 13:14:55 +0000 (10:14 -0300)]
move ras events generic code into a separate file

As we'll add other event types, move the ras events generic
code into a separate dir.

While here, get hid of the DEBUGFS define, replacing it by
a code that will discover where the debugfs got mounted on
the system.

Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
12 years agolibtrace: sync with latest changeset
Mauro Carvalho Chehab [Thu, 2 May 2013 20:10:33 +0000 (17:10 -0300)]
libtrace: sync with latest changeset

Sync it with the last upstream changeset(07f0eee).

Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
12 years agoAdd edac-ctl perl script to contrib
Mauro Carvalho Chehab [Fri, 19 Apr 2013 12:59:19 +0000 (09:59 -0300)]
Add edac-ctl perl script to contrib

edac-ctl is part of edac-utils and it was written by
Mark Grondona <mgrondona@llnl.gov>. While it uses the old
EDAC API most of the time, it offers some interesting
features for EDAC. So, add it here.

Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
12 years agoadd two test scripts to contrib
Mauro Carvalho Chehab [Fri, 19 Apr 2013 12:57:20 +0000 (09:57 -0300)]
add two test scripts to contrib

edac-fake-inject allows testing the EDAC daemon, if the
Kernel is compiled with EDAC_DEBUG.

edac-tests run a series of tests and produce a report for
a given EDAC driver.

Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
12 years agorasdaemon: logging via syslog enabled
Petr Holasek [Mon, 8 Apr 2013 17:59:14 +0000 (19:59 +0200)]
rasdaemon: logging via syslog enabled

Patch adds simple (so far) code for customizing of logging levels
and possible outputs. Macro log(..) were introduced and should be
called in all places where rasdaemon could send some output either
to console or syslog.

Systemd unit file was added, so systemd will guarantee that daemon
will be restarted immediately after stop or killing.

Signed-off-by: Petr Holasek <pholasek@redhat.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
12 years agoREADME: fixed description of configure script call
Petr Holasek [Mon, 8 Apr 2013 17:59:13 +0000 (19:59 +0200)]
README: fixed description of configure script call

Signed-off-by: Petr Holasek <pholasek@redhat.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
12 years agoThe m4 directory needs to exist for autoreconf to work
Mauro Carvalho Chehab [Thu, 28 Mar 2013 17:27:52 +0000 (14:27 -0300)]
The m4 directory needs to exist for autoreconf to work

Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
12 years agoTODO: use a separate ring buffer
Mauro Carvalho Chehab [Mon, 25 Mar 2013 14:30:08 +0000 (11:30 -0300)]
TODO: use a separate ring buffer

Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
12 years agoTODO: numerate items there to help tracking them
Mauro Carvalho Chehab [Mon, 25 Mar 2013 14:25:36 +0000 (11:25 -0300)]
TODO: numerate items there to help tracking them

Let's numerate the numbers at the list, as it helps to
reference them.

Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
12 years agoTODO: update it to reflect the current status
Mauro Carvalho Chehab [Mon, 25 Mar 2013 14:17:34 +0000 (11:17 -0300)]
TODO: update it to reflect the current status

Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
12 years agoras-mc-event: fix field names
Mauro Carvalho Chehab [Thu, 14 Mar 2013 20:02:06 +0000 (17:02 -0300)]
ras-mc-event: fix field names

A previous name replacement broke the namespace of the strings

Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
12 years agoras-mc-event: use the default logic to display the parse error
Mauro Carvalho Chehab [Thu, 14 Mar 2013 20:05:49 +0000 (17:05 -0300)]
ras-mc-event: use the default logic to display the parse error

Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
12 years agoras-mc-event: use the default logic to display the parse error
Mauro Carvalho Chehab [Thu, 14 Mar 2013 19:59:10 +0000 (16:59 -0300)]
ras-mc-event: use the default logic to display the parse error

Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
12 years agoUpdate NEWS to reflect the rationale behind the project v0.1
Mauro Carvalho Chehab [Thu, 14 Mar 2013 18:32:06 +0000 (15:32 -0300)]
Update NEWS to reflect the rationale behind the project

Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
12 years agoBetter comment about the sense of timestamp
Mauro Carvalho Chehab [Thu, 14 Mar 2013 12:30:19 +0000 (09:30 -0300)]
Better comment about the sense of timestamp

Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
12 years agoSplit sqlite3 statement prepare into a separate function
Mauro Carvalho Chehab [Wed, 13 Mar 2013 21:36:06 +0000 (18:36 -0300)]
Split sqlite3 statement prepare into a separate function

Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
12 years agoWait forever at poll()
Mauro Carvalho Chehab [Wed, 13 Mar 2013 17:03:24 +0000 (14:03 -0300)]
Wait forever at poll()

timeout = 0 doesn't wait. What we want there is to wait forever

Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
12 years agoAdd a README file for libtrace
Mauro Carvalho Chehab [Wed, 13 Mar 2013 12:20:54 +0000 (09:20 -0300)]
Add a README file for libtrace

Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
12 years agorasdaemon: make record events optional
Mauro Carvalho Chehab [Wed, 13 Mar 2013 11:49:09 +0000 (08:49 -0300)]
rasdaemon: make record events optional

Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
12 years agoras-record: don't try to record if database open failed
Mauro Carvalho Chehab [Wed, 13 Mar 2013 11:43:50 +0000 (08:43 -0300)]
ras-record: don't try to record if database open failed

Check if ras->stmt is not null before writing it. That avoids
the risk of trying to write something if the database was not
opened.

Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
12 years agoremove plugin-ras.c
Mauro Carvalho Chehab [Wed, 13 Mar 2013 11:28:45 +0000 (08:28 -0300)]
remove plugin-ras.c

This file is not used.

Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
12 years agoAdd ACLOCAL_AMFLAGS to Makefile.am
Mauro Carvalho Chehab [Wed, 13 Mar 2013 11:24:27 +0000 (08:24 -0300)]
Add ACLOCAL_AMFLAGS to Makefile.am

Fixes a warning, from libtool:

libtoolize: Consider adding `-I m4' to ACLOCAL_AMFLAGS in Makefile.am.

Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
12 years agoAdd information about the needed packages to compile it
Mauro Carvalho Chehab [Wed, 13 Mar 2013 11:20:52 +0000 (08:20 -0300)]
Add information about the needed packages to compile it

Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
12 years agoUpdate gitignore to not produce false reports
Mauro Carvalho Chehab [Wed, 13 Mar 2013 10:58:45 +0000 (07:58 -0300)]
Update gitignore to not produce false reports

Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
12 years agoAdd quick usage instructions at README
Mauro Carvalho Chehab [Wed, 13 Mar 2013 10:57:39 +0000 (07:57 -0300)]
Add quick usage instructions at README

Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
12 years agoImprove INSTALL procedure
Mauro Carvalho Chehab [Wed, 13 Mar 2013 10:55:14 +0000 (07:55 -0300)]
Improve INSTALL procedure

Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
12 years agoAdd a TODO list
Mauro Carvalho Chehab [Wed, 13 Mar 2013 10:52:58 +0000 (07:52 -0300)]
Add a TODO list

Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
12 years agorasdaemon: by default, start the daemon
Mauro Carvalho Chehab [Wed, 13 Mar 2013 10:48:20 +0000 (07:48 -0300)]
rasdaemon: by default, start the daemon

Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>