WARNING - OLD ARCHIVES

This is an archived copy of the Xen.org mailing list, which we have preserved to ensure that existing links to archives are not broken. The live archive, which contains the latest emails, can be found at http://lists.xen.org/
   
 
 
Xen 
 
Home Products Support Community News
 
   
 

xen-devel

Re: [Xen-devel] Modifying xentop

To: Carlo Bertoldi <mcbain@xxxxxxxxxx>
Subject: Re: [Xen-devel] Modifying xentop
From: Atsushi SAKAI <sakaia@xxxxxxxxxxxxxx>
Date: Mon, 26 May 2008 19:07:33 +0900
Cc: xen-devel <xen-devel@xxxxxxxxxxxxxxxxxxx>
Delivery-date: Mon, 26 May 2008 03:08:16 -0700
Envelope-to: www-data@xxxxxxxxxxxxxxxxxx
In-reply-to: <483A708A.3080806@xxxxxxxxxx>
List-help: <mailto:xen-devel-request@lists.xensource.com?subject=help>
List-id: Xen developer discussion <xen-devel.lists.xensource.com>
List-post: <mailto:xen-devel@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=unsubscribe>
References: <483A708A.3080806@xxxxxxxxxx>
Sender: xen-devel-bounces@xxxxxxxxxxxxxxxxxxx
Hi, Carlo

  If you skip the code tracking,
it is better to see arch_do_sysctl@xen/arch/x86/sysctl.c
(XEN_SYSCTL_physinfo).

P.S.
If you keep digging the code in your way,
you need to track the hypercall code (which includes assembler).

Thanks
Atsushi SAKAI



Carlo Bertoldi <mcbain@xxxxxxxxxx> wrote:

> Hi,
>   I'd like to extend xentop, so after some study I realized that I have 
> to start extending libxenstat. Let's say I want to know how many 
> free_pages a domain has, so I added a field in xen_sysctl_physinfo 
> (include/xen/interface/sysctl.h) and one in xen_domctl_getdomaininfo 
> (include/xen/interface/domctl.h). CIIW, I think the flow is like: 
> libxenstat -> libxc -> xc_physinfo -> ? I think that here I've got to 
> check the kernel side interface in drivers/xen/privcmd/privcmd.c but I 
> can't find anything that takes care of handling some physinfo struct.
> Am I completely off road here? Do I have to look into the hypervisor 
> instead of the guest kernel?
> Thanks,
>   Carlo
> 
> -- 
> ネ molto pi
\xBE 
\xBE 滝瘟黼 倚黹瘡
\xBE 
\xBE 烝烝烝烝烝烝烝烝烝烝烝烝烝烝烝烝烝烝烝烝烝烝烝\xDF
\xBE 懊遶粤扤\xEC 轣蛹蜴\xE7 跚齡
\xBE 懊遶粤扤貔扤扤扤扤扤扤扤扤扤\xF8
\xBE 蔗扤痕扤蜩\x{63ed}扤緕齒\x{235c4}竇\x{fa33}闕扤緕\x{2121}纐繻



烝烝烝烝烝烝烝烝烝烝烝烝烝烝烝烝烝烝烝烝烝烝烝\xDF
懊遶粤扤\xEC 轣蛹蜴\xE7 跚齡
懊遶粤扤貔扤扤扤扤扤扤扤扤扤\xF8
蔗扤痕扤蜩\x{63ed}扤緕齒\x{235c4}竇\x{fa33}闕扤緕\x{2121}纐繻

<Prev in Thread] Current Thread [Next in Thread>