LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software > Linux - Kernel
User Name
Password
Linux - Kernel This forum is for all discussion relating to the Linux kernel.

Notices


Reply
  Search this Thread
Old 04-21-2014, 05:16 AM   #1
hemanth1989
Member
 
Registered: Dec 2013
Posts: 39

Rep: Reputation: Disabled
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 ??
 
  


Reply

Tags
drivers, kernel, linux, linux client, timestamp



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
script to timestamp files with timestamp from directory eRJe Programming 4 11-13-2013 06:52 PM
need help with jiffies ravspratapsingh Linux - Kernel 1 09-05-2010 01:27 PM
What is user mode jiffies and kernel mode jiffies of a process iamjayanth Linux - Software 2 09-14-2009 11:35 PM
About jiffies? m1n Linux - Newbie 1 02-27-2009 09:23 AM
Jiffies Rawjoe Linux - Kernel 5 08-08-2006 07:42 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software > Linux - Kernel

All times are GMT -5. The time now is 09:43 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration