]>
www.infradead.org Git - users/mchehab/rasdaemon.git/log
summary |
shortlog | log |
commit |
commitdiff |
tree
first ⋅ prev ⋅ next
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
Mauro Carvalho Chehab [Wed, 13 Mar 2013 10:45:32 +0000 (07:45 -0300)]
Split ras daemon into modules
Instead of having everything altogether, split the sqlite code
into a separate file, and the RAS memory controller handling on
another one.
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
Mauro Carvalho Chehab [Tue, 12 Mar 2013 18:38:50 +0000 (15:38 -0300)]
Initial version