int i;
out[0] = (unsigned long *)pgsub->vala; /* nrOfMsgs */
- out[1] = (unsigned long *)pgsub->valb; /* bytesWritten */
- out[2] = (unsigned long *)pgsub->valc; /* evtsComplete */
- out[3] = (unsigned long *)pgsub->vald; /* evtsDiscarded */
- out[4] = (unsigned long *)pgsub->vale; /* evtsDataError */
- out[5] = (unsigned long *)pgsub->valf; /* evtsTagError */
- out[6] = (unsigned long *)pgsub->valg; /* evtbuildBuff */
+ out[1] = (unsigned long *)pgsub->valb; /* byteWrit = bytes written */
+ out[2] = (unsigned long *)pgsub->valc; /* evtComp = events completed */
+ out[3] = (unsigned long *)pgsub->vald; /* evtDisc = events discarded */
+ out[4] = (unsigned long *)pgsub->vale; /* evtDataErr = events w/ data error */
+ out[5] = (unsigned long *)pgsub->valf; /* evtTagErr = events w/ tag error */
+ out[6] = (unsigned long *)pgsub->valg; /* ebBuff = EB buffer */
out[7] = (unsigned long *)pgsub->valh; /* status */
- out[8] = (unsigned long *)pgsub->vali; /* evtsCompleteRate */
- out[9] = (unsigned long *)pgsub->valj; /* bytesWrittenRate */
- out[10] = (unsigned long *)pgsub->valk; /* evtsDiscardedRate */
+ out[8] = (unsigned long *)pgsub->vali; /* evtCRate = events completed rate */
+ out[9] = (unsigned long *)pgsub->valj; /* byteWRate = bytes written rate */
+ out[10] = (unsigned long *)pgsub->valk; /* evtDRate = events discarded rate */
/* pgsub->vall : bytesWrittenRate in stringin record (array of char's) */
for( i=0; i<11; i++ )
unsigned long *out[8];
int i;
- out[0] = (unsigned long *)pgsub->vala; /* number of sources */
- out[1] = (unsigned long *)pgsub->valb; /* daq_netmem buff fill levels */
- out[2] = (unsigned long *)pgsub->valc; /* pktsReceived */
- out[3] = (unsigned long *)pgsub->vald; /* msgsReceived */
- out[4] = (unsigned long *)pgsub->vale; /* pktsDiscarded */
- out[5] = (unsigned long *)pgsub->valf; /* msgsDiscarded */
- out[6] = (unsigned long *)pgsub->valg; /* bytesReceived */
- out[7] = (unsigned long *)pgsub->valh; /* bytesReceivedRate */
-
- for( i=0; i<2; i++ )
+ out[0] = (unsigned long *)pgsub->vala; /* nrOfMsgs */
+ out[1] = (unsigned long *)pgsub->valb; /* buff = netmem buffer*/
+ out[2] = (unsigned long *)pgsub->valc; /* pktsRcv = packets received */
+ out[3] = (unsigned long *)pgsub->vald; /* msgsRcv = messages received */
+ out[4] = (unsigned long *)pgsub->vale; /* pktsDis = packets discarded */
+ out[5] = (unsigned long *)pgsub->valf; /* msgsDis = messages discarded */
+ out[6] = (unsigned long *)pgsub->valg; /* bytercv = bytes received */
+ out[7] = (unsigned long *)pgsub->valh; /* byteRRate = bytes received rate */
+
+ for( i=0; i<8; i++ )
*out[1] = 0;
if( Worker_getStatistic( "daq_evtbuild", "nrOfMsgs", out[0] ) == -1) {
if(netmemDebug)
- printf("netmem.c: Worker_getStatistic failed for nrOfMsgs!\n");
+ printf("<E> netmem.c: Worker_getStatistic failed for nrOfMsgs!\n");
}
else {
if(netmemDebug)
- printf("netmem.c: Worker_getStatistic::nrOfMsgs = %lu\n", (*out[0]));
+ printf("<D> netmem.c: Worker_getStatistic::nrOfMsgs = %lu\n", (*out[0]));
}
char buf[100];
if( Worker_getStatistic( "daq_netmem", buf, out[1] ) == -1) {
if(netmemDebug)
- printf("netmem.c: Worker_getStatistic failed for %s!\n", buf);
+ printf("<E> netmem.c: Worker_getStatistic failed for %s!\n", buf);
}
else {
if(netmemDebug)
- printf("netmem.c: %s = %lu\n", buf, *out[1]);
+ printf("<D> netmem.c: %s = %lu\n", buf, *out[1]);
out[1]++;
}
if( Worker_getStatistic( "daq_netmem", buf, out[2] ) == -1) {
if(netmemDebug)
- printf("netmem.c: Worker_getStatistic failed for %s!\n", buf);
+ printf("<E> netmem.c: Worker_getStatistic failed for %s!\n", buf);
}
else {
if(netmemDebug)
- printf("netmem.c: %s = %lu\n", buf, *out[2]);
+ printf("<D> netmem.c: %s = %lu\n", buf, *out[2]);
out[2]++;
}
if( Worker_getStatistic( "daq_netmem", buf, out[3] ) == -1) {
if(netmemDebug)
- printf("netmem.c: Worker_getStatistic failed for %s!\n", buf);
+ printf("<E> netmem.c: Worker_getStatistic failed for %s!\n", buf);
}
else {
if(netmemDebug)
- printf("netmem.c: %s = %lu\n", buf, *out[3]);
+ printf("<D> netmem.c: %s = %lu\n", buf, *out[3]);
out[3]++;
}
if( Worker_getStatistic( "daq_netmem", buf, out[4] ) == -1) {
if(netmemDebug)
- printf("netmem.c: Worker_getStatistic failed for %s!\n", buf);
+ printf("<E> netmem.c: Worker_getStatistic failed for %s!\n", buf);
}
else {
if(netmemDebug)
- printf("netmem.c: %s = %lu\n", buf, *out[4]);
+ printf("<D> netmem.c: %s = %lu\n", buf, *out[4]);
out[4]++;
}
if( Worker_getStatistic( "daq_netmem", buf, out[5] ) == -1) {
if(netmemDebug)
- printf("netmem.c: Worker_getStatistic failed for %s!\n", buf);
+ printf("<E> netmem.c: Worker_getStatistic failed for %s!\n", buf);
}
else {
if(netmemDebug)
- printf("netmem.c: %s = %lu\n", buf, *out[5]);
+ printf("<D> netmem.c: %s = %lu\n", buf, *out[5]);
out[5]++;
}
if( Worker_getStatistic( "daq_netmem", buf, out[6] ) == -1) {
if(netmemDebug)
- printf("netmem.c: Worker_getStatistic failed for %s!\n", buf);
+ printf("<E> netmem.c: Worker_getStatistic failed for %s!\n", buf);
}
else {
if(netmemDebug)
- printf("netmem.c: %s = %lu\n", buf, *out[6]);
+ printf("<D> netmem.c: %s = %lu\n", buf, *out[6]);
*out[6] = (int)((*out[6])/1024/1024UL + 0.5); /* convert from Bytes to MB */
out[6]++;
if( Worker_getStatistic( "daq_netmem", buf, out[7] ) == -1) {
if(netmemDebug)
- printf("netmem.c: Worker_getStatistic failed for %s!\n", buf);
+ printf("<E> netmem.c: Worker_getStatistic failed for %s!\n", buf);
}
else {
if(netmemDebug)
- printf("netmem.c: %s = %lu\n", buf, *out[7]);
+ printf("<D> netmem.c: %s = %lu\n", buf, *out[7]);
*out[7] = (int)((*out[7])/1024UL + 0.5); /* convert from Bytes to kB */
out[7]++;