Commit ac747b45 authored by Hejing Li's avatar Hejing Li
Browse files

nicbm: debug prints add more info

parent e136ad62
......@@ -70,13 +70,23 @@ static uint64_t s_n2d_poll_sync = 0;
static int stat_flag = 0;
#endif
void Runner::PrintBaseIfInfo() {
fprintf(stderr, "net_in_timestamp = %lu\n", nicif_.net.base.in_timestamp);
fprintf(stderr, "net_out_timestamp = %lu\n", nicif_.net.base.out_timestamp);
fprintf(stderr, "pci_in_timestamp = %lu\n", nicif_.pcie.base.in_timestamp);
fprintf(stderr, "pci_out_timestamp = %lu\n", nicif_.pcie.base.out_timestamp);
}
static void sigint_handler(int dummy) {
exiting = 1;
}
static void sigusr1_handler(int dummy) {
for (Runner *r: runners)
for (Runner *r: runners){
fprintf(stderr, "[%p] main_time = %lu\n", r, r->TimePs());
r->PrintBaseIfInfo();
}
}
#ifdef STAT_NICBM
......
......@@ -179,6 +179,11 @@ class Runner {
uint64_t TimePs() const;
uint64_t GetMacAddr() const;
/**
* Print baseif info
*
*/
void PrintBaseIfInfo(void);
};
/**
......
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