summaryrefslogtreecommitdiffstats
path: root/plugins/imklog/bsd.c
Commit message (Collapse)AuthorAgeFilesLines
* bugfix: imklog issued wrong facility in error messagesRainer Gerhards2013-01-151-1/+1
| | | | ...what could lead to problems in other parts of the code
* Merge branch 'v7-stable'Rainer Gerhards2012-11-221-12/+15
|\ | | | | | | | | | | | | | | | | | | Conflicts: configure.ac doc/manual.html plugins/imfile/imfile.c plugins/imklog/bsd.c plugins/imklog/imklog.c plugins/imklog/imklog.h
| * Merge branch 'v5-stable' into v6-stableRainer Gerhards2012-11-221-22/+27
| |\ | | | | | | | | | | | | | | | | | | | | | | | | | | | Note: this was not a simple merge, I rather needed to adopt the v5 code to the new v6 config handling. However, no v6 config format has been added yet (this is the next step). Conflicts: plugins/imklog/imklog.c plugins/imklog/imklog.h
| | * bugfix: imklog mistakenly took kernel timestamp subseconds as nanosecondsRainer Gerhards2012-11-221-12/+12
| | | | | | | | | | | | | | | | | | ... actually, they are microseconds. So the fractional part of the timestamp was not properly formatted. Thanks to Marius Tomaschwesky for the bug report and the patch idea.
| | * imklog: added $klogParseKernelTimestamp optionMarius Tomaschewski2012-11-211-0/+3
| | | | | | | | | | | | | | | | | | | | | | | | When enabled, kernel message [timestamp] is converted for message time. Default is to use receive time as in 5.8.x and before, because the clock used to create the timestamp is not supposed to be as accurate as the monotonic clock (depends on hardware and kernel) resulting in differences between kernel and system messages which occurred at same time.
| | * imklog: added $klogKeepKernelTimestamp optionMarius Tomaschewski2012-11-211-2/+4
| | | | | | | | | | | | | | | When enabled, the kernel [timestamp] remains at begin of each message, even it is used for the message time too.
* | | imklog: add paramter "keepkerneltimestamp"Rainer Gerhards2012-10-171-13/+12
|/ / | | | | | | | | Thanks to Marius Tomaschweski for the suggestion and a patch (for v5) that this commit bases on.
* | Merge branch 'v5-stable' into v6-stableRainer Gerhards2012-10-171-2/+4
|\| | | | | | | | | | | | | Conflicts: ChangeLog configure.ac doc/manual.html
| * imklog: use memmove to remove kernel timestampMarius Tomaschewski2012-10-171-1/+1
| |
| * imklog: skip leading spaces in kernel timestampMarius Tomaschewski2012-10-171-1/+3
| |
* | Merge branch 'v5-devel' & fix bug in BSD imklog driverRainer Gerhards2012-01-231-85/+171
|\| | | | | | | | | | | Conflicts: plugins/imklog/ksym.c plugins/imklog/linux.c
| * refactored imklog linux driver, now combined with BSD driverRainer Gerhards2012-01-231-79/+165
|/ | | | | | | The Linux driver no longer supports outdated kernel symbol resolution, which was disabled by default for very long. Also overall cleanup, resulting in much smaller code. Linux and BSD are now covered by a single small driver.
* added support for obtaining timestamp for kernel message from messageRainer Gerhards2011-06-241-3/+3
| | | | | | | If the kernel time-stamps messages, time is now take from that timestamp instead of the system time when the message was read. This provides much better accuracy. Thanks to Lennart Poettering for suggesting this feature and his help during implementation.
* Merge branch 'v4-stable' into v5-stableRainer Gerhards2010-10-191-3/+3
|\ | | | | | | | | | | | | | | Conflicts: configure.ac runtime/cfsysline.c tools/ompipe.c
| * fixing some compile problems on FreeBSDRainer Gerhards2010-10-191-3/+3
| |
* | enhanced test environment (including testbench)Rainer Gerhards2009-10-221-1/+2
|/ | | | | | | | support for enhancing probability of memory addressing failure by using non-NULL default value for malloced memory (optional, only if requested by configure option). This helps to track down some otherwise undetected issues within the testbench and is expected to be very useful in the future.
* add support for KLogPathMichael Terry2009-06-291-2/+7
|
* bugfix: imklog did not compile on freeBSDRainer Gerhards2008-11-241-3/+3
|
* removed compile time fixed message size limit (was 2K)Rainer Gerhards2008-09-021-8/+29
| | | | | The limit can now be set via $MaxMessageSize global config directive (finally gotten rid of MAXLINE ;))
* fix compiler warning on char/ucharRainer Gerhards2008-04-141-3/+3
|
* cleanup of imklog + addtl. config directivesRainer Gerhards2008-04-141-4/+14
| | | | | | - implemented $KLogInternalMsgFacility config directive - implemented $KLogPermitNonKernelFacility config directive - modified internal interfaces
* provided ability to discard non-kernel messages present in the kernel msg bufferRainer Gerhards2008-04-141-1/+1
| | | | | | | This obviously happens on BSD (<118> markers seen). We now have the ability to allow or prevent it, with the default being not permitted. Should not at all affect other drivers, but it is implemented on a common code basis, not on the driver layer.
* Add missing includeMichael Biebl2008-04-101-0/+1
| | | | | | bsd.c uses strchr, strlen and memmove, so include string.h Signed-off-by: Rainer Gerhards <rgerhards@adiscon.com>
* implemented klog driver for BSDRainer Gerhards2008-04-091-44/+63
|
* pulled FreeBSD's klog functionality as a baseRainer Gerhards2008-04-091-0/+151