From: "sanjay kumar" Subject: reading time value in dom0 and domU kernels Date: Sun, 9 Apr 2006 15:19:03 +0000 Message-ID: <2717599f0604090819g5433b228p486ae4f8dbb343e9@mail.gmail.com> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============0761554688==" Return-path: List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Mime-version: 1.0 Sender: xen-devel-bounces@lists.xensource.com Errors-To: xen-devel-bounces@lists.xensource.com To: xen-devel List-Id: xen-devel@lists.xenproject.org --===============0761554688== Content-Type: multipart/alternative; boundary="----=_Part_19430_28772816.1144595943201" ------=_Part_19430_28772816.1144595943201 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Content-Disposition: inline Hi Folks, I want to calculate latency in transferring a buffer from domU kernel to dom0 kernel and vice versa. for that I need a time 'flavour' (cycle counter time?) which reads the same in dom0 and domU. Could someone please let me know if cycle counter time is the right time to use? if not then which one (system time or wall clock time)? Also could someone please tell me how to read to read this timer value. if I use rdtsc() in both dom0 and domU, will it give me the same time value= ? Thanks, Sanjay -- ---------------------- PhD Student, Georgia Tech http://www.cc.gatech.edu/~ksanjay/ ------=_Part_19430_28772816.1144595943201 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Content-Disposition: inline Hi Folks,
I want to calculate latency in transferring a buffer from domU kernel to dom0 kernel and vice versa. for that I need a time 'flavour' (cycle counter time?) which reads the same in dom0 and domU. Could someone please let me know if cycle counter time is the right time to use? if not then which one (system time or wall clock time)? Also could someone please tell me how to read to read this timer value.

if I use rdtsc() in both dom0 and domU, will it give me the same time value= ?

Thanks,
Sanjay
--
----------------------
PhD Student, Georgia Tech
http://www.cc.gatech.edu/~ksanj= ay/
------=_Part_19430_28772816.1144595943201-- --===============0761554688== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ Xen-devel mailing list Xen-devel@lists.xensource.com http://lists.xensource.com/xen-devel --===============0761554688==--