lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite for Android: free password hash cracker in your pocket
[<prev] [next>] [day] [month] [year] [list]
Date:	Fri, 7 Jan 2011 14:51:08 -0600
From:	Paul Sheer <paulsheer@...il.com>
To:	Linux Kernel Mailing List <linux-kernel@...r.kernel.org>
Subject: Any hardware timers avialable to user-space?

Hi there,

I'm looking for a way to return the value of any hardware clock to user-space:

Dan Bernstein's 'clockspeed' (http://cr.yp.to/clockspeed.html) package
relies on the Pentium RDTSC instruction on Linux or gethrtime() on Solaris.
On Solaris, gethrtime() is the same as clock_gettime(CLOCK_MONOTONIC,...)

On Linux clock_gettime(CLOCK_MONOTONIC,...) incurs adjustments
(so sayeth lkml archives) and doesn't seem suitable for implementing
the kind of "ntp" client that is clockspeed's purpose.

Mentioned in Documentation/kvm/timekeeping.txt are a number of PC
hardware clocks like the 82C54.

Are any of these available to user space?

Are there any plans to create a gethrtime() function like on Solaris?

Has anyone suggested a new clock_gettime(CLOCK_HARDWARE,...) system call?

Many thanks

-paul
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