s_pkt_trace->active = false;
}
-void PacketTracer::pt_timer_start()
-{
- pt_timer->reset();
- pt_timer->start();
-}
-
// -----------------------------------------------------------------------------
// non-static functions
// -----------------------------------------------------------------------------
char test_str[] = "1234567890";
// instantiate a packet tracer
TestPacketTracer::thread_init();
- TestPacketTracer::pt_timer_start();
TestPacketTracer::set_daq_enable(true);
TestPacketTracer::daq_log("%s", test_str);
CHECK(!(strcmp(TestPacketTracer::get_daq_buff(), test_str)));
static SO_PUBLIC void log(TracerMute, const char* format, ...) __attribute__((format (printf, 2, 3)));
static SO_PUBLIC void daq_log(const char* format, ...) __attribute__((format (printf, 1, 2)));
- static SO_PUBLIC void pt_timer_start();
protected: