]> git.proxmox.com Git - mirror_qemu.git/commit - memory.c
trace: include CPU index in trace_memory_region_*()
authorHollis Blanchard <hollis_blanchard@mentor.com>
Wed, 2 Mar 2016 20:12:54 +0000 (12:12 -0800)
committerStefan Hajnoczi <stefanha@redhat.com>
Mon, 14 Mar 2016 09:34:30 +0000 (09:34 +0000)
commit5a68be94ac12472eb49fa267de9fb12168224298
treefddd64e0a73e6c03ebc7bc07b25a02cbbf70996f
parenta648c137383d84bc4f95696e5293978d9541a26e
trace: include CPU index in trace_memory_region_*()

Knowing which CPU performed an action is essential for understanding SMP guest
behavior.

However, cpu_physical_memory_rw() may be executed by a machine init function,
before any VCPUs are running, when there is no CPU running ('current_cpu' is
NULL). In this case, store -1 in the trace record as the CPU index. Trace
analysis tools may need to be aware of this special case.

Signed-off-by: Hollis Blanchard <hollis_blanchard@mentor.com>
Message-id: 1456949575-1633-1-git-send-email-hollis_blanchard@mentor.com
Signed-off-by: Stefan Hajnoczi <stefanha@redhat.com>
memory.c
trace-events