我修改了 qnx 的 io-packet 并在 ip 层的 recieve.c 文件中计算时间戳。
代码:
uint64_t ipStart_time, IPLatency;
EXPORT_SYMBOL(IPLatency); //I am using this in Linux
void rtl_receive ()
{
ipStart_time = clock_cycles();
IPLatency = ipStart_time;
}
我想在我的用户程序中读取该时间戳:
所以我做了:代码:
extern uint64_t IPLatency;
但它显示error: undefined reference to IPLatency