summaryrefslogtreecommitdiffstats
path: root/tcpsrv.h
diff options
context:
space:
mode:
authorRainer Gerhards <rgerhards@adiscon.com>2011-12-20 18:19:14 +0100
committerRainer Gerhards <rgerhards@adiscon.com>2011-12-20 18:19:14 +0100
commit832d6e1e2c88455be6bb0929591715499602ad56 (patch)
tree0849bc75fc199fd0d4dc7b118cbdcdddabe530db /tcpsrv.h
parent8d2f6675c47c0b7b6d7c644004507d0a85a90cb4 (diff)
downloadrsyslog-832d6e1e2c88455be6bb0929591715499602ad56.tar.gz
rsyslog-832d6e1e2c88455be6bb0929591715499602ad56.tar.xz
rsyslog-832d6e1e2c88455be6bb0929591715499602ad56.zip
imtcp: added stats counters
also adds counters to other users of tcpsrv.c method, but these do not work if default submit method is overwritten (currently only the case for imdiag, what we don't consider a problem)
Diffstat (limited to 'tcpsrv.h')
-rw-r--r--tcpsrv.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/tcpsrv.h b/tcpsrv.h
index 57bdf4b1..6dc79897 100644
--- a/tcpsrv.h
+++ b/tcpsrv.h
@@ -25,6 +25,7 @@
#include "obj.h"
#include "prop.h"
#include "tcps_sess.h"
+#include "statsobj.h"
/* support for framing anomalies */
typedef enum ETCPsyslogFramingAnomaly {
@@ -40,6 +41,8 @@ struct tcpLstnPortList_s {
prop_t *pInputName;
tcpsrv_t *pSrv; /**< pointer to higher-level server instance */
ruleset_t *pRuleset; /**< associated ruleset */
+ statsobj_t *stats; /**< associated stats object */
+ STATSCOUNTER_DEF(ctrSubmit, mutCtrSubmit)
tcpLstnPortList_t *pNext; /**< next port or NULL */
};