PACKET_PROFILING_APP_START(app_tctx, f->alproto);
int r = AppLayerParserParse(tv, app_tctx->alp_tctx, f, f->alproto,
flags, data, data_len);
- PACKET_PROFILING_APP_END(app_tctx, f->alproto);
+ PACKET_PROFILING_APP_END(app_tctx);
p->app_update_direction = (uint8_t)app_update_dir;
if (r != 1) {
StreamTcpUpdateAppLayerProgress(ssn, direction, data_len);
int r = AppLayerParserParse(tv, app_tctx->alp_tctx, f,
f->alproto, flags,
data, data_len);
- PACKET_PROFILING_APP_END(app_tctx, f->alproto);
+ PACKET_PROFILING_APP_END(app_tctx);
p->app_update_direction = (uint8_t)app_update_dir;
if (r != 1) {
StreamTcpUpdateAppLayerProgress(ssn, direction, data_len);
PACKET_PROFILING_APP_START(app_tctx, f->alproto);
r = AppLayerParserParse(tv, app_tctx->alp_tctx, f, f->alproto,
flags, data, data_len);
- PACKET_PROFILING_APP_END(app_tctx, f->alproto);
+ PACKET_PROFILING_APP_END(app_tctx);
p->app_update_direction = (uint8_t)app_update_dir;
/* ignore parser result for gap */
StreamTcpUpdateAppLayerProgress(ssn, direction, data_len);
PACKET_PROFILING_APP_START(app_tctx, f->alproto);
r = AppLayerParserParse(tv, app_tctx->alp_tctx, f, f->alproto,
flags, data, data_len);
- PACKET_PROFILING_APP_END(app_tctx, f->alproto);
+ PACKET_PROFILING_APP_END(app_tctx);
p->app_update_direction = (uint8_t)app_update_dir;
if (r != 1) {
StreamTcpUpdateAppLayerProgress(ssn, direction, data_len);
PACKET_PROFILING_APP_START(tctx, f->alproto);
r = AppLayerParserParse(tv, tctx->alp_tctx, f, f->alproto,
flags, p->payload, p->payload_len);
- PACKET_PROFILING_APP_END(tctx, f->alproto);
+ PACKET_PROFILING_APP_END(tctx);
p->app_update_direction = (uint8_t)UPDATE_DIR_PACKET;
}
PACKET_PROFILING_APP_STORE(tctx, p);
PACKET_PROFILING_APP_START(tctx, f->alproto);
r = AppLayerParserParse(tv, tctx->alp_tctx, f, f->alproto,
flags, p->payload, p->payload_len);
- PACKET_PROFILING_APP_END(tctx, f->alproto);
+ PACKET_PROFILING_APP_END(tctx);
PACKET_PROFILING_APP_STORE(tctx, p);
p->app_update_direction = (uint8_t)UPDATE_DIR_PACKET;
}
(dp)->alproto = (id); \
}
-#define PACKET_PROFILING_APP_END(dp, id) \
- if (profiling_packets_enabled) { \
- BUG_ON((id) != (dp)->alproto); \
- (dp)->ticks_end = UtilCpuGetTicks(); \
- if ((dp)->ticks_start != 0 && (dp)->ticks_start < ((dp)->ticks_end)) { \
- (dp)->ticks_spent = ((dp)->ticks_end - (dp)->ticks_start); \
- } \
+#define PACKET_PROFILING_APP_END(dp) \
+ if (profiling_packets_enabled) { \
+ (dp)->ticks_end = UtilCpuGetTicks(); \
+ if ((dp)->ticks_start != 0 && (dp)->ticks_start < ((dp)->ticks_end)) { \
+ (dp)->ticks_spent = ((dp)->ticks_end - (dp)->ticks_start); \
+ } \
}
#define PACKET_PROFILING_APP_PD_START(dp) \
#define PACKET_PROFILING_RESET(p)
#define PACKET_PROFILING_APP_START(dp, id)
-#define PACKET_PROFILING_APP_END(dp, id)
+#define PACKET_PROFILING_APP_END(d)
#define PACKET_PROFILING_APP_RESET(dp)
#define PACKET_PROFILING_APP_STORE(dp, p)