Date: Fri, 05 Mar 2010 12:38:40 -0800 From: Xin LI <delphij@delphij.net> To: Alexander Best <alexbestms@wwu.de> Cc: freebsd-hackers@FreeBSD.org, d@delphij.net Subject: Re: tiny lib/libkvm/kvm_proc.c correction Message-ID: <4B916BD0.7030501@delphij.net> In-Reply-To: <permail-20100305195910f0889e8400000ee3-a_best01@message-id.uni-muenster.de> References: <permail-20100305195910f0889e8400000ee3-a_best01@message-id.uni-muenster.de>
next in thread | previous in thread | raw e-mail | index | archive | help
-----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 <delphij@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-----
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?4B916BD0.7030501>