how to get the timestamp using jiffies or clock_getitme ?
this is the code I want to modify in /linuxversion/net/core/dev.c
int netif_rx(struct sk_buff *skb)
{
//this is the api on network device driver level.
//want to get the timestamp here
//later I want to send it to procfs
}
I am calculating a timestamp here. because whenever kernel receive the data then the kernel is interrupted and start executing the newly arrived task but I have to read the time when the interrupt occurs and get the value of it. but how to copy this value to procfs driver ?? how to calculate the timestamp for netif_rx function ??
|