trace: improve usefulness of hypercall trace record
authorDavid Vrabel <david.vrabel@citrix.com>
Wed, 3 Oct 2012 10:11:06 +0000 (11:11 +0100)
committerDavid Vrabel <david.vrabel@citrix.com>
Wed, 3 Oct 2012 10:11:06 +0000 (11:11 +0100)
commit86b35acb001f977eb1f82df6c07edaef173f4232
treea3c9bf5a4638b702a19a7b9ac630a1550d83883b
parent4e6967a47ad4caa3af3ada3045fb278a53fd202b
trace: improve usefulness of hypercall trace record

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>
tools/xentrace/formats
tools/xentrace/xentrace_format
xen/arch/x86/trace.c
xen/common/trace.c
xen/include/public/trace.h
xen/include/xen/trace.h