aboutsummaryrefslogtreecommitdiffstats
path: root/tools/xenstat
Commit message (Collapse)AuthorAgeFilesLines
...
* xentop: fix abnormal value cpu(%) when domain shutdown.kfraser@localhost.localdomain2007-08-071-1/+1
| | | | | | | | | | | If we test multiple domain create/shutdown many times. sometimes abnormal values of cpu(%) are appeared. This is because shutdown domain remove failure. (in other words, memory corruption of struct ) This corruption makes abnormal cpu(%) values are shown xentop sometimes. Signed-off-by: Atsushi SAKAI <sakaia@jp.fujitsu.com>
* Extended the physinfo sysctl to export NUMA cpu_to_node topology info.kfraser@localhost.localdomain2007-07-061-1/+1
| | | | | | Print this in 'xm info'. Signed-off-by: Ryan Harper <ryanh@us.ibm.com> Signed-off-by: Keir Fraser <keir@xensource.com>
* xentop: Fix -b option (batch mode).kfraser@localhost.localdomain2007-06-131-19/+32
| | | | | | | | | Some curses libraries don't work with xentop in batch mode, avoid those calls. Avoid the over-verbose summary lines when batch mode is requested. Signed-off-by: Gary Pennington <gary.pennington@sun.com> Signed-off-by: Keir Fraser <keir@xensource.com>
* xentop: Display blktap information.kfraser@localhost.localdomain2007-06-071-1/+8
| | | | Signed-off-by: Satoshi UCHIDA <s-uchida@ap.jp.nec.com>
* xenstat: Adding to scan blktap information.kfraser@localhost.localdomain2007-06-074-8/+25
| | | | Signed-off-by: Satoshi UCHIDA <s-uchida@ap.jp.nec.com>
* Fix stale email addresses in xenstat and xentop.kfraser@localhost.localdomain2007-05-318-20/+20
| | | | | | | | | | | | Our @us.ibm.com emails cannot forward to us; we do not have access to them when not interning at IBM. People have attempted to reach us via those addresses and failed; occasionally they've Googled for a current address, which made us realize the problem. Change each email to a more permanent address, so people can reach us in the future. Change bug reporting addresses to a xen mailing list rather than an individual. Signed-off-by: Josh Triplett <josh@kernel.org>
* xenstat: Remove the "vbd-%d-%d is a VBD." debugging statement.Keir Fraser2007-05-071-3/+1
| | | | Signed-off-by: Keir Fraser <keir@xensource.com>
* xentop: Fix memory leak.kfraser@localhost.localdomain2007-04-021-0/+2
| | | | Signed-off-by: Atsushi SAKAI <sakaia@jp.fujitsu.com>
* Fix for Solaris compile/output for VBDs in xentop.kfraser@localhost.localdomain2007-02-271-4/+12
| | | | Signed-off-by: John Levon <john.levon@sun.com>
* Implement VBD and VIF handling on Solaris for libxenstat.kfraser@localhost.localdomain2007-02-237-290/+838
| | | | | | Also, fix up a confusion with ERR that was breaking xentop. Signed-off-by: John Levon <john.levon@sun.com>
* Fix xentop error return code if passed unrecognised options.kaf24@localhost.localdomain2007-01-281-2/+4
| | | | Signed-off-by: Masaki Kanno <kanno.masaki@jp.fujitsu.com>
* Fix trivial bug in xentop main loop.kfraser@localhost.localdomain2007-01-121-1/+1
| | | | Signed-off-by: Keir Fraser <keir@xensource.com>
* [SOLARIS] Fix xentop build.kaf24@localhost.localdomain2006-12-292-2/+10
| | | | Signed-off-by: Keir Fraser <keir@xensource.com>
* More 'const' cleanups (and fixes, for Solaris).kaf24@firebug.cl.cam.ac.uk2006-12-231-2/+2
| | | | Signed-off-by: Keir Fraser <keir@xensource.com>
* Improve consistency of type-attribute usage (volatile/const).kfraser@localhost.localdomain2006-12-211-2/+2
| | | | | From: Christoph Egger <Christoph.Egger@amd.com> Signed-off-by: Keir Fraser <keir@xensource.com>
* [XEN] Remove VGCF_hvm_guest, replace with XEN_DOMINF_hvm_guest.kfraser@localhost.localdomain2006-11-031-10/+10
| | | | | | Rename DOMFLAGS_* to XEN_DOMINF_*. Clean up tools to deal with flags changes. Signed-off-by: Keir Fraser <keir@xensource.com>
* [TOOLS][XENTOP] Update usage and manpage to include vbd options.kfraser@localhost.localdomain2006-10-252-3/+6
| | | | | | Also a couple of whitespace fixes. Signed-off-by: Tony Breeds <tony@bakeyournoodle.com>
* It's not correct to call endwin() if initscr() fails, and it crasheskfraser@localhost.localdomain2006-10-171-3/+5
| | | | | | older libcurses implementations. Signed-off-by: John Levon <john.levon@sun.com>
* [SOLARIS] A couple of simple compile fixes for tools/ on Solaris.kfraser@localhost.localdomain2006-10-172-3/+7
| | | | Signed-off-by: John Levon <john.levon@sun.com>
* [SOLARIS] On Solaris, GCC is configured to use Sun's LD. Fix the build to usekfraser@localhost.localdomain2006-10-172-5/+5
| | | | | | the correct flags, and link against libsocket where necessary. Signed-off-by: John Levon <john.levon@sun.com>
* Clean up duplication of 'install' macros in the Makefiles.kfraser@localhost.localdomain2006-10-172-8/+0
| | | | Signed-off-by: John Levon <john.levon@sun.com>
* Replace dom0_ops hypercall with three new hypercalls:kfraser@localhost.localdomain2006-08-251-3/+3
| | | | | | | | | | | | | | | | | | | | | | 1. platform_op -- used by dom0 kernel to perform actions on the hardware platform (e.g., MTRR access, microcode update, platform quirks, ...) 2. domctl -- used by management tools to control a specified domain 3. sysctl -- used by management tools for system-wide actions Benefits include more sensible factoring of actions to hypercalls. Also allows tool compatibility to be tracked separately from the dom0 kernel. The assumption is that it will be easier to replace libxenctrl, libxenguest and Xen as a matched set if the dom0 kernel does not need to be replaced too (e.g., because that would require vendor revalidation). From here on we hope to maintain dom0 kernel compatibility. This promise is not extended to tool compatibility beyond the existing guarantee that compatibility will not be broken within a three-level stable release [3.0.2, 3.0.3, etc.]. Signed-off-by: Keir Fraser <keir@xensource.com>
* [XENSTAT] Ignore domains that are being created/destroyed during get_info call.kaf24@firebug.cl.cam.ac.uk2006-08-081-22/+77
| | | | | | | | | | Currently, xenstat_get_node exits with a failure and returns NULL if a VM is deleted between the time the list of VMs is obtained and the time it attempts to collect information about the VMs. This patch modifies xenstat to ignore domains that transition during the call. Signed-off-by: Simon Graham <Simon.Graham@stratus.com>
* Remove unnecessary include of linux/compiler.h in libxenstat.kfraser@localhost.localdomain2006-07-261-1/+0
| | | | | Signed-off-by: Akio Takebe <takebe_akio@jp.fujitsu.com>
* [XENTOP] Fix Field attributes and width.kfraser@localhost.localdomain2006-07-051-5/+5
| | | | | | | | It miss that set the FIELD attribute and width for VBD information in xentop.c. Signed-off-by Satoshi UCHIDA <s-uchida@ap.jp.nec.com>
* Remove use of unlikely -- it's not defined on all systems.chris@kneesaa.uk.xensource.com2006-06-301-2/+2
| | | | | Signed-off-by: Christian Limpach <Christian.Limpach@xensource.com>
* [XENTOP]Add VBD information.kaf24@firebug.cl.cam.ac.uk2006-06-301-2/+152
| | | | | | | | Display VBD information at xentop. By put 'x' key, display each VBD information in detail. Signed-off-by: Satoshi UCHIDA <s-uchida@ap.jp.nec.com>
* [XENSTAT]Add VBD information structure.kaf24@firebug.cl.cam.ac.uk2006-06-302-2/+194
| | | | | | | Import VBD information from sysfs. Signed-off-by: Satoshi UCHIDA <s-uchida@ap.jp.nec.com>
* [XENTOP] Fix CPU percentage display in batch mode.kaf24@firebug.cl.cam.ac.uk2006-06-281-0/+1
| | | | | | From: shaocyou <shaocyou@jp.fujitsu.com> Signed-off-by: Keir Fraser <keir@xensource.com>
* [XENTOP] Adds batch mode processing option (output to stdout)kaf24@firebug.cl.cam.ac.uk2006-06-282-25/+67
| | | | | | | | | | | | | | | | | | | to the xentop utility. It also adds the ability to specify the number of iterations xentop should produce before exiting. a) xentop -b will output to stdout. b) xentop -i <number> will iterate <number> times and exit (option "n" is already used by xentop. Hence the choice of "i"). This option can be used for both the curses and batch modes. From: Hariprasad Nellitheertha <mlisthari@gmail.com> Signed-off-by: Keir Fraser <keir@xensource.com>
* [XENSTAT] Fix two realloc() usage errors in xenstat.kfraser@dhcp93.uk.xensource.com2006-06-141-9/+14
| | | | | | Based on original patch from Jimi Xenidis at IBM. Signed-off-by: Keir Fraser <keir@xensource.com>
* Fix perfc array range on reset.kaf24@firebug.cl.cam.ac.uk2006-05-022-247/+0
| | | | | Signed-off-by: Jan Beulich <jbeulich@novell.com>
* Move Linux-specific privcmd code into private libxc implementations.kaf24@firebug.cl.cam.ac.uk2006-05-022-22/+27
| | | | | | | | | Make header path for kernel's privcmd/evtchn headers generic. Remove pointless xi_*() interface that was using private libxc interfaces. Signed-off-by: John Levon <john.levon@sun.com>
* Rename {SG}ET_XEN_GUEST_HANDLE to {sg}et_Xen_guest_handle, as theykaf24@firebug.cl.cam.ac.uk2006-04-281-1/+1
| | | | | | | are function macros rather than define/declare macros. Signed-off-by: Keir Fraser <keir@xensource.com>
* Wrap all GUEST_HANDLEs in structures, and define SET/GET macros to access themkaf24@firebug.cl.cam.ac.uk2006-04-271-1/+1
| | | | | | | in Linux and libxc. Signed-off-by: Hollis Blanchard <hollisb@us.ibm.com>
* Remove some bogus .PHONY Makefile declarations.kaf24@firebug.cl.cam.ac.uk2006-04-111-3/+0
| | | | | | | | Fixes xentop installation. Signed-off-by: Keir Fraser <keir@xensource.com>
* build: Clean up use of .PHONYkaf24@firebug.cl.cam.ac.uk2006-04-102-0/+15
| | | | | | | | | | | | * Move .PHONY directives next to targets, this makes them a lot harder to miss * Add missing .PHONY directives * Remove nonexistent .PHONY directives * Hopefully I didn'T miss anything... Signed-Off-By: Horms <horms@verge.net.au>
* More build config changes:kaf24@firebug.cl.cam.ac.uk2006-03-105-5/+5
| | | | | | | | | | - Build -O2 rather than -O3 - Build with -Wstrict-prototypes - Move target-specific generic compiler switches to Config.mk Signed-off-by: Keir Fraser <keir@xensource.com>
* Check the hypercall number in the privcmd hypercall ioctl.kaf24@firebug.cl.cam.ac.uk2006-02-101-23/+20
| | | | | | | | | | | | | We check it is a member of a small set of permitted hypercalls. Fix libxenstat to not use multicalls (not permitted, and not need for efficiency in libxenstat). Based on an original patch by Chris Wright. Signed-off-by: Keir Fraser <keir@xensource.com> Signed-off-by: Chris Wright <chrisw@sous-sol.org>
* update xs_transaction_t to be a plain u32 integer instead of a fake pointer.vhanquez@kneesa.uk.xensource.com2006-01-111-1/+1
| | | | | Signed-off-by: Vincent Hanquez <vincent@xensource.com>
* This fixes a small race between when a domain is created and when xentopkaf24@firebug.cl.cam.ac.uk2005-11-241-10/+3
| | | | | | | | | | | tries to read it's info from the xenstore. Instead of sending a NULL pointer for the name the name will be displayed as a ' ' until the next refresh where xentop will then properly display the name. Signed-off-by: Jerone Young <jyoung5@us.ibm.com> Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
* Remove unnecessary NULL checks before freeing memory blocks.kaf24@firebug.cl.cam.ac.uk2005-11-111-4/+2
| | | | | | | | | The following functions check for NULL internally: free, kfree, xfree, free_xenheap_page[s] Signed-off-by: Keir Fraser <keir@xensource.com>
* There is an error in xenstat, such that a wild pointer is beingkaf24@firebug.cl.cam.ac.uk2005-11-011-2/+1
| | | | | | | | dereferenced and written to. Signed-off-by: Charles Coffing <ccoffing@novell.com>
* Free domain names in xenstat_free_node, fixing small memory leak.emellor@leeni.uk.xensource.com2005-10-301-0/+5
| | | | | | | Thanks to Anthony Liguori for spotting the leak. Signed-off-by: Ewan Mellor <ewan@xensource.com>
* Fix Jerone Young's xenstat / xenstore patch:emellor@leeni.uk.xensource.com2005-10-272-17/+1
| | | | | | | | | | | | | | Reject the removal of -Werror from the xentop Makefile. Reject the #include of xs.h inside xentop -- there is no need for it. Have XendDomainInfo write domain names into /local/domain (which used to happen, but hasn't for a little while). Remove the dead code from xentop.c. Signed-off-by: Ewan Mellor <ewan@xensource.com>
* * Enable xenstat to use xenstorejeroney@localhost.localdomain2005-10-275-4/+65
| | | | | | | * Have xentop display names instead of DomIDs as requested in Bugzilla#311 filed by Ian
* This patch is to make xentop able to print vcpu usage for out of orderkaf24@firebug.cl.cam.ac.uk2005-10-225-20/+36
| | | | | | | | | | | | | | | | | enabled vcpus in a domain. This really isn't an issue anymore with the changes made to dom0 ops and xm/xend. But, I provide it because: - Josh noticed my previous patch called getvcpuinfo twice for each vpcu, which was completely silly. - this patch would be useful in the remote chance that domain vpcus are enabled out of order. Signed-off-by: Daniel Stekloff <dsteklof@us.ibm.com>
* Plumb GETVCPUINFO dom0_op through to Python. Removekaf24@firebug.cl.cam.ac.uk2005-10-171-1/+1
| | | | | | | | | | | | | | | | | n_vcpu field from GETDOMAININFO: replaced with nr_online_vcpus and max_vcpu_id (both plumbed through to Python). TODO: Remove 'vcpus' entry in getdomaininfo Python dictionary. TODO: Don't represent 'cpumap' as a bitmap in Python. It would be more sensible to represent as a list of integer CPU numbers. Signed-off-by: Keir Fraser <keir@xensource.com>
* Store an opaque handle (tools uuid) in the domain structurekaf24@firebug.cl.cam.ac.uk2005-10-141-6/+5
| | | | | | | | | | within Xen. Refactor GETVCPUCONTEXT into an op of the same name plus a new op GETVCPUINFO. Move the cpumap and cpu info arrays from GETDOMAININFO and move into new GETVCPUINFO. Signed-off-by: Keir Fraser <keir@xensource.com>
* Fix Xen public interfaces and the tools to consistentlykaf24@firebug.cl.cam.ac.uk2005-10-121-10/+0
| | | | | | | | use stdint-format bitsize types (uint32_t and friends). Signed-off-by: Keir Fraser <keir@xensource.com>