diff options
author | Jiri Moskovcak <jmoskovc@redhat.com> | 2009-03-11 14:21:28 +0100 |
---|---|---|
committer | Jiri Moskovcak <jmoskovc@redhat.com> | 2009-03-11 14:21:28 +0100 |
commit | 2036c6cc28f5d3f07142657ca148f8db516d9651 (patch) | |
tree | 28493a37a1cdd706012c10390d7e8b1d0acb652f /src | |
parent | d852cf2bf1bdf4a0662fbd68f76dc7feb65c97ba (diff) | |
download | abrt-2036c6cc28f5d3f07142657ca148f8db516d9651.tar.gz abrt-2036c6cc28f5d3f07142657ca148f8db516d9651.tar.xz abrt-2036c6cc28f5d3f07142657ca148f8db516d9651.zip |
added kerneloops addon and plugin (aarapov)
Diffstat (limited to 'src')
-rw-r--r-- | src/Hooks/Kerneloops.cpp | 35 | ||||
-rw-r--r-- | src/Hooks/Makefile.am | 14 |
2 files changed, 47 insertions, 2 deletions
diff --git a/src/Hooks/Kerneloops.cpp b/src/Hooks/Kerneloops.cpp new file mode 100644 index 00000000..74a21928 --- /dev/null +++ b/src/Hooks/Kerneloops.cpp @@ -0,0 +1,35 @@ +/* + * Copyright 2009, Red Hat Inc. + * + * This file is part of %TBD% + * + * This program file is free software; you can redistribute it and/or modify it + * under the terms of the GNU General Public License as published by the + * Free Software Foundation; version 2 of the License. + * + * This program is distributed in the hope that it will be useful, but WITHOUT + * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or + * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License + * for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program in a file named COPYING; if not, write to the + * Free Software Foundation, Inc., + * 51 Franklin Street, Fifth Floor, + * Boston, MA 02110-1301 USA + * + * Authors: + * Anton Arapov <anton@redhat.com> + */ + +#include "KerneloopsDmesg.h" + +int main() +{ + int ret; + + // reuses the code of Kerneloop Plugin + ret = scan_logs(); + + return ret; +} diff --git a/src/Hooks/Makefile.am b/src/Hooks/Makefile.am index acf23f30..f99b5306 100644 --- a/src/Hooks/Makefile.am +++ b/src/Hooks/Makefile.am @@ -1,5 +1,15 @@ -libexec_PROGRAMS = hookCCpp +libexec_PROGRAMS = hookCCpp hookKerneloops + +# CCpp hookCCpp_SOURCES = CCpp.cpp hookCCpp_LDADD = ../../lib/Utils/libUtils.la hookCCpp_CPPFLAGS = -I$(srcdir)/../../lib/Utils \ - -DDEBUG_DUMPS_DIR=\"$(DEBUG_DUMPS_DIR)\"
\ No newline at end of file + -DDEBUG_DUMPS_DIR=\"$(DEBUG_DUMPS_DIR)\" + +# Kerneloops +hookKerneloops_SOURCES = Kerneloops.cpp ../../lib/Plugins/KerneloopsDmesg.cpp ../../lib/Plugins/KerneloopsDmesg.h +hookKerneloops_LDADD = ../../lib/Utils/libUtils.la +hookKerneloops_CPPFLAGS = -static \ + -I$(srcdir)/../../lib/Utils \ + -I$(srcdir)/../../lib/Plugins \ + -DDEBUG_DUMPS_DIR=\"$(DEBUG_DUMPS_DIR)\" |