3550 Commits

Author SHA1 Message Date
Rainer Gerhards
60309004df completed better modularity of runtime
- added the ability to specify an error log function for the
  runtime
- removed dependency of core runtime on dirty.h

Note that it is "better" modularity, not perfect. There is still
work to do, but I think we can for the time being proceed with
other things.
2008-04-17 12:46:57 +02:00
Rainer Gerhards
e5130affc0 moved "glblModPath" variable inside global data pool
(but still as a variable, not part of glbl object)
2008-04-17 11:17:15 +02:00
Rainer Gerhards
0edc7976ae added forgotten file 2008-04-17 11:02:14 +02:00
Rainer Gerhards
43a282dd96 declared glbl class to be abstract (saves some housekeeping) 2008-04-17 11:00:51 +02:00
Rainer Gerhards
e1791996b8 moved host/domain-name related variables to global data pool 2008-04-17 10:58:30 +02:00
Rainer Gerhards
4824e56aed moved "DisableDNS" variable to global data pool 2008-04-17 10:11:29 +02:00
Rainer Gerhards
911101ed26 moved "option_DisallowWarning" variable to global data pool 2008-04-17 09:54:10 +02:00
Rainer Gerhards
e16a207726 moved "bDropMalPTRMsgs" variable to global data pool 2008-04-17 09:40:41 +02:00
Rainer Gerhards
8c65706d22 moved "family" variable to global data pool 2008-04-17 09:25:03 +02:00
Rainer Gerhards
87c936ab65 modularization work
cleanup + created an abstract class for global data
items and moved glblGetWorkDir to it
2008-04-17 09:07:12 +02:00
Rainer Gerhards
bf3e0d4f22 prevented segfault during runtime library init phase 2008-04-16 18:01:26 +02:00
Rainer Gerhards
d071de5784 removed no longer needed things
... and some more cleanup. Also moved a file that I forgot
(thanks to Michael Biebl for pointing that out).
2008-04-16 15:45:13 +02:00
Rainer Gerhards
d9b0c77d3e some more cleanup
reduced dependencies, moved non-runtime files to its own directory except
for some whom's status is unclear
2008-04-16 15:27:53 +02:00
Rainer Gerhards
91661455eb provided ability to initialize the runtime 2008-04-16 12:48:20 +02:00
Rainer Gerhards
71dea8c86f cleanup: removed no longer needed files 2008-04-16 11:45:34 +02:00
Rainer Gerhards
75f3cb34e6 moved net module to runtime
after careful analysis, I concluded that it is OK to
place the current net.c/.h code under LGPL. Individual
contributor agreement is given and no sysklogd code
remains (see net.c for details).
2008-04-16 11:36:22 +02:00
Rainer Gerhards
8f8f65abb6 moved files to the runtime
there are still some files left which could go into the
runtime, but I think we will delete most of them once we
are done with the full modularization.
2008-04-16 10:26:54 +02:00
Rainer Gerhards
3af28bbd2d moved runtime files into their own directory 2008-04-16 08:56:48 +02:00
Rainer Gerhards
4226f0dd48 begin building runtime convenience library (does not build!) 2008-04-15 16:28:44 +02:00
Rainer Gerhards
31344728fe bufgix: $PreserveFQDN was not properly handled for locally emitted messages 2008-12-20 12:56:41 +01:00
Rainer Gerhards
a10bc421ff resolved compile problem, e.g. on FreeBSD
I commented out some debug code that is only useful in some
testing scenarios and re-enabled the old code. This solved a FreeBSD
compile issue. Also, I fixed some other syntax error, which somehow
went into the tree (I am still puzzled about that, especially as some
have already and successfully build from that tree... anyhow ;)).
2008-12-08 19:55:27 +01:00
Rainer Gerhards
60b8ce14bf added $PreserveFQDN config file directive
Enables to use FQDNs in sender names where the legacy default
2008-12-08 15:42:47 +01:00
Rainer Gerhards
3e1220f434 fixed some compiler warnings 2008-12-05 01:10:06 +01:00
Rainer Gerhards
e02b553e1f Merge branch 'beta'
Conflicts:
	ChangeLog
	configure.ac
	doc/manual.html
	doc/rsyslog_conf.html
	plugins/imudp/imudp.c
	runtime/rsyslog.h
