From 5fe837bf7dbdcc245ee233feb1fbcc6d052a4898 Mon Sep 17 00:00:00 2001 From: Rainer Gerhards Date: Mon, 19 Dec 2011 11:16:07 +0100 Subject: added instrumentation --- action.h | 3 +++ 1 file changed, 3 insertions(+) (limited to 'action.h') 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); }; -- cgit From 7837c523b8da7ac90c6efbb3de12855978ecaecf Mon Sep 17 00:00:00 2001 From: Rainer Gerhards Date: Mon, 19 Dec 2011 12:34:19 +0100 Subject: additional counter for lost messages due to failed actions added --- action.h | 1 + 1 file changed, 1 insertion(+) (limited to 'action.h') diff --git a/action.h b/action.h index 310ef114..7a283a4a 100644 --- a/action.h +++ b/action.h @@ -92,6 +92,7 @@ struct action_s { /* for statistics subsystem */ statsobj_t *statsobj; STATSCOUNTER_DEF(ctrProcessed, mutCtrProcessed); + STATSCOUNTER_DEF(ctrFail, mutCtrFail); }; -- cgit