<div dir="ltr"><div><div>Hi all,<br><br>using <a href="http://man7.org/linux/man-pages/man2/clock_gettime.2.html" rel="nofollow"><code>clock_gettime</code></a><code>(CLOCK_MONOTONIC)</code>, the problem is solved.<br><br></div>Best Regards,<br></div>Manty<br></div><div class="gmail_extra"><br><div class="gmail_quote">On Mon, Dec 1, 2014 at 5:47 PM, manty kuma <span dir="ltr"><<a href="mailto:mantykuma@gmail.com" target="_blank">mantykuma@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div><div><div><div>Hi Vignesh,<br></div><br>Thank you for your answer. I have chosen ktime_get() as it is in sync with the times logged in kernel log.<br></div>Hence, doing it with ktime_get() will be my first choice.<br><br></div>Regards,<br></div>Manty<br></div><div class="HOEnZb"><div class="h5"><div class="gmail_extra"><br><div class="gmail_quote">On Mon, Dec 1, 2014 at 5:35 PM, Vignesh Radhakrishnan <span dir="ltr"><<a href="mailto:vignesh1192@gmail.com" target="_blank">vignesh1192@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">An alternative that you can consider would be to expose the desired time or value from your driver, using a sysfs entry so that they can be synced to what you are doing in the driver level and user space can read it using 'cat'<br><br>Thanks and regards, <br>Vignesh Radhakrishnan <br><div><div><br>On Monday, December 1, 2014, manty kuma <<a href="mailto:mantykuma@gmail.com" target="_blank">mantykuma@gmail.com</a>> wrote:<br>> Hi,<br>><br>> I need to measure some timings in my system. At driver level, i am using ktime_get() to log the times.<br>> I need to map this to something of the same unit at user space.<br>><br>> I checked /proc/uptime. This value also includes the suspend time which ktime_get() doesn't include. Hence this option is ruled out.<br>><br>> Is there any other proc entry or any other source which is of same unit?<br>><br>> Best Regards,<br>> manty<br>><br><br></div></div><span><font color="#888888">-- <br><a href="http://vigneshradhakrishnan.blogspot.com/" target="_blank">http://vigneshradhakrishnan.blogspot.com/</a><br><br>
</font></span></blockquote></div><br></div>
</div></div></blockquote></div><br></div>