2008-12-04 12:59:37 +01:00
Rainer Gerhards
c5bfd2b24c some cleanup (forgotten...) 2008-12-03 10:46:27 +01:00
Rainer Gerhards
6b905b511b bugfix: code did not compile without zlib 2008-12-03 10:45:11 +01:00
Rainer Gerhards
afd425232f enhanced legacy syslog parser to detect year if part of the timestamp
The format is based on what Cisco devices seem to emit.
2008-11-18 13:46:38 +01:00
Rainer Gerhards
599133164d Merge branch 'beta'
Conflicts:

	ChangeLog
	configure.ac
	doc/manual.html
	doc/property_replacer.html
2008-11-18 12:05:51 +01:00
Rainer Gerhards
6334d335d8 added configuration directive "HUPisRestart"
...which enables to configure HUP to be either a full restart
or "just" a leightweight way to close open files
2008-10-23 14:46:47 +02:00
Rainer Gerhards
cf38fc8175 added a setting "$OptimizeForUniprocessor"
...to enable users to turn off pthread_yield calls which are
counter-productive on multiprocessor machines (but have been
shown to be useful on uniprocessors)
2008-10-22 13:54:40 +02:00
Rainer Gerhards
b6f496f861 Merge branch 'master' into nextmaster
Conflicts:

	ChangeLog
	configure.ac
2008-10-22 11:07:21 +02:00
Rainer Gerhards
a27e249e44 bugfix: (potentially big) memory leak on HUP
This occured if queues could not be drained before timeout.
Thanks to David Lang for pointing this out.
2008-10-21 10:55:33 +02:00
Rainer Gerhards
6c6e9a0f3f moved bParseHostname and bIsParsed to msgFlags
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.
2008-10-09 13:45:56 +02:00
Rainer Gerhards
2ff697fe8d Merge branch 'master' into perf 2008-10-09 13:00:50 +02:00
Rainer Gerhards
1229143ca3 minor: reorder to slightly reduce size of critical section 2008-10-09 12:56:28 +02:00
Rainer Gerhards
af3c944563 added experimental pthread_yield()
which so far seems to increase performance. There is also
reason for it to do so, see http://kb.monitorware.com/post14216.html#p14216
2008-10-09 11:21:24 +02:00
Rainer Gerhards
39f2afc8b8 bumped interface version number to reflect change to message parsing 2008-10-09 09:16:31 +02:00
Rainer Gerhards
5742f9cdd0 fixing segfault caused by all inputs but imudp 2008-10-09 07:48:22 +02:00
Rainer Gerhards
ace4f2f752 reordered imudp processing.
Message parsing is now done as part of main message queue worker
processing (was part of the input thread) This should also improve
performance, as potentially more work is done in parallel.
2008-10-08 18:55:11 +02:00
Rainer Gerhards
82b583c4f9 restructured imudp receive loop
cleaned up previous code and redid it in a way that makes
it much easier to extend it

also added a new macro DBGPRINTF which is a performance-optimzed
version of dbgprintf
2008-10-08 14:56:02 +02:00
Rainer Gerhards
0fa2399466 cleanup of output timestamp generation 2008-10-07 15:10:03 +02:00
Rainer Gerhards
8528344ef5 "output" timestamp now taken from mesg's time generated
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.
2008-10-07 14:26:41 +02:00
Rainer Gerhards
cdecd7e524 slightly improved lock contention situation by moving out of
the critical section what could so with acceptable consequences
2008-10-07 11:46:46 +02:00
Rainer Gerhards
65f74a712b added $UDPServerTimeRequery option
...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)
2008-10-06 14:25:23 +02:00
Rainer Gerhards
b849df2004 Merge branch 'master' into perf
Conflicts:

	ChangeLog
2008-10-06 12:07:53 +02:00
Rainer Gerhards
732761063d Merge branch 'helgrind' into perf 2008-10-02 11:01:18 +02:00
Rainer Gerhards
16970aad2e Merge branch 'helgrind' into perf 2008-09-26 18:40:39 +02:00
Rainer Gerhards
96f312f94f Merge branch 'helgrind' into perf
Conflicts:

	runtime/debug.c
2008-09-26 16:22:15 +02:00
Rainer Gerhards
9d8bb5629b Merge branch 'helgrind' into perf
Conflicts:

	ChangeLog
2008-09-18 12:45:44 +02:00
Rainer Gerhards
7b63cd6fed minor things, mostly improved debug info 2008-09-18 12:44:00 +02:00