aboutsummaryrefslogtreecommitdiffstats
path: root/tools/xentrace
Commit message (Collapse)AuthorAgeFilesLines
* split LDLIBS from LDFLAGS to fix link errors in recent toolchainsStefano Stabellini2010-08-111-3/+3
| | | | | | | | | | | | | | | | Linker command lines are order-sensitive. Move linker options -Lfoo -lfoo from LDFLAGS to LDLIBS and place this new variable after the objects to link. This resolves build errors in xenpagin and blktap with recent toolchains. rename SHLIB_CFLAGS to SHLIB_LDFLAGS rename LDFLAGS_* to LDLIBS_* move LDFLAGS usage after CFLAGS in CC calls remove stale comments in xenpaging Makefile Signed-off-by: Olaf Hering <olaf@aepfle.de> Signed-off-by: Stefano Stabellini <stefano.stabellini@eu.citrix.com> Acked-by: Ian Jackson <ian.jackson@eu.citrix.com>
* tools/xentrace: increase default xentrace buffer size.Ian Jackson2010-07-081-1/+1
| | | | | | | increase default xentrace buffer size to reduce the number of lost records. Signed-off-by: Tim Deegan <Tim.Deegan@citrix.com>
* trace: share t_info pages only in read-only modeKeir Fraser2010-06-291-5/+5
| | | | | | | | There's no need to share writably the t_info pages (Dom0 only wants [and needs] to read it) Signed-off-by: Jan Beulich <jbeulich@novell.com> Acked-by: George Dunlap <george.dunlap@eu.citrix.com>
* xentrace: update formats file for INTR_WINDOW and NPFKeir Fraser2010-06-071-0/+2
| | | | Signed-off-by: Christoph Egger <Christoph.Egger@amd.com>
* libxc: eliminate static variables, use xentoollog; API changeKeir Fraser2010-05-283-11/+11
| | | | | | | | | | | | | | | | | | | | This patch eliminate the global variables in libxenctrl (used for logging and error reporting). Instead the information which was in the global variables is now in a new xc_interface* opaque structure, which xc_interface open returns instead of the raw file descriptor; furthermore, logging is done via xentoollog. There are three new parameters to xc_interface_open to control the logging, but existing callers can just pass "0" for all three to get the old behaviour. All libxc callers have been adjusted accordingly. Also update QEMU_TAG for corresponding qemu change. Signed-off-by: Ian Jackson <ian.jackson@eu.citrix.com>
* xenctx: Add --kernel-start option, to set the user/kernel splitKeir Fraser2010-05-271-7/+14
| | | | | | Used when displaying stack traces. Signed-off-by: Tim Deegan <Tim.Deegan@citrix.com>
* xentrace: install scripts with python install wrapperKeir Fraser2010-05-151-1/+2
| | | | Signed-off-by: Christoph Egger <Christoph.Egger@amd.com>
* xentrace: Add missing help optionKeir Fraser2010-04-131-0/+3
| | | | | | Describe the --reserve-disk-space option in the xentrace help. Signed-off-by: George Dunlap <george.dunlap@eu.citrix.com>
* xentrace: Add an option not to enable tracingKeir Fraser2010-04-131-2/+16
| | | | | | | | | Add an option that will set up the buffers and listen for updates, but will not enable tracing. This is useful if you have hacks in Xen to enable tracing at key points (for example, debugging a shadow bug). Signed-off-by: George Dunlap <george.dunlap@eu.citrix.com>
* xentrace: Skip to low cpu when throwing away portions of the circular bufferKeir Fraser2010-04-131-0/+15
| | | | | | | Skip to the next "low" cpu when throwing away portions of the circular memory buffer. This makes subsequent analysis easier. Signed-off-by: George Dunlap <george.dunlap@eu.citrix.com>
* xentrace: Disable tracing, then read records one more time.Keir Fraser2010-02-031-4/+14
| | | | | | | | | | | When interrupted, first disable tracing, then read through the records one last time. Without this patch, it's possible to get traces which interact (such as runstate changes) on processors with higher numbers, while missing the corresponding traces generated on lower-numbered processors. Signed-off-by: George Dunlap <george.dunlap@eu.citrix.com>
* xentrace: XC_PAGE_SIZE should be usedKeir Fraser2010-01-211-1/+1
| | | | | | | | | 20827:fad80160c001 cannot be compiled on ia64: xentrace.c:647: error: 'PAGE_SIZE' undeclared (first use in this This patch fixes it. Signed-off-by: KUWAMURA Shin'ya <kuwa@jp.fujitsu.com>
* xentrace: Per-cpu xentrace buffersKeir Fraser2010-01-201-73/+60
| | | | | | | | | | | | | | | | In the current xentrace configuration, xentrace buffers are all allocated in a single contiguous chunk, and then divided among logical cpus, one buffer per cpu. The size of an allocatable chunk is fairly limited, in my experience about 128 pages (512KiB). As the number of logical cores increase, this means a much smaller maximum per-cpu trace buffer per cpu; on my dual-socket quad-core nehalem box with hyperthreading (16 logical cpus), that comes to 8 pages per logical cpu. This patch addresses this issue by allocating per-cpu buffers separately. Signed-off-by: George Dunlap <dunlapg@umich.edu>
* xentrace: fix "%016x" formatKeir Fraser2009-08-111-35/+44
| | | | | | | | | xentrace_format cannot use "0x016x" format as we expect. It show only %(N) as "0x016x" format, not as "%(N+1)08x%(N)08x". So I fixed tools/xentrace/formats by using "%(N+1)08x%(N)08x" format. Also I added some TRC_PV entries. Signed-off-by: Akio Takebe <takebe_akio@jp.fujitsu.com>
* x86 Cx tracing: export the Cx exit reason (pending interrupt during Cx)Keir Fraser2009-06-291-1/+1
| | | | Signed-off-by: Lu Guanqun <guanqun.lu@intel.com>
* x86 Cx tracing: export expected/predicted Cx to xentraceKeir Fraser2009-06-291-1/+1
| | | | Signed-off-by: Lu Guanqun <guanqun.lu@intel.com>
* xentrace: Trace IRQs and entry/exit timestamps.Keir Fraser2009-05-192-0/+18
| | | | | From: Dulloor <dulloor@gmail.com> Signed-off-by: Keir Fraser <keir.fraser@citrix.com>
* xentrace: Clean up HVM I/O tracing.Keir Fraser2009-04-241-2/+4
| | | | | Signed-off-by: Andre Przywara <andre.przywara@amd.com> Signed-off-by: Keir Fraser <keir.fraser@citrix.com>
* xenctx, ia64: fix compilation error.Keir Fraser2009-04-021-1/+1
| | | | Signed-off-by: Isaku Yamahata <yamahata@valinux.co.jp>
* xenctx: Teach xenctx how to find the right addresses in real-mode.Keir Fraser2009-03-311-8/+30
| | | | Signed-off-by: George Dunlap <george.dunlap@eu.citrix.com>
* xenctx: Always show code context, even when not in kernel modeKeir Fraser2009-03-311-14/+20
| | | | Signed-off-by: George Dunlap <george.dunlap@eu.citrix.com>
* xentrace: Add acpi pm tick output to idle tracingKeir Fraser2009-03-191-2/+2
| | | | | | | The reason is that tsc stops and it causes the inaccuracy. And later we can write some scripts based on this patch. Signed-off-by: Guanqun Lu <guanqun.lu@intel.com>
* xentrace: error handling on non-existent formats fileKeir Fraser2009-03-121-1/+5
| | | | | | | Attached patch does proper error handling when specified formats file doesn't exist. Signed-off-by: Christoph Egger <Christoph.Egger@amd.com>
* xenctx: print x86_32 context on x86_64Keir Fraser2009-02-061-0/+31
| | | | | | Although x86_64 context covers x86_32, I think it's easy to watch. Signed-off-by: Kouya Shimura <kouya@jp.fujitsu.com>
* 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>