"vscode:/vscode.git/clone" did not exist on "ec7fbf0d5858cf765f33e0c015dfa8ad56e3aa13"
Commit 2ca4e962 authored by Hejing Li's avatar Hejing Li
Browse files

net_switch: debug prints add more info

parent ac747b45
......@@ -289,6 +289,16 @@ static void sigint_handler(int dummy) {
static void sigusr1_handler(int dummy) {
fprintf(stderr, "main_time = %lu\n", cur_ts);
size_t n = ports.size();
for (size_t i = 0; i < n; i++) {
NetPort *p = ports[i];
uint64_t in_timestamp = p->netif_.base.in_timestamp;
uint64_t out_timestamp = p->netif_.base.out_timestamp;
fprintf(stderr, "[ ports %lu ]: in_timestamp == %lu\n", i, in_timestamp);
fprintf(stderr, "[ ports %lu ]: out_timestamp == %lu\n", i, out_timestamp);
}
}
#ifdef NETSWITCH_STAT
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment