summaryrefslogtreecommitdiffstats
path: root/runtime/msg.c
Commit message (Collapse)AuthorAgeFilesLines
...
| | * | Merge branch 'beta'Rainer Gerhards2009-04-091-0/+2
| | |\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Conflicts: ChangeLog tcpsrv.c tcpsrv.h Note: we have a slight inconsistency, as interface version v4 was already used for tcpsrv in this branch. We accept this inconsistency.
| | | * Merge branch 'v3-stable' into betaRainer Gerhards2009-04-091-0/+2
| | | |\ | | | | | | | | | | | | | | | | | | | | Conflicts: ChangeLog
| | | | * Merge branch 'v2-stable' into v3-stableRainer Gerhards2009-04-091-0/+2
| | | | |
* | | | | optimized TAG handlingRainer Gerhards2009-06-231-52/+35
| | | | |
* | | | | optimized hostname processingRainer Gerhards2009-06-231-5/+5
| | | | |
* | | | | restored repeated message reduction processingRainer Gerhards2009-06-231-16/+54
| | | | |
* | | | | some more optimizationsRainer Gerhards2009-06-231-4/+47
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | - done malloc() instead of calloc() for msg_t, as we have large space which needs not be initialized - shrunk syslogTime structure in the hope to get better cache and write performance (non-aligned data should not hurt much here)
* | | | | optimized processing of TAG message fieldRainer Gerhards2009-06-221-21/+6
| | | | |
* | | | | some more optimizations of the msg_t object (minor)Rainer Gerhards2009-06-221-20/+17
| | | | |
* | | | | reduced memory footprint / "memory leak"Rainer Gerhards2009-06-221-0/+18
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Testing has shown that at least the glibc malloc() subsystem returns memory to the OS far too late in our case. So we need to help it a bit, by calling malloc_trim(), which will tell the alloc subsystem to consolidate and return to the OS.
* | | | | fixed abort condition with oversize tagsRainer Gerhards2009-06-181-22/+11
| | | | | | | | | | | | | | | | | | | | this was a regression I introduced this afternoon
* | | | | optimized handling of MSG part in msg objectRainer Gerhards2009-06-181-9/+21
| | | | | | | | | | | | | | | | | | | | | | | | | WARNING: currently, message repeation processing is disabled, must be reenabled (but prefer to do some other tests first)
* | | | | slight optimization of template generationRainer Gerhards2009-06-181-2/+8
| | | | |
* | | | | some optimization in the property replacerRainer Gerhards2009-06-181-40/+48
| | | | |
* | | | | optimized TAG handling in msg objectRainer Gerhards2009-06-181-45/+72
| | | | |
* | | | | cleaned up/optimized raw message handling in msg objectRainer Gerhards2009-06-181-11/+32
| | | | |
* | | | | going forward in moving string-handling functions to new interface...Rainer Gerhards2009-06-171-10/+10
| | | | |
* | | | | some more optimization in msg object string handlingRainer Gerhards2009-06-171-44/+26
| | | | |
* | | | | further optimized message objectRainer Gerhards2009-06-171-115/+230
| | | | | | | | | | | | | | | | | | | | pri, facility and severity string generation simplified
* | | | | Merge branch 'master' into omfileRainer Gerhards2009-06-161-99/+71
|\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Conflicts: ChangeLog runtime/msg.h tcps_sess.c tcpsrv.c tools/syslogd.c
| * | | | removed long-obsoleted property UxTradMsgRainer Gerhards2009-06-161-50/+50
| | | | | | | | | | | | | | | | | | | | | | | | | ... as well as some cleanup (some commented-out code is left to support UxTradMsg again is someone really complains ;)).
| * | | | done various optimizations to the stringbuf and its usersRainer Gerhards2009-06-161-24/+6
| | | | |
| * | | | some performance optimizationsRainer Gerhards2009-06-161-34/+23
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | - saved gettimeofday() calls in imtcp (and increased reception buffer) - somewhat optimized stringbuf.c - some other optimizations
* | | | | completed multi-ruleset core supportRainer Gerhards2009-06-121-2/+11
|/ / / / | | | | | | | | | | | | ... as well as added multi-ruleset support for imtcp
* | | | added capability to run multiple tcp listeners (on different ports)Rainer Gerhards2009-05-221-64/+40
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Well, actually this and a lot of related things. I improved the testbench so that the new capabilities are automatically tested and also did some general cleanup. The current multiple tcp listener solution will probably receive some further cleanup, too, but looks quite OK so far. I also reviewed the way tcpsrv et all work, in preparation of using this code for imdiag. I need to document the findings, especially as the code is rather complicated "thanks" to the combination of plain tcp and gssapi transport modes.
* | | | bugfix: solved potential memory leak in msg processingRainer Gerhards2009-04-081-1/+3
|/ / / | | | | | | | | | | | | could manifest itself in imtcp (loss of a few bytes for *each* received message - but depended on config) -- this was newly introduced
* | | added new "csv" property replacer optionRainer Gerhards2009-04-021-0/+34
| | | | | | | | | | | | | | | to enable simple creation of CSV-formatted outputs (format from RFC4180 is used)
* | | Merge branch 'beta'Rainer Gerhards2009-01-301-0/+2
|\| |
| * | Merge branch 'v3-stable' into beta, conclude fix for raceRainer Gerhards2009-01-301-2/+5
| |\| | | | | | | | | | | | | | | | Conflicts: ChangeLog runtime/msg.c
| | * Merge branch 'debian_lenny' into v3-stableRainer Gerhards2009-01-301-12/+7
| | |
| | * bugfix: invalid mutex access in msg.cRainer Gerhards2009-01-301-2/+5
| | |
| * | bugfix: inconsistent use of mutex/atomic operations could cause segfaultRainer Gerhards2009-01-301-6/+7
| | | | | | | | | | | | | | | details are too many, for full analysis see blog post at: http://blog.gerhards.net/2009/01/rsyslog-data-race-analysis.html
* | | Merge branch 'drd-testing'Rainer Gerhards2009-01-291-2/+7
|\ \ \
| * | | bugfix: unitialized mutex was used in msg.c:getPRIRainer Gerhards2009-01-261-2/+7
| | | | | | | | | | | | | | | | | | | | This was subtle, because getPRI is called as part of the debugging code (always executed) in syslogd.c:logmsg.
* | | | fixed atomic operationsRainer Gerhards2009-01-291-6/+5
|/ / /
* | | Merge branch 'beta'Rainer Gerhards2008-11-181-1/+9
|\| | | | | | | | | | | | | | | | | | | | | | | | | | Conflicts: ChangeLog configure.ac doc/manual.html doc/property_replacer.html
| * | Merge branch 'v3-stable' into betaRainer Gerhards2008-11-111-1/+9
| |\| | | | | | | | | | | | | | | | | | | Conflicts: ChangeLog doc/manual.html
| | * enhance: regex nomatch option "ZERO" has been addedRainer Gerhards2008-11-111-0/+2
| | | | | | | | | | | | | | | | | | This allows to return the string 0 if a regular expression is not found. This is probably useful for storing numerical values into database columns.
| | * improved debug output for regular expressions inside property replacerRainer Gerhards2008-11-111-1/+7
| | | | | | | | | | | | | | | | | | RE's seem to be a big trouble spot and I would like to have more information inside the debug log. So I decided to add some additional debug strings permanently.
* | | moved bParseHostname and bIsParsed to msgFlagsRainer Gerhards2008-10-091-1/+0
| | | | | | | | | | | | | | | | | | This enables us to use more efficient calling conventions and also helps us keep the on-disk structure of a msg object more consistent in future releases.
* | | fixing segfault caused by all inputs but imudpRainer Gerhards2008-10-091-0/+1
| | |
* | | cleanup of output timestamp generationRainer Gerhards2008-10-071-0/+4
| | |
* | | "output" timestamp now taken from mesg's time generatedRainer Gerhards2008-10-071-6/+9
| | | | | | | | | | | | | | | | | | | | | This enhances performance and, as some have pointed out, is probably also more consistent with what users expect how the various output-timestamp related function should work. This commit needs some more testing.
* | | added $UDPServerTimeRequery optionRainer Gerhards2008-10-061-14/+58
| | | | | | | | | | | | | | | | | | | | | ...which enables to work with less acurate timestamps in favor of performance. This enables querying of the time only every n-th time if imudp is running in the tight receive loop (aka receiving messsages at a high rate)
* | | Merge branch 'master' into perfRainer Gerhards2008-10-061-0/+9
|\| | | | | | | | | | | | | | | | | Conflicts: ChangeLog
| * | consolidated time calls during msg object creationRainer Gerhards2008-10-021-0/+9
| | | | | | | | | | | | | | | | | | ...this improves performance and consistency and also fixes a bug where subsecond time properties generated by imfile, imklog and internal messages could be slightly inconsistent.
* | | Merge branch 'helgrind' into perfRainer Gerhards2008-10-021-1/+1
|\| |
| * | bugfix: segfault when main queue was in direct modeRainer Gerhards2008-10-011-1/+1
| | |
* | | Merge branch 'helgrind' into perfRainer Gerhards2008-09-261-5/+9
|\| | | | | | | | | | | | | | | | | Conflicts: runtime/debug.c
| * | atomic memory access calls re-enabled in msg.cRainer Gerhards2008-09-231-5/+5
| | | | | | | | | | | | | | | | | | destructor not yet permitted because verification is missing that a atomic opration is sufficient for the job required