Re: ktime_get() equivalent from user space

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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'

Thanks and regards,
Vignesh Radhakrishnan

On Monday, December 1, 2014, manty kuma <mantykuma@xxxxxxxxx> wrote:
> Hi,
>
> I need to measure some timings in my system. At driver level, i am using ktime_get() to log the times.
> I need to map this to something of the same unit at user space.
>
> I checked /proc/uptime. This value also includes the suspend time which ktime_get() doesn't include. Hence this option is ruled out.
>
> Is there any other proc entry or any other source which is of same unit?
>
> Best Regards,
> manty
>

--
http://vigneshradhakrishnan.blogspot.com/

_______________________________________________
Kernelnewbies mailing list
Kernelnewbies@xxxxxxxxxxxxxxxxx
http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies

[Index of Archives]     [Newbies FAQ]     [Linux Kernel Mentors]     [Linux Kernel Development]     [IETF Annouce]     [Git]     [Networking]     [Security]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux SCSI]     [Linux ACPI]
  Powered by Linux