diff options
author | Lluís Vilanova <vilanova@ac.upc.edu> | 2016-07-11 12:53:41 +0200 |
---|---|---|
committer | Stefan Hajnoczi <stefanha@redhat.com> | 2016-07-18 18:23:12 +0100 |
commit | 4815185902971c41fcdd700fa1fc3e1d9299900f (patch) | |
tree | fcdcdbb543e1ea9828e4e8820368675692f761f3 /qom/cpu.c | |
parent | e1d6e0a4c0e23b30501b887211f1fa6e0eb799a3 (diff) | |
download | qemu-4815185902971c41fcdd700fa1fc3e1d9299900f.zip qemu-4815185902971c41fcdd700fa1fc3e1d9299900f.tar.gz qemu-4815185902971c41fcdd700fa1fc3e1d9299900f.tar.bz2 |
trace: Add per-vCPU tracing states for events with the 'vcpu' property
Each vCPU gets a 'trace_dstate' bitmap to control the per-vCPU dynamic
tracing state of events with the 'vcpu' property.
Signed-off-by: Lluís Vilanova <vilanova@ac.upc.edu>
Signed-off-by: Stefan Hajnoczi <stefanha@redhat.com>
Diffstat (limited to 'qom/cpu.c')
-rw-r--r-- | qom/cpu.c | 1 |
1 files changed, 1 insertions, 0 deletions
@@ -345,6 +345,7 @@ static void cpu_common_initfn(Object *obj) qemu_mutex_init(&cpu->work_mutex); QTAILQ_INIT(&cpu->breakpoints); QTAILQ_INIT(&cpu->watchpoints); + bitmap_zero(cpu->trace_dstate, TRACE_VCPU_EVENT_COUNT); } static void cpu_common_finalize(Object *obj) |