summaryrefslogtreecommitdiffstats
path: root/src/plugins/abrt-dump-oops.c
Commit message (Collapse)AuthorAgeFilesLines
* reenable kernel taintNikola Pajkovsky2011-05-191-0/+14
| | | | | | | | abrt-dump-oops stores two new files into dump dir. kernel_tainted_short which is representation of kernel tainted value (P----T). kernel_tainted_long contains human readable strings of short version Signed-off-by: Nikola Pajkovsky <npajkovs@redhat.com>
* move $ABRT_foo checking and setting into helper routines.Denys Vlasenko2011-05-041-11/+7
| | | | | | | I'm sick of fixing incorrect PROGNAME defines. Now g_progname is a variable and it is set from argv[0]. Signed-off-by: Denys Vlasenko <dvlasenk@redhat.com>
* abrt-dump-oops: make -d option take a parameter: directory where to create dumpsDenys Vlasenko2011-04-051-16/+22
| | | | | | | Closes #188 "-d should be documented as a root-only, or made to work for user". Also might make testing easier. Signed-off-by: Denys Vlasenko <dvlasenk@redhat.com>
* Ticket #187 exit code == 0 when error showsNikola Pajkovsky2011-04-041-4/+5
| | | | | | | | | | | | | | $ abrt-dump-oops -d -o Downloads/examples_oops1.test abrt-dump-oops: Found oopses: 1 [...] abrt-dump-oops: Creating dump directories abrt-dump-oops: Can't create directory '/var/spool/abrt/oops-...': Permission denied abrt-dump-oops: 1 errors while dumping oopses [newman@dhcp-24-178 ~]$ echo $? 0 Signed-off-by: Nikola Pajkovsky <npajkovs@redhat.com>
* oops: don't save bogus "executable", and save real "cmdline" instead of ↵Denys Vlasenko2011-03-241-4/+12
| | | | | | bogus one Signed-off-by: Denys Vlasenko <dvlasenk@redhat.com>
* extend dump_dir to allow creating world-readable directoryJiri Moskovcak2011-03-241-3/+21
| | | | - so far used only by kerneloops
* abrt-dump-oops: fix code to detect the markerDenys Vlasenko2011-03-171-26/+30
| | | | Signed-off-by: Denys Vlasenko <dvlasenk@redhat.com>
* abrt-dump-oops: fix double-free; abrt_event.conf: better report event nameDenys Vlasenko2011-03-161-41/+55
| | | | Signed-off-by: Denys Vlasenko <dvlasenk@redhat.com>
* abrt-cli -r DIR: copy non-writable DIR into $HOME/abrt/spoolDenys Vlasenko2011-02-011-0/+1
| | | | Signed-off-by: Denys Vlasenko <dvlasenk@redhat.com>
* make option handling more regular across all toolsDenys Vlasenko2011-01-201-9/+8
| | | | Signed-off-by: Denys Vlasenko <dvlasenk@redhat.com>
* introduce and use new helper function list_free_with_freeDenys Vlasenko2011-01-201-3/+1
| | | | Signed-off-by: Denys Vlasenko <dvlasenk@redhat.com>
* replace KerneloopsScanner plugin and dumpoops with abrt-dump-oops, use it in ↵Denys Vlasenko2011-01-171-0/+712
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>