session manager support output fieldstat

This commit is contained in:
luwenpeng
2024-10-30 17:00:20 +08:00
parent 03864c9731
commit d56cda3d9a
46 changed files with 3208 additions and 3141 deletions

View File

@@ -333,7 +333,7 @@ static void *pcap_io_thread(void *arg)
fclose(fp);
}
}
PCAP_IO_LOG_FATAL("pcap io thread read all pcap files");
PACKET_IO_LOG_FATAL("pcap io thread read all pcap files (files: %lu, pkts: %lu)", pcap_io->read_pcap_files, ATOMIC_READ(&pcap_io->read_pcap_pkts));
erro_out:
while (ATOMIC_READ(&pcap_io->io_thread_need_exit) == 0)
@@ -346,7 +346,7 @@ erro_out:
usleep(1000); // 1ms
}
PCAP_IO_LOG_FATAL("pcap io thread exit (read_pcap_files: %lu, read_pcap_pkts: %lu)", pcap_io->read_pcap_files, ATOMIC_READ(&pcap_io->read_pcap_pkts));
PACKET_IO_LOG_FATAL("pcap io thread exit");
ATOMIC_SET(&pcap_io->io_thread_is_runing, 0);
return NULL;