All of lore.kernel.org
 help / color / mirror / Atom feed
* Modifying xentop
@ 2008-05-26  8:10 Carlo Bertoldi
  2008-05-26 10:07 ` Atsushi SAKAI
  0 siblings, 1 reply; 2+ messages in thread
From: Carlo Bertoldi @ 2008-05-26  8:10 UTC (permalink / raw)
  To: xen-devel

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ù bello sapere qualcosa di tutto, che sapere tutto di una cosa.

Blaise Pascal

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: Modifying xentop
  2008-05-26  8:10 Modifying xentop Carlo Bertoldi
@ 2008-05-26 10:07 ` Atsushi SAKAI
  0 siblings, 0 replies; 2+ messages in thread
From: Atsushi SAKAI @ 2008-05-26 10:07 UTC (permalink / raw)
  To: Carlo Bertoldi; +Cc: xen-devel

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@tiscali.it> 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 懊遶粤洹貔跚齡鶤皪銖阨鱆絎竢\xED
\xBE 蔗捥痕妒蜩揭咜緕齒𣗄竇勉闕媞緕℡纐繻

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2008-05-26 10:07 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-05-26  8:10 Modifying xentop Carlo Bertoldi
2008-05-26 10:07 ` Atsushi SAKAI

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.