Tracing patches
The following changes since commit 3dabde1128b671f36ac6cb36b97b273139964420:
Merge remote-tracking branch 'remotes/dgilbert/tags/pull-hmp-20170914' into staging (2017-09-14 16:33:02 +0100)
are available in the git repository at:
git://github.com/stefanha/qemu.git tags/tracing-pull-request
for you to fetch changes up to f99b38fc7c1bdf2dcc5e316478281c35b8c60f79:
trace: Immediately apply per-vCPU state changes if a vCPU is being created (2017-09-15 14:25:22 +0100)
----------------------------------------------------------------
----------------------------------------------------------------
Lluís Vilanova (1):
trace: Immediately apply per-vCPU state changes if a vCPU is being
created
trace/control-target.c | 18 +++++++++++------- 1 file changed, 11 insertions(+), 7 deletions(-)
Signature · 1 line
2.13.5
[Qemu-devel] [PULL 1/1] trace: Immediately apply per-vCPU state changes if a vCPU is being created
From: Lluís Vilanova <[email protected]>
Right now, function trace_event_set_vcpu_state_dynamic() asynchronously enables events in the case a vCPU is executing TCG code. If the vCPU is being created this makes some events like "guest_cpu_enter" to not be traced.
Message-id: [email protected]
--- trace/control-target.c | 18 +++++++++++------- 1 file changed, 11 insertions(+), 7 deletions(-)
trace/control-target.c +11 -7
@@ -88,13 +88,17 @@ void trace_event_set_vcpu_state_dynamic(CPUState *vcpu,clear_bit (vcpu_id, vcpu->trace_dstate_delayed); (*ev->dstate)--; } -/* -* Delay changes until next TB; we want all TBs to be built from a -* single set of dstate values to ensure consistency of generated -* tracing code. -*/ -async_run_on_cpu (vcpu, trace_event_synchronize_vcpu_state_dynamic, -RUN_ON_CPU_NULL ); +if (vcpu->created) { +/* +* Delay changes until next TB; we want all TBs to be built from a +* single set of dstate values to ensure consistency of generated +* tracing code. +*/ +async_run_on_cpu (vcpu, trace_event_synchronize_vcpu_state_dynamic, +RUN_ON_CPU_NULL ); + }else { +trace_event_synchronize_vcpu_state_dynamic (vcpu,RUN_ON_CPU_NULL ); + } } }
Signature · 1 line
2.13.5
Peter Maydell
AppliedQuoted 14 lines · Stefan Hajnoczi
The following changes since commit
3dabde1128b671f36ac6cb36b97b273139964420:Merge remote-tracking branch 'remotes/dgilbert/tags/pull-hmp-20170914' into staging (2017-09-14 16:33:02 +0100)
are available in the git repository at:
git://github.com/stefanha/qemu.gittags/tracing-pull-requestfor you to fetch changes up to
f99b38fc7c1bdf2dcc5e316478281c35b8c60f79:trace: Immediately apply per-vCPU state changes if a vCPU is being created (2017-09-15 14:25:22 +0100)
----------------------------------------------------------------
Quoted 8 lines
----------------------------------------------------------------
Lluís Vilanova (1):
trace: Immediately apply per-vCPU state changes if a vCPU is being
createdtrace/control-target.c | 18 +++++++++++------- 1 file changed, 11 insertions(+), 7 deletions(-)
Applied, thanks.
-- PMM