summaryrefslogtreecommitdiffstats
path: root/action.h
diff options
context:
space:
mode:
authorRainer Gerhards <rgerhards@adiscon.com>2011-12-19 11:16:07 +0100
committerRainer Gerhards <rgerhards@adiscon.com>2011-12-19 11:16:07 +0100
commit5fe837bf7dbdcc245ee233feb1fbcc6d052a4898 (patch)
tree206148b35803ac791559f08926d236a2e95f47af /action.h
parentdb137ef8c1b3f8b24ccf9b3b4bfed4fdf493916a (diff)
downloadrsyslog-5fe837bf7dbdcc245ee233feb1fbcc6d052a4898.tar.gz
rsyslog-5fe837bf7dbdcc245ee233feb1fbcc6d052a4898.tar.xz
rsyslog-5fe837bf7dbdcc245ee233feb1fbcc6d052a4898.zip
added instrumentation
Diffstat (limited to 'action.h')
-rw-r--r--action.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/action.h b/action.h
index bae64d31..310ef114 100644
--- a/action.h
+++ b/action.h
@@ -89,6 +89,9 @@ struct action_s {
pthread_mutex_t mutActExec; /* mutex to guard actual execution of doAction for single-threaded modules */
uchar *pszName; /* action name (for documentation) */
DEF_ATOMIC_HELPER_MUT(mutCAS);
+ /* for statistics subsystem */
+ statsobj_t *statsobj;
+ STATSCOUNTER_DEF(ctrProcessed, mutCtrProcessed);
};