xen/tools: tracing: trace (Credit2) runq traversal.
authorDario Faggioli <dario.faggioli@citrix.com>
Wed, 1 Mar 2017 16:56:35 +0000 (16:56 +0000)
committerGeorge Dunlap <george.dunlap@citrix.com>
Wed, 1 Mar 2017 16:56:35 +0000 (16:56 +0000)
commit21ba5e1167ae11b5590834a9ca9f9bf97d9e2d5d
treef780258f422287ad3ef8e95def13697bcb3bc308
parentaf18e9f9d2819ce91c1eba39c94bbfb34070c623
xen/tools: tracing: trace (Credit2) runq traversal.

When traversing a Credit2 runqueue to select the
best candidate vCPU to be run next, show in the
trace which vCPUs we consider.

A bit verbose, but quite useful, considering that
we may end up looking at, but then discarding, one
of more vCPU. This will help understand which ones
are skipped and why.

Also, add how much credits the chosen vCPU has
(in the TRC_CSCHED2_RUNQ_CANDIDATE record). And,
while there, fix a bug in tools/xentrace/formats
(still in the output of TRC_CSCHED2_RUNQ_CANDIDATE).

Signed-off-by: Dario Faggioli <dario.faggioli@citrix.com>
Acked-by: George Dunlap <george.dunlap@citrix.com>
tools/xentrace/formats
tools/xentrace/xenalyze.c
xen/common/sched_credit2.c