summaryrefslogtreecommitdiffstats
path: root/lib/Plugins/KerneloopsSysLog.cpp
Commit message (Collapse)AuthorAgeFilesLines
* kerneloops: fix the linux kernel version identification 2nd try.Anton Arapov2009-12-071-1/+1
| | | | | | change copypasted strchrnul() to strchr()... so that it will work. Credits to Denys.
* kerneloops: fix the linux kernel version identificationAnton Arapov2009-12-071-1/+3
| | | | version string can and by ')' in some of the reports
* include RIP/RIP lines in oops reportsDenys Vlasenko2009-11-201-92/+68
| | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* include more info into oops (we were losing the stack dump)Denys Vlasenko2009-11-191-95/+101
| | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* KerneloopsSysLog: fix breakage in code which detects abrt markerDenys Vlasenko2009-11-111-2/+2
| | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* make syslog detection more robust; add oops examples (fixes #533901)Denys Vlasenko2009-11-101-52/+38
| | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* fix more warnings (these were harmless, but still...)Denys Vlasenko2009-11-031-1/+0
| | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* dumpoops: add -s option to dump results to stdoutDenys Vlasenko2009-10-291-18/+20
| | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* Kerneloops: remove two classes, vector_string_t works as goodDenys Vlasenko2009-10-291-39/+6
| | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* KerneloopsScanner: do not use global variables needlesslyDenys Vlasenko2009-10-281-100/+83
| | | | | | | | text data bss dec hex filename 27341 1688 48 29077 7195 old/libKerneloopsScanner.so 26466 1672 24 28162 6e02 new/libKerneloopsScanner.so Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* KerneloopsSysLog: check line length to be >= 4 before looking for "Abrt"Denys Vlasenko2009-08-201-1/+1
| | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* kerneloops eliminate commented code, related to type distinguishing...Anton Arapov2009-08-111-3/+3
| | | | it seems stable, proved by the stress tests. :)
* Split real code from lib/MiddleWare/Plugin.h into Plugin.cpp.Denys Vlasenko2009-08-071-2/+1
| | | | | | 30k smaller code. Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* delete semicolon in "if (expr); stmt;" , autodetect dmesg/syslogDenys Vlasenko2009-07-311-8/+25
| | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* KerneloopsReporter: plug a leak in writefunctionDenys Vlasenko2009-07-311-1/+1
| | | | | | Also some preparatory cleanups for future dumpoops patch are included Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* bug fixes in kerneloops scannerDenys Vlasenko2009-07-311-5/+5
| | | | | | | | | | | | | | | | | | | | | CKerneloopsScanner::Run - scan syslog file first, then dmesg (was other way around) CKerneloopsScanner::SaveOopsToDebug - cast time_t and size_t to long when we feed them to snprintf CKerneloopsScanner::ScanSysLogFile - do not seek to negative offsets, POSIX does not allow that CSysLog::QueueOops - plug memory leak Also used some abrtlib functions where appropriate, use open instead of fopen where appropriate, do not check error in time() - it never fails, move around bits of code in CKerneloopsScanner to make it easier in future to create a tool for parsing arbitrary files for oopses. Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* using more x-functionsDenys Vlasenko2009-07-311-5/+5
| | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* Handle logs with NUL chars betterMichal Schmidt2009-06-201-37/+34
| | | | | | | | | | | It is not too rare that '\0' chars appear in /var/log/messages. I saw a real-life case where kerneloops would show a popup with the same old oops after every login. It turned out that there were NUL chars in the log which prevented kerneloops from seeing its marker, so it always treated the old oops in the log as new. This patch fixes it by always going through the whole known length of the buffer (not stopping on NUL chars) and using less string-oriented functions in fill_lineinfo().
* Use less memoryAnton Arapov2009-06-201-61/+78
| | | | | | | | | | | | * backport of 14e769d7093179943015ff88d0d3bdd65b2947f7 * Author: Michal Schmidt <mschmidt@redhat.com> The linepointer array is huge!: linepointer = calloc(buflen+1, sizeof(char*)); buflen can be as much as 32 MB, that makes it allocate 32M*8 = 256M on x86_64. Fix it by growing the allocation dynamically as we find interesting lines in the log.
* kerneloops: correct copyrights and package relation.Anton Arapov2009-03-311-1/+1
|
* kerneloops - plugin: huge changeset, make things more c++-ish, configurable ↵Anton Arapov2009-03-261-172/+41
| | | | syslog
* kerneloops - plugin: rename filesAnton Arapov2009-03-261-0/+554