Zheng CUI
2007-Mar-15 18:50 UTC
[Xen-users] xenperf and mini-os on xen 3.0.4_1 (2.6.16.33)
Hi all,
I just compiled and installed Xen-3.0.4_1.
1. My purpose is to use Xenperf tool for the pretty printing of hypercalls.
But no matter when I typed each of "xenperf -r", "xenperf
-p" and "xenperf
-f",
I got "ERROR resetting performance counters: 38 (Function not
implemented)" or "ERROR getting perf counters: 38 (Function not
implemented)" .
I added several debug lines into the main function in "xenperf.c",
for
example,
--- printk("xc_handle = %d\n", xc_handle) after
"xc_handle xc_interface_open()"
--- printk("iret = %d\n", iret) after iret
xc_perfc_control(xc_handle, XEN_SYSCTL_PERFCOP_reset, NULL, NULL, NULL,
NULL) != 0
Then I got xc_handle = 3.
iret = -1.
I traced the source code of do_sysctl called by xc_perfc_control, and
the error number should be -EPERM (operation not permitted)
2. When I boot mini-os by "xm create -c domain_config". The periodic
thread
in minios just prints out no more than 100 lines of the time from
gettimeofday, and then does not print out time info any more.
Any help would be greatly appreciated!
Thank you,
-zheng
_______________________________________________
Xen-users mailing list
Xen-users@lists.xensource.com
http://lists.xensource.com/xen-users
Zheng CUI
2007-Mar-16 03:55 UTC
[Xen-users] xenperf and mini-os on xen 3.0.4_1 (2.6.16.33)
On 3/15/07, Zheng CUI <zcui293@gmail.com> wrote:> > Hi all, > > I just compiled and installed Xen-3.0.4_1. > > 1. My purpose is to use Xenperf tool for the pretty printing of > hypercalls. But no matter when I typed each of "xenperf -r", "xenperf -p" > and "xenperf -f", I got "ERROR resetting performance counters: 38 (Function > not implemented)" or "ERROR getting perf counters: 38 (Function not > implemented)" . Then I added several debug lines into the main function in " > xenperf.c", for example, > --- printk("xc_handle = %d\n", xc_handle) after "xc_handle > xc_interface_open()" > --- printk("iret = %d\n", iret) after iret > xc_perfc_control(xc_handle, XEN_SYSCTL_PERFCOP_reset, NULL, NULL, NULL, > NULL) != 0 > Then I got xc_handle = 3. iret = -1. > I traced the source code of do_sysctl called by xc_perfc_control, and > the error number should be -EPERM (operation not permitted) > > > 2. When I boot mini-os by "xm create -c domain_config". The periodic > thread in minios just prints out no more than 100 lines of the time from > gettimeofday, and then does not print out time info any more. > > > Any help would be greatly appreciated! > > Thank you, > > -zheng > >_______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
Atsushi SAKAI
2007-Mar-16 10:41 UTC
Re: [Xen-devel] xenperf and mini-os on xen 3.0.4_1 (2.6.16.33)
Hi, zheng I guess you should see xen/Rules.mk at first. And, Isaku''s configuration is helpful. (at end of following article) http://lists.xensource.com/archives/html/xen-ia64-devel/2006-09/msg00077.html Also see http://www.cl.cam.ac.uk/research/srg/netos/xen/readmes/user.pdf Thanks Atsushi SAKAI "Zheng CUI" <zcui293@gmail.com> wrote:> Hi all, > > I just compiled and installed Xen-3.0.4_1. > > 1. My purpose is to use Xenperf tool for the pretty printing of hypercalls. > But no matter when I typed each of "xenperf -r", "xenperf -p" and "xenperf > -f", > I got "ERROR resetting performance counters: 38 (Function not > implemented)" or "ERROR getting perf counters: 38 (Function not > implemented)" . > I added several debug lines into the main function in "xenperf.c", for > example, > --- printk("xc_handle = %d\n", xc_handle) after "xc_handle > xc_interface_open()" > --- printk("iret = %d\n", iret) after iret > xc_perfc_control(xc_handle, XEN_SYSCTL_PERFCOP_reset, NULL, NULL, NULL, > NULL) != 0 > Then I got xc_handle = 3. > iret = -1. > I traced the source code of do_sysctl called by xc_perfc_control, and > the error number should be -EPERM (operation not permitted) > > > 2. When I boot mini-os by "xm create -c domain_config". The periodic thread > in minios just prints out no more than 100 lines of the time from > gettimeofday, and then does not print out time info any more. > > > Any help would be greatly appreciated! > > Thank you, > > -zheng_______________________________________________ Xen-devel mailing list Xen-devel@lists.xensource.com http://lists.xensource.com/xen-devel