From 8f27fab8340f39b070d2b6734e2f9005f12d61b9 Mon Sep 17 00:00:00 2001 From: Rainer Gerhards Date: Tue, 29 Oct 2013 16:52:56 +0100 Subject: add debug output for worker actions --- action.c | 1 + runtime/wti.c | 2 ++ tools/omfile.c | 1 - 3 files changed, 3 insertions(+), 1 deletion(-) diff --git a/action.c b/action.c index f9297a55..619d37b6 100644 --- a/action.c +++ b/action.c @@ -916,6 +916,7 @@ actionCallDoAction(action_t *pThis, msg_t *pMsg, void *actParams, wti_t *pWti) getActStateName(pThis), pThis->iActionNbr); if(pWti->actWrkrData[pThis->iActionNbr] == NULL) { +dbgprintf("DDDD: wti %p create new worker instance for action %d\n", pWti, pThis->iActionNbr); DBGPRINTF("we need to create a new action worker instance for " "action %d\n", pThis->iActionNbr); CHKiRet(pThis->pMod->mod.om.createWrkrInstance(&(pWti->actWrkrData[pThis->iActionNbr]), pThis->pModData)); diff --git a/runtime/wti.c b/runtime/wti.c index e9d3599d..545d5179 100644 --- a/runtime/wti.c +++ b/runtime/wti.c @@ -292,6 +292,7 @@ wtiWorker(wti_t *pThis) dbgSetThrdName(pThis->pszDbgHdr); pthread_cleanup_push(wtiWorkerCancelCleanup, pThis); pthread_setcancelstate(PTHREAD_CANCEL_DISABLE, &iCancelStateSave); +dbgprintf("DDDD: wti %p: worker starting\n", pThis); /* now we have our identity, on to real processing */ while(1) { /* loop will be broken below - need to do mutex locks */ @@ -341,6 +342,7 @@ wtiWorker(wti_t *pThis) /* indicate termination */ pthread_cleanup_pop(0); /* remove cleanup handler */ pthread_setcancelstate(iCancelStateSave, NULL); +dbgprintf("DDDD: wti %p: worker exiting\n", pThis); RETiRet; } diff --git a/tools/omfile.c b/tools/omfile.c index 4300bb4d..cecca07b 100644 --- a/tools/omfile.c +++ b/tools/omfile.c @@ -962,7 +962,6 @@ bufferLine(wrkrInstanceData_t *pWrkrData, uchar *filename, uchar *line) linebuf_t *lb; DEFiRet; - dbgprintf("DDDD: buffering root %p, line %s\n", pWrkrData->pRoot, line); CHKmalloc(lb = (linebuf_t*) malloc(sizeof(linebuf_t))); CHKmalloc(lb->filename = ustrdup(filename)); CHKmalloc(lb->ln = ustrdup(line)); -- cgit v1.2.3