aboutsummaryrefslogtreecommitdiffstats
path: root/tools/xentrace
Commit message (Collapse)AuthorAgeFilesLines
...
* xenctx support for 64-bit HVM guestsKeir Fraser2009-02-051-10/+17
| | | | | | | Now that we can easily find EFER.LMA, xenctx can detect 64-bit HVM VCPUs Signed-off-by: Tim Deegan <Tim.Deegan@citrix.com>
* Use -MMD -MF in tools/* rather than -Wp,-M...Keir Fraser2009-01-121-1/+4
| | | | | | | | | | | | | | | | | | | | | | 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>
* [IA64] compilation fix of xenctxIsaku Yamahata2009-01-071-3/+3
| | | | | | | | | | | | This patch fixes the following compilation error caused by 18963:9cc632cc6d40 of xen-unstable.hg > xenctx.c: In function 'print_ctx': > xenctx.c:430: error: request for member 'c' in something not a structure or union > xenctx.c:431: error: 'vcpu_guest_context_any_t' has no member named 'regs' > xenctx.c:484: error: 'vcpu_guest_context_any_t' has no member named 'event_callback_ip' Signed-off-by: Isaku Yamahata <yamahata@valinux.co.jp>
* xenctx: compat-mode/HVM supportKeir Fraser2009-01-051-105/+185
| | | | | | | | Add support to xenctx for guests that have a different word size to the tools (x86 only, but shouldn't break ia64). Again, only 32-bit HVM guests are supported until EFER.LMA is easier to get at. Signed-off-by: Tim Deegan <Tim.Deegan@citrix.com>
* xentrace: trace power management events.Keir Fraser2008-10-161-0/+4
| | | | Signed-off-by: Guanqun Lu <guanqun.lu@intel.com>
* xenctx: fix xenctx --all option on x86Keir Fraser2008-09-221-1/+1
| | | | Signed-off-by: Akio Takebe <takebe_akio@jp.fujitsu.com>
* xentrace 7/7: Add option to log to a circular buffer and dump to diskKeir Fraser2008-09-081-44/+345
| | | | | | | on signal. Signed-off-by: George Dunlap <george.dunlap@eu.citrix.com> Signed-off-by: Trolle Selander <trolle.selander@eu.citrix.com>
* xentrace 6/7: Updated formats file.Keir Fraser2008-09-081-49/+100
| | | | | Signed-off-by: George Dunlap <george.dunlap@eu.citrix.com> Signed-off-by: Trolle Selander <trolle.selander@eu.citrix.com>
* xentrace 4/7: Add some missing things to the xentrace options stringKeir Fraser2008-09-081-1/+1
| | | | | Signed-off-by: George Dunlap <george.dunlap@eu.citrix.com> Signed-off-by: Trolle Selander <trolle.selander@eu.citrix.com>
* xentrace: Fix typo in xentrace_formats file.Keir Fraser2008-08-211-2/+2
| | | | | Signed-off-by: Yang Xiaowei <xiaowei.yang@intel.com> Signed-off-by: Zhou Ting <ting.g.zhou@intel.com>
* tools: Declare functions static where they should be, and provideKeir Fraser2008-07-152-28/+30
| | | | | | proper prototypes for others as required. Signed-off-by: Christoph Egger <Christoph.Egger@amd.com>
* Compilation fix for x86_64 caused by 17880:d3a87899985d.Keir Fraser2008-06-201-2/+0
| | | | Signed-off-by: Jean Guyader <jean.guyader@eu.citrix.com>
* libxc: The following patch replace the libxc interface to useKeir Fraser2008-06-191-4/+6
| | | | | | | vcpu_guest_context_any_t (which is both 32 and 64 bits) instead of vcpu_guest_context_t. Signed-off-by: Jean Guyader <jean.guyader@eu.citrix.com>
* xentrace: fix tracing for 64bit guestsKeir Fraser2008-06-092-23/+58
| | | | | | | | | | | | | | | | | | | | Xen tracing some times ago used to put values of type 'long' into the trace buffer. This has changed to uint32_t. Some trace points log virtual addresses, which get cropped to 32bit in this case. There were some inline functions to handle at least PF_XEN and VMEXIT, which caused a lot of code duplication. The attached patch fixes several issues: 1. fix and extend tools/xentrace/formats 2. Fix xentrace_format to handle up to 7 parameters 3. create convenience macros to properly log long values 4. remove the inline functions in hvm/trace.h and replace them by macros 5. Change the CPUID trace to work correctly 6. group HVM trace points enable mechanism I used a similar approach as in PV tracing with bit 8 indicating 64bit pointers. Signed-off-by: Andre Przywara <andre.przywara@amd.com>
* Fix non-portability in xentraceKeir Fraser2008-02-281-4/+4
| | | | | | | Replace statfs() with the equivalent statvfs(), and correct the block size multiplier. Signed-off-by: John Levon <john.levon@sun.com>
* xentrace: Add a time parameterKeir Fraser2008-02-261-1/+12
| | | | Signed-off-by: George Dunlap <george.dunlap@eu.citrix.com>
* xentrace: Disable tracing by default on exitKeir Fraser2008-02-261-1/+38
| | | | | Includes an option to disable this behavior. Signed-off-by: George Dunlap <george.dunlap@eu.citrix.com>
* xentrace: Add option to reserve disk spaceKeir Fraser2008-02-261-2/+38
| | | | | | Before writing records, xentrace will check to make sure that there is a minimum amount of space left on the output filesystem. Signed-off-by: George Dunlap <george.dunlap@eu.citrix.com>
* xentrace: Fix --discard-buffers optionKeir Fraser2008-02-261-0/+7
| | | | Signed-off-by: George Dunlap <george.dunlap@eu.citrix.com>
* libxenctrl headers should not pollute macro namespace withKeir Fraser2008-02-121-3/+3
| | | | | | | mb/rmb/wmb. Instead add a xen_ prefix. Modify Xen's public headers to expect the prefixed names instead of bare mb/rmb/wmb, but gate this expectation on a bump of __XEN_INTERFACE_VERSION__. Signed-off-by: Keir Fraser <keir.fraser@citrix.com>
* xentrace: Improve xentrace to use VIRQ_TBUF interrupts as well as aKeir Fraser2008-02-111-56/+82
| | | | | | | | user-specified polling interval in order to determine when to empty the trace buffers. Removed the old and unused/unimplemented new_data_threshold logic. Signed-off-by: Michael A Fetterman <Michael.Fetterman@cl.cam.ac.uk>
* xentrace: Allow xentrace to handle >4G of trace data.Keir Fraser2008-02-111-2/+11
| | | | | | | | | | | | | It was previously assert'ing when it hit 4G. Also, because the trace buffer is not a power of 2 in size, using modulo arithmetic to address the buffer does not work when the index wraps around 2^32. This patch fixes both issues, and as a side effect, removes all integer division from the hypervisor side of the trace mechanism. Signed-off-by: Michael A Fetterman <Michael.Fetterman@cl.cam.ac.uk>
* Define CFLAGS and LDFLAGS for libxenctrl.Keir Fraser2008-01-271-5/+4
| | | | Signed-off-by: Bastian Blank <waldi@debian.org>
* Add PRIVATE_BINDIR. Use it.Keir Fraser2008-01-261-2/+2
| | | | Signed-off-by: Bastian Blank <waldi@debian.org>
* Move generation of public header hierarchy into the tools.Keir Fraser2008-01-261-0/+1
| | | | | | | This patch merges the two versions of public header generation currently used in the build into one. Signed-off-by: Bastian Blank <waldi@debian.org>
* Add MANDIR, MAN1DIR and MAN8DIR. Use it.Keir Fraser2008-01-221-6/+4
| | | | Signed-off-by: Bastian Blank <waldi@debian.org>
* Add BINDIR. Use it.Keir Fraser2008-01-221-2/+2
| | | | Signed-off-by: Bastian Blank <waldi@debian.org>
* Apply PREFIX directly to LIBDIR.Keir Fraser2008-01-221-3/+2
| | | | Signed-off-by: Bastian Blank <waldi@debian.org>
* xenctx/x86: fix format for readability and add informationKeir Fraser2008-01-181-31/+59
| | | | Signed-off-by: Jan Beulich <jbeulich@novell.com>
* tools: LDFLAGS in link linesKeir Fraser2008-01-171-2/+2
| | | | | | | LDFLAGS is not honoured by a couple of link lines in tools/*, but should be. Signed-off-by: Ian Jackson <ian.jackson@eu.citrix.com>
* xentrace bug fix: data format of hvmtrace is changed.Keir Fraser2007-12-282-4/+4
| | | | Signed-off-by: Disheng Su <disheng.su@intel.com>
* xentrace: Don't append trace on existing file.Keir Fraser2007-12-041-7/+7
| | | | | | | | | | | | | When you run "xentrace -e <mask> trace.output" the first time, all is fine. When you run it a second time, then the data is appended which makes you reading old data with xentrace_format and you interprete it as new data. This usually happens when you automated tracing guests with xentrace and xentrace_format with a script. Therefore, attached patch makes xentrace to truncate the file to zero bytes before writing any data. Signed-off-by: Christoph Egger <Christoph.Egger@amd.com>
* xentrace: make xentrace and xenmon work on Solaris and *BSD.Keir Fraser2007-11-162-141/+134
| | | | | | | | | | | | - Use getopt() to get rid of argp dependency which does not exist on Solaris and *BSD. Done by Tariq Magdon-Ismail. - Minor modifications by me (Christoph) to make it also work on *BSD. - Tested on Linux by me (Christoph). No functional change on Linux. - Tariq ok'd BSD modifications for Solaris - Tariq ok'd submission by me :) Signed-off-by: Tariq Magdon-Ismail <tariqmi@sun.com> Signed-off-by: Christoph Egger <Christoph.Egger@amd.com>
* xentrace: Fix TypeError handling of xentrace_format.Keir Fraser2007-11-161-3/+8
| | | | Signed-off-by: Yosuke Iwamatsu <y-iwamatsu@ab.jp.nec.com>
* xentrace: Add missing xentrace format entries for HVM guests.Keir Fraser2007-11-061-0/+8
| | | | Signed-off-by: Christoph Egger <Christoph.Egger@amd.com>
* xentrace: Fix race in updating consumer ring index.Keir Fraser2007-10-251-1/+1
| | | | | From: George Dunlap <gdunlap@xensource.com> Signed-off-by: Keir Fraser <keir@xensource.com>
* Replace sysctl.physinfo.sockets_per_node with more directly usefulKeir Fraser2007-10-191-4/+1
| | | | | | | | sysctl.physinfo.nr_cpus. This also avoids miscalculation of sockets_per_node by Xen where the number of CPUs in the system is clipped. From: Elizabeth Kon <eak@us.ibm.com> Signed-off-by: Keir Fraser <keir@xensource.com>
* Remove tabs from python scripts xenmon and xentrace_format.Keir Fraser2007-10-081-30/+30
| | | | Signed-off-by: Masaki Kanno <kanno.masaki@jp.fujitsu.com>
* merge with xen-unstable.hg (staging)Alex Williamson2007-10-023-25/+121
|\
| * xenctx: Print EFLAGS for i386 and x86/64.Keir Fraser2007-10-021-6/+49
| | | | | | | | | | From: Peter Johnston <pjohnston@xensource.com> Signed-off-by: Keir Fraser <keir@xensource.com>
| * xentrace: Fix xentrace_format for new file format.Keir Fraser2007-10-021-18/+71
| | | | | | | | Signed-off-by: Atsushi SAKAI <sakaia@jp.fujitsu.com>
| * xentrace: Fix man page (remove xentrace_cpuinfo(1)).Keir Fraser2007-10-021-1/+1
| | | | | | | | Signed-off-by: Atsushi SAKAI <sakaia@jp.fujitsu.com>
* | [IA64] xenctx: fix rse arithmeticAlex Williamson2007-10-011-1/+1
|/ | | | Signed-off-by: Isaku Yamahata <yamahata@valinux.co.jp>
* Fix xentrace build.Keir Fraser2007-09-241-2/+2
| | | | Signed-off-by: Keir Fraser <keir@xensource.com>
* Xen tracing cleanups and fixes.Keir Fraser2007-09-241-8/+12
| | | | Signed-off-by: Keir Fraser <keir@xensource.com>
* [xen][tracing] Introduce variable-size trace recordsGeorge Dunlap2007-09-211-28/+104
| | | | | | | | | | | | | | | | | | | This patch introduces variable-size trace records. Each record consists of a 32-bit "header", an optional cycle count, and up to seven more 32-bit words. The header is packed with the following information: bits 0-27: The trace event. bits 28-30: The number of 32-bit "extra" words in the records bit 31: Does the trace include a 64-bit tsc? This patch standardizes behavior wrt 32 and 64-bit hypervisors and dom0s. Note that this patch requires a new version of the xentrace daemon running in dom0. The new daemon, instead of pre-pending the cpu to every record as it writes it, inserts a "cpu change" record to the trace file that record the cpu and the number of records it's about to write. Signed-off-by: George Dunlap <gdunlap@xensource.com>
* merge with xen-unstable.hgAlex Williamson2007-07-101-1/+1
|\
| * 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>
* | [IA64] Remove IA64_GUEST_CONTEXT_RBS_OFFSETAlex Williamson2007-07-021-4/+7
| | | | | | | | | | | | | | Pass the offset in the vcpu_reg struct. Fix displaying stack register in xenctx. Signed-off-by: Tristan Gingold <tgingold@free.fr>
* | [IA64] Many more registers displayed (through a command-line option).Alex Williamson2007-06-211-96/+255
|/ | | | | Signed-off-by: Tristan Gingold <tgingold@free.fr> Acked-by: Keir Fraser <keir@xensource.com>