-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On 2010/03/05 11:59, Alexander Best wrote:
> Xin LI schrieb am 2010-03-05:
> On 2010/03/05 11:26, Alexander Best wrote:
>>>> hi there. does this look right?
> 
> Not to me, the value is not to be used this way and the comments
> above
> the code explained the same thing.
> 
> I think we should use cputick2usec but it's not available to userland
> (one have to copy cpu_tick_frequency and friends).
> 
>> damn you're right. i completely overlooked that comment. would it be worth
>> making cputick2usec available to userland? is kvm_proc.c the only candidate 
>> in
>> need of converting cpu ticks to usecs?

I'm not sure how to do that unfortunately, is there a way to expose a
kernel variable to userland which also works on a crash dump?

Cheers,
- -- 
Xin LI <delp...@delphij.net>    http://www.delphij.net/
FreeBSD - The Power to Serve!          Live free or die
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.14 (FreeBSD)

iQEcBAEBAgAGBQJLkWvQAAoJEATO+BI/yjfB1zYH/jNcRww4bePZqVl7zM9zUsyA
a6LZ9JivHSgxmMfcLSrqJMBdLdTFgSPFkP7bADKMDoSE/qY6zDMFbid+GVqn1XGk
8jTJiiTXmMkb24+43oQPvVgw3XPoSJJdrJIOlHPr3rzIkHFE0M0ivMETA95WBEQJ
uPHQcCSLSRAgdLju+PzfOTq4UiCZ4SXdLfbw+xrLB4IVKzjgtKQL1XYXL5Lgpc94
+OVV30471gZyjJM79aiVYzNs6ZMKTrxxHbUJujgFM3irfJrxVf52XNTa0vmBI6aW
yL58dQo+q1/KnzLOpK+T7+c33ZUKakSzkMCxN/IJdUteOHqquZSS0EEEcAkDGKI=
=IN3b
-----END PGP SIGNATURE-----
_______________________________________________
freebsd-hackers@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-hackers
To unsubscribe, send any mail to "freebsd-hackers-unsubscr...@freebsd.org"

Reply via email to