decoder-event: BUG_ON on table mismatches

Abort when the event enum and the name<>event table are not matching.
pull/2250/head
Victor Julien 9 years ago
parent bbbc5ab1fc
commit 00313b2140

@ -430,6 +430,7 @@ void DecodeRegisterPerfCounters(DecodeThreadVars *dtv, ThreadVars *tv)
int i = 0;
for (i = 0; i < DECODE_EVENT_PACKET_MAX; i++) {
BUG_ON(i != (int)DEvents[i].code);
dtv->counter_invalid_events[i] = StatsRegisterCounter(
DEvents[i].event_name, tv);
}

Loading…
Cancel
Save