-----BEGIN PGP SIGNATURE-----
iQEcBAABAgAGBQJZFcjPAAoJEJykq7OBq3PIj0AH/iHH1SJthVn/4psSG2v99WkZ wPEUA72u48jZzA5/anf6B2EIXyJczBpMHwlNhrPZ4QuZqiP3E2ivyBPT4eKn8f06 dFm+9Up2WccFRAB3BMUJ+x3aUFCnBXTY5zHsDeE5pGp2eOi+07xdzLGI2j660ouB ltiJGHuxfnQs1vwcx69gh7Q9o1Eeq+3jSBHHIWllwPg9hT0eZxZinu2xSbw+ATFl 3NeWD9kF8afIqvUg0p66Jpmyp2oFijIWjcRU03pGP1NUAxq4FU22JJhGz0casFji Sur6EWQ0nxXbEHXVwuvbq84fktXWFHMhXeKIAU3aQykqi6zZyMxB0OazzQVSMn4= =qACI -----END PGP SIGNATURE----- Merge tag 'tracing-pull-request' into staging # gpg: Signature made Fri 12 May 2017 10:38:07 AM EDT # gpg: using RSA key 0x9CA4ABB381AB73C8 # gpg: Good signature from "Stefan Hajnoczi <stefanha@redhat.com>" # gpg: aka "Stefan Hajnoczi <stefanha@gmail.com>" # Primary key fingerprint: 8695 A8BF D3F9 7CDA AC35 775A 9CA4 ABB3 81AB 73C8 * tag 'tracing-pull-request': trace: add sanity check Signed-off-by: Stefan Hajnoczi <stefanha@redhat.com>
This commit is contained in:
commit
3a8760664d
@ -382,6 +382,7 @@ static void cpu_common_unrealizefn(DeviceState *dev, Error **errp)
|
||||
|
||||
static void cpu_common_initfn(Object *obj)
|
||||
{
|
||||
uint32_t count;
|
||||
CPUState *cpu = CPU(obj);
|
||||
CPUClass *cc = CPU_GET_CLASS(obj);
|
||||
|
||||
@ -396,7 +397,10 @@ static void cpu_common_initfn(Object *obj)
|
||||
QTAILQ_INIT(&cpu->breakpoints);
|
||||
QTAILQ_INIT(&cpu->watchpoints);
|
||||
|
||||
cpu->trace_dstate = bitmap_new(trace_get_vcpu_event_count());
|
||||
count = trace_get_vcpu_event_count();
|
||||
if (count) {
|
||||
cpu->trace_dstate = bitmap_new(count);
|
||||
}
|
||||
|
||||
cpu_exec_initfn(cpu);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user