diff options
author | Denys Vlasenko <dvlasenk@redhat.com> | 2011-01-17 16:39:11 +0100 |
---|---|---|
committer | Denys Vlasenko <dvlasenk@redhat.com> | 2011-01-17 16:39:11 +0100 |
commit | e796e95a4efbfeb04223f61c600c7712da7b500f (patch) | |
tree | 146d4bfe21c8fb6085041ec04198c4bc35663424 /src/plugins/Makefile.am | |
parent | f19d4af6c98ca2c45c1d2bf7f5085aa3fe690609 (diff) | |
download | abrt-e796e95a4efbfeb04223f61c600c7712da7b500f.tar.gz abrt-e796e95a4efbfeb04223f61c600c7712da7b500f.tar.xz abrt-e796e95a4efbfeb04223f61c600c7712da7b500f.zip |
replace KerneloopsScanner plugin and dumpoops with abrt-dump-oops, use it in abrtd
Patch adds new tool:
$ abrt-dump-oops
Usage: abrt-dump-oops [-vsrdow] FILE
Extract oops from syslog/dmesg file
-v, --verbose Be verbose
-s Log to syslog
-r Parse kernel's message buffer before parsing FILE
-d Create ABRT dump for every oops found
-o Print found oopses on standard output
-w Do not exit, watch the file for new oopses
It extends dumpoops. Extensions:
* it can watch the syslog using -w option (uses inotify)
* it can scan dmesg buffer too
In this way, it also becomes a replacement for KerneloopsScanner plugin:
oops-detecting logic is taken verbatim from KerneloopsScanner source.
abrtd is changed to start it if it sees this directive in abrt.conf:
[ LogScanners ]
abrt-dump-oops = abrt-dump-oops -drw /var/log/messages
Default abrt.conf is changed to have such line.
Patch doesn't remove KerneloopsScanner plugin and dumpoops binary yet,
I will do it in a separate trivial patch.
Signed-off-by: Denys Vlasenko <dvlasenk@redhat.com>
Diffstat (limited to 'src/plugins/Makefile.am')
-rw-r--r-- | src/plugins/Makefile.am | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/src/plugins/Makefile.am b/src/plugins/Makefile.am index c960e66e..5d3b5890 100644 --- a/src/plugins/Makefile.am +++ b/src/plugins/Makefile.am @@ -4,6 +4,7 @@ bin_SCRIPTS = \ abrt-action-install-debuginfo.py bin_PROGRAMS = \ + abrt-dump-oops \ abrt-action-analyze-c \ abrt-action-analyze-python \ abrt-action-analyze-oops \ @@ -90,6 +91,25 @@ libKerneloopsScanner_la_LDFLAGS = \ -avoid-version \ $(GLIB_LIBS) +abrt_dump_oops_SOURCES = \ + abrt-dump-oops.c +abrt_dump_oops_CPPFLAGS = \ + -I$(srcdir)/../include/report -I$(srcdir)/../include \ + -I$(srcdir)/../lib \ + -DBIN_DIR=\"$(bindir)\" \ + -DVAR_RUN=\"$(VAR_RUN)\" \ + -DCONF_DIR=\"$(CONF_DIR)\" \ + -DLOCALSTATEDIR='"$(localstatedir)"' \ + -DDEBUG_DUMPS_DIR=\"$(DEBUG_DUMPS_DIR)\" \ + -DDEBUG_INFO_DIR=\"$(DEBUG_INFO_DIR)\" \ + -DPLUGINS_LIB_DIR=\"$(PLUGINS_LIB_DIR)\" \ + -DPLUGINS_CONF_DIR=\"$(PLUGINS_CONF_DIR)\" \ + $(GLIB_CFLAGS) \ + -D_GNU_SOURCE \ + -Wall -Werror +abrt_dump_oops_LDADD = \ + ../lib/libreport.la + abrt_action_analyze_c_SOURCES = \ abrt-action-analyze-c.c abrt_action_analyze_c_CPPFLAGS = \ |