aboutsummaryrefslogtreecommitdiffstats
path: root/tools/xentrace/xentrace_format
Commit message (Collapse)AuthorAgeFilesLines
* trace: trace hypercalls inside a multicallDavid Vrabel2012-10-031-1/+2
| | | | | | | | | | Add a trace record for every hypercall inside a multicall. These use a new event ID (with a different sub-class ) so they may be filtered out if only the calls into hypervisor are of interest. Signed-off-by: David Vrabel <david.vrabel@citrix.com> Acked-by: George Dunlap <george.dunlap@citrix.com> Committed-by: Keir Fraser <keir@xen.org>
* trace: improve usefulness of hypercall trace recordDavid Vrabel2012-10-031-0/+6
| | | | | | | | | | | | | | | | | | Trace hypercalls using a more useful trace record format. The EIP field is removed (it was always somewhere in the hypercall page) and include selected hypercall arguments (e.g., the number of calls in a multicall, and the number of PTE updates in an mmu_update etc.). 12 bits in the first extra word are used to indicate which arguments are present in the record and what size they are (32 or 64-bit). This is an incompatible record format so a new event ID is used so tools can distinguish between the two formats. Signed-off-by: David Vrabel <david.vrabel@citrix.com> Acked-by: George Dunlap <george.dunlap@citrix.com> Committed-by: Keir Fraser <keir@xen.org>
* xentrace: Trace IRQs and entry/exit timestamps.Keir Fraser2009-05-191-0/+17
| | | | | From: Dulloor <dulloor@gmail.com> Signed-off-by: Keir Fraser <keir.fraser@citrix.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>
* xentrace: fix tracing for 64bit guestsKeir Fraser2008-06-091-4/+20
| | | | | | | | | | | | | | | | | | | | 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>
* xentrace bug fix: data format of hvmtrace is changed.Keir Fraser2007-12-281-1/+1
| | | | Signed-off-by: Disheng Su <disheng.su@intel.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>
* 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>
* xentrace: Fix xentrace_format for new file format.Keir Fraser2007-10-021-18/+71
| | | | Signed-off-by: Atsushi SAKAI <sakaia@jp.fujitsu.com>
* xentrace: Add a relative TSC field (kept track per CPU) to xentrace_format.kfraser@localhost.localdomain2007-02-231-0/+7
| | | | | | | Additionally a default line is added (key 0x00000000) which is used when no specific entry in the format file is found. Signed-off-by: Thomas Friebel <thomas.friebel@amd.com>
* Fix up xentrace record extraction in xentrace_format for 64-bitkfraser@localhost.localdomain2007-02-061-0/+3
| | | | | architectures. Signed-off-by: Thomas Friebel <thomas.friebel@amd.com>
* Fix xentrace_format to deal with more than 16 CPUs.kaf24@firebug.cl.cam.ac.uk2006-05-191-2/+4
| | | | | Signed-off-by: KUWAMURA Shin'ya <kuwa@jp.fujitsu.com>
* The xentrace_format script doesn't work on x86/64. Python pads the input kaf24@firebug.cl.cam.ac.uk2005-11-181-2/+9
| | | | | | | | | | | | structure because the first field is 32 bits and the next is 64 bits, whereas x86-32 doesn't pad. The quick fix is to read the cpu id separately as a 32bit value, then read the rest of the trace record. Here is a little patch that does that. Tested on x86/32 SMP and x86/64. Signed-off-by: Rob Gardner <rob.gardner@hp.com>
* bitkeeper revision 1.1273.1.1 (4252c7d35i_j5GPb1ONx5tb9t7WG4g)bren@br260.wolfson.cam.ac.uk2005-04-051-4/+0
| | | | | | | Revamp xentrace. Clean up Xen scheduler tracings. Signed-off-by: bin.ren@cl.cam.ac.uk
* bitkeeper revision 1.911.1.1 (40abd5b2mqoey54uZKqDJrA-dD05Xw)iap10@tetris.cl.cam.ac.uk2004-05-191-5/+47
| | | | | | bandaid for xentrace. Really needs a Xen-visible trace buffer consumer index, and a way of kicking the trace deamon...
* bitkeeper revision 1.891.1.8 (40a2299bVaCq0t5_5UXpB7OSB1yLKA)mwilli2@equilibrium.research.intel-research.net2004-05-121-21/+20
| | | | | | Update xentrace to produce binary output format and xentrace_format to correctly parse it.
* bitkeeper revision 1.891.3.1 (40a107b0xATyR-Pt7aENgr5O6ydSyA)mwilli2@equilibrium.research.intel-research.net2004-05-111-10/+12
| | | | | Improvements to trace buffer features.
* bitkeeper revision 1.784 (4050c414tIvxGfQ8IUNIXoAjpoXBVA)mwilli2@equilibrium.research.intel-research.net2004-03-111-0/+96
Updated script names and added man pages for all the xentrace tools.