aboutsummaryrefslogtreecommitdiffstats
path: root/tools/xenstat/xentop
Commit message (Collapse)AuthorAgeFilesLines
* xentop.c: Change curses painting behavior to avoid flickerJason McCarver2012-09-141-1/+5
| | | | | | | | | | | | | | | | | | | | | | Currently, xentop calls clear() before drawing the screen and calling refresh(). This causes the entire screen to be repainted from scratch on each call to refresh(). It is inefficient and causes visible flicker when using xentop. This patch fixes this by calling erase() instead of clear() which overwrites the current screen with blanks instead. The screen is then drawn as usual in the top() function and refresh() is called. This method allows curses to only repaint the characters that have changed since the last call to refresh(), thus avoiding the flicker and sending fewer characters to the terminal. In the event the screen becomes corrupted, this patch accepts a CTRL-L keystroke from the user which will call clear() and force a repaint of the entire screen. Signed-off-by: Jason McCarver <slam@parasite.cc> Acked-by: Ian Jackson <ian.jackson@eu.citrix.com> Committed-by: Ian Campbell <ian.campbell@citrix.com>
* xen: update xensource.com to xen.orgAndrew Cooper2012-07-262-2/+2
| | | | | | | | | | | | This patch was constructed by grepping for xensource.com over the entire repository and eyeballing which ones were sensible to update. In addition, the xen-tools mailing list has been deprecated, so update xentop to refer to xen-devel instead. Signed-off-by: Andrew Cooper <andrew.cooper3@citrix.com> Acked-by: Ian Campbell <ian.campbell@citrix.com> Committed-by: Ian Campbell <ian.campbell@citrix.com>
* autoconf: add check for curses libraryRoger Pau Monne2012-03-132-1/+10
| | | | | | | | | | | | Check for a curses compatible library (curses or ncurses basically). One of those is needed to compile Xen tools (gtraceview and xentop). Modify Makefiles/sources to use configure output (fetch CURSES_LIBS from tools/Tools.mk and header to include from tools/config.h) Signed-off-by: Roger Pau Monne <roger.pau@entel.upc.edu> Acked-by: Ian Jackson <ian.jackson@eu.citrix.com> Committed-by: Ian Jackson <ian.jackson@eu.citrix.com>
* tools: xenstat: install and use shared libraryIan Campbell2011-03-231-3/+2
| | | | | | | | Remove .so files from the .a file. Signed-off-by: Ian Campbell <ian.campbell@citrix.com> Acked-by: Ian Jackson <ian.jackson@eu.citrix.com> Committed-by: Ian Jackson <ian.jackson@eu.citrix.com>
* build: Make XEN_ROOT an absolute path.Keir Fraser2011-03-171-1/+1
| | | | | | | | Otherwise make can search the path relative to certain standard paths such as /usr/include (e.g., the line '-include $(XEN_ROOT)/.config' in Config.mk suffers from this). Signed-off-by: Keir Fraser <keir@xen.org>
* tmem, xentop: Report a few key per-domain tmem statistics in xentop.Keir Fraser2009-12-091-0/+31
| | | | Signed-off-by: Dan Magenheimer <dan.magenheimer@oracle.com>
* xentop: Allow full domain name displayKeir Fraser2009-12-021-2/+11
| | | | | | | | | | | Add a '-f' option to xentop to allow the full domain name to be displayed. This is the original behavior which can cause the display to be unaligned. Customers have requested this because only the trailing characters of their domain names are unique and therefore cannot be distinguished when the display is limited to a 10 character width. Signed-off-by: Charles Arnold <carnold@novell.com>
* xentop: Add tmem-freeable info when tmem is activeKeir Fraser2009-12-011-3/+10
| | | | | | (No change to xentop output when tmem is inactive.) Signed-off-by: Dan Magenheimer <dan.magenheimer@oracle.com>
* xentop: Add two more VBD statisticsKeir Fraser2009-11-051-24/+71
| | | | | | | | In addition to VBD read/write request#, add VBD read/write sector# also. It makes VBD throughput observation easier. As the method to get such info is OS dependent, just Linux version code is added. Signed-off-by: Yang Xiaowei <xiaowei.yang@intel.com>
* Use -MMD -MF in tools/* rather than -Wp,-M...Keir Fraser2009-01-121-1/+3
| | | | | | | | | | | | | | | | | | | | | | If you use -MMD -MF then the correct .o filename is written to the .*.d file as the compiler driver arranges everything. This was done in 19010:275abe1c5d24 for the hypervisor. In this patch we do the same elsewhere in the xen-unstable tree, particularly tools/. Specifically: * Change tools/Rules.mk to add -MMD -MF ... to CFLAGS and set DEPS. * Remove -Wp,-MD... from every other Makefile * Remove setting of DEPS from every other Makefile * Ensure that every Makefile says -include $(DEPS) * Ensure that every Makefile's clean target removes $(DEPS) Some Makefiles were already halfway there, but often for a different variable name eg PROG_DEP. The variable name is now standardised in Rules.mk as DEPS. I have done a test build with this change, on Debian etch. Signed-off-by: Ian Jackson <ian.jackson@eu.citrix.com>
* xentop: Fix fprintf() build failure.Keir Fraser2008-12-111-1/+1
| | | | Signed-off-by: Keir Fraser <keir.fraser@citrix.com>
* xentop: Fix display of long domain names.Keir Fraser2008-09-221-1/+1
| | | | Signed-off-by: Keir Fraser <keir.fraser@citrix.com>
* xentop: declare signal handler as staticKeir Fraser2008-07-141-1/+1
| | | | Signed-off-by: Christoph Egger <Christoph.Egger@amd.com>
* xenstat: some cleanupsKeir Fraser2008-06-101-3/+4
| | | | | | | | sprintf -> snprintf malloc(n * m) -> calloc(n, m) get rid of a cast Signed-off-by: Christoph Egger <Christoph.Egger@amd.com>
* Add periodic fflush to xentop batch mode.Keir Fraser2008-03-181-0/+1
| | | | | From: Yusuke KANEKI <Kaneki.Yusuke@ea.MitsubishiElectric.co.jp> Signed-off-by: Keir Fraser <keir.fraser@citrix.com>
* Add MANDIR, MAN1DIR and MAN8DIR. Use it.Keir Fraser2008-01-221-6/+2
| | | | Signed-off-by: Bastian Blank <waldi@debian.org>
* Add SBINDIR. Use it always.Keir Fraser2008-01-221-2/+2
| | | | Signed-off-by: Bastian Blank <waldi@debian.org>
* xentop: build fix for *bsd.Keir Fraser2007-10-231-1/+1
| | | | Signed-off-by: Christoph Egger <Christoph.Egger@amd.com>
* xentop: Flush batch output on SIGTERM or SIGINT.Keir Fraser2007-10-021-8/+24
| | | | Signed-off-by: INAKOSHI Hiroya <inakoshi.hiroya@jp.fujitsu.com>
* xenstat/xenstore: NetBSD fixes.Keir Fraser2007-09-241-3/+6
| | | | Signed-off-by: Christoph Egger <Christoph.Egger@amd.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>
* Fix stale email addresses in xenstat and xentop.kfraser@localhost.localdomain2007-05-313-7/+7
| | | | | | | | | | | | 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>
* 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-231-2/+6
| | | | | | 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>
* [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-171-1/+1
| | | | | | 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-171-4/+0
| | | | Signed-off-by: John Levon <john.levon@sun.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>
* [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>
* [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>
* 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-101-0/+5
| | | | | | | | | | | | * 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>
* 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-272-2/+19
| | | | | | | * 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-221-4/+7
| | | | | | | | | | | | | | | | | 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>
* Update xentop to use new name for Xen version function.cl349@firebug.cl.cam.ac.uk2005-08-261-1/+1
| | | | | | Signed-off-by: Josh Triplett <josht@us.ibm.com> Signed-off-by: Christian Limpach <Christian.Limpach@cl.cam.ac.uk>
* Changed xentop.c to include version in the summary.cl349@firebug.cl.cam.ac.uk2005-08-261-1/+3
| | | | | | Signed-off-by: Judy Fischbach <jfisch@us.ibm.com> Signed-off-by: Christian Limpach <Christian.Limpach@cl.cam.ac.uk>
* Formatting fixes for xenstat and xentop.cl349@firebug.cl.cam.ac.uk2005-08-261-8/+9
| | | | | | Signed-off-by: Josh Triplett <josht@us.ibm.com> Signed-off-by: Christian Limpach <Christian.Limpach@cl.cam.ac.uk>
* merge?cl349@firebug.cl.cam.ac.uk2005-08-231-1/+1
|\
| * Link xentop with ncurses. Distros generally do not shipkaf24@firebug.cl.cam.ac.uk2005-08-231-1/+1
| | | | | | | | | | with basic curses.