Bug #343 » 0001-update-broken-stats.log.-Use-pktacqloop-funcs-in-pca.patch
| src/counters.c | ||
|---|---|---|
|
tv = tv_root[TVT_PPT];
|
||
|
while (tv != NULL) {
|
||
|
if (tv->inq == NULL || tv->sc_perf_pctx.head == NULL) {
|
||
|
if (tv->sc_perf_pctx.head == NULL) {
|
||
|
tv = tv->next;
|
||
|
continue;
|
||
|
}
|
||
|
q = &trans_q[tv->inq->id];
|
||
|
/* assuming the assignment of an int to be atomic, and even if it's
|
||
|
* not, it should be okay */
|
||
|
tv->sc_perf_pctx.perf_flag = 1;
|
||
|
SCCondSignal(&q->cond_q);
|
||
|
if (tv->inq != NULL) {
|
||
|
q = &trans_q[tv->inq->id];
|
||
|
SCCondSignal(&q->cond_q);
|
||
|
}
|
||
|
tv = tv->next;
|
||
|
}
|
||
| src/source-af-packet.c | ||
|---|---|---|
|
ptv->afp_state = AFP_STATE_DOWN;
|
||
|
continue;
|
||
|
}
|
||
|
if (tv->sc_perf_pctx.perf_flag == 1) {
|
||
|
SCPerfUpdateCounterArray(tv->sc_perf_pca, &tv->sc_perf_pctx, 0);
|
||
|
}
|
||
|
}
|
||
|
if (suricata_ctl_flags & SURICATA_STOP ||
|
||
| src/source-pcap-file.c | ||
|---|---|---|
|
EngineStop();
|
||
|
break;
|
||
|
}
|
||
|
if (tv->sc_perf_pctx.perf_flag == 1) {
|
||
|
SCPerfUpdateCounterArray(tv->sc_perf_pca, &tv->sc_perf_pctx, 0);
|
||
|
}
|
||
|
}
|
||
|
SCReturnInt(TM_ECODE_OK);
|
||
| src/source-pcap.c | ||
|---|---|---|
|
break;
|
||
|
}
|
||
|
}
|
||
|
if (tv->sc_perf_pctx.perf_flag == 1) {
|
||
|
SCPerfUpdateCounterArray(tv->sc_perf_pca, &tv->sc_perf_pctx, 0);
|
||
|
}
|
||
|
}
|
||
|
SCReturnInt(TM_ECODE_OK);
|
||
| src/source-pfring.c | ||
|---|---|---|
|
TmqhOutputPacketpool(ptv->tv, p);
|
||
|
return TM_ECODE_FAILED;
|
||
|
}
|
||
|
if (tv->sc_perf_pctx.perf_flag == 1) {
|
||
|
SCPerfUpdateCounterArray(tv->sc_perf_pca, &tv->sc_perf_pctx, 0);
|
||
|
}
|
||
|
}
|
||
|
return TM_ECODE_OK;
|
||