summaryrefslogtreecommitdiffstats
path: root/lib/plugins/Kerneloops.cpp
Commit message (Collapse)AuthorAgeFilesLines
* move files from lib/plugins to src/pluginsJiri Moskovcak2010-11-101-31/+0
|
* abrtd: convert reporting step to run_action, part 1 (main)Denys Vlasenko2010-11-031-54/+0
| | | | | | | | | | There are a few things which are missing in this commit: for example, the list of possible reporting "paths" is not extracted from abrt_event.conf yet. Part 2 will deal with it. Tested: reporting thru bugzilla and thru logger. Signed-off-by: Denys Vlasenko <dvlasenk@redhat.com>
* introduce abrt_action.conf; use it for post-create stepDenys Vlasenko2010-11-011-5/+0
| | | | | | | | | | | | | | | | | | | | | | | | This patch replaces only the post-create step with new logic (the step which happens when abrtd detects fresh crash dump dir and needs to decide what to do with it), but it turns out this step is one of hard ones: it needs special handling of UUID. So a good chunk of hard-ish stuff is already in this patch. It also contains logic to collect the log from actions, even though so far it is simply logged. Other steps (like reporting step) will pipe it to clients. post-create step simply has no client to pipe output to. But the code is there already. GetLocalUUID() members in all plugins are unused now and are deleted from all classes. Next patches will move run_event() function into libABRT, so that it can be used from e.g. abrt-handle-crashdump utility if/when we will write it, from clients directly and so on. For now, it lives in MiddleWare.cpp since it is only used there. Signed-off-by: Denys Vlasenko <dvlasenk@redhat.com>
* Kerneloops should use abrt-action-analyze-oops, not -python!Denys Vlasenko2010-10-211-2/+2
| | | | Signed-off-by: Denys Vlasenko <dvlasenk@redhat.com>
* move uuid/duphash generation for Kerneloops to abrt-action-analyze-oopsDenys Vlasenko2010-10-191-104/+41
| | | | | | | | | | | | Usage: abrt-action-analyze-oops [-vs] -d DIR Calculates and saves UUID and DUPHASH of oops crash dumps -v, --verbose be verbose -d DIR Crash dump directory -s Log to syslog Signed-off-by: Denys Vlasenko <dvlasenk@redhat.com>
* change dd_opendir API to return dd pointer (no need to dd_init it separately)Denys Vlasenko2010-10-151-2/+2
| | | | Signed-off-by: Denys Vlasenko <dvlasenk@redhat.com>
* add two flags to dd_opendir()Nikola Pajkovsky2010-09-221-5/+1
| | | | | | | | | | | | | | | | | | | DD_CLOSE_ON_OPEN_ERR - free dump_dir structure when opening dump_dir does not exist DD_FAIL_QUIETLY - suppress message when dump directory does not exist VERB1 log(_("Unable to open debug dump '%s'"), pDebugDumpDir); is all removed because there is error_msg("'%s' does not exist", dd->dd_dir); in dd_opendir() which sometimes we don't want to print(DD_FAIL_QUIETLY) example: crash dump directory trimming code running concurrently. Second process may try to delete a directory which is already gone. it should not complain that it is missing. Signed-off-by: Nikola Pajkovsky <npajkovs@redhat.com> Acked-off-by: Denys Vlasenko <dvlasenk@redhat.com>
* unhide dump_dir structure from typedefNikola Pajkovsky2010-09-201-1/+1
| | | | | | no other code changes Signed-off-by: Nikola Pajkovsky <npajkovs@redhat.com>
* DebugDump.* -> dump_dir.*Nikola Pajkovsky2010-09-071-1/+0
| | | | | Signed-off-by: Nikola Pajkovsky <npajkovs@redhat.com> Acked-off-by: Jiri Moskovcak <jmoskovc@redhat.com>
* DebugDump.cpp: lowercase and rename functionsNikola Pajkovsky2010-09-021-1/+1
| | | | Signed-off-by: Nikola Pajkovsky <npajkovs@redhat.com>
* added missing dd_close()Jiri Moskovcak2010-09-011-1/+1
|
* get rid of CDebugDump classNikola Pajkovsky2010-08-301-5/+6
| | | | Signed-off-by: Denys Vlasenko <dvlasenk@redhat.com>
* fix indentation and bracket position inNikola Pajkovsky2010-08-191-96/+105
| | | | | | | | | | | lib/plugins/Kerneloops.cpp lib/plugins/Kerneloops.h lib/plugins/KerneloopsReporter.cpp lib/plugins/KerneloopsReporter.h lib/plugins/KerneloopsScanner.h lib/plugins/KerneloopsSysLog.cpp Signed-off-by: Nikola Pajkovsky <npajkovs@redhat.com>
* get rid of exceptions in CDebugDump classMichal Toman2010-08-181-3/+6
|
* lower case direcotry(no code changed)Nikola Pajkovsky2010-08-101-0/+145
Signed-off-by: Nikola Pajkovsky <npajkovs@redhat.com>