Clement Deschamps
Builds for 1 pipeline passed in 6 minutes 4 seconds

qbox: added dmi traces

... ... @@ -228,6 +228,7 @@ uint64_t qbox_mmio_read(void *opaque, hwaddr addr, unsigned size)
case OK_RESPONSE: {
uint64_t ret = payload_get_value(qbox->payload);
if (payload_dmi_allowed(qbox->payload)) {
trace_qbox_dmi_hint();
qbox_create_region_from_dmi(addr);
}
return ret;
... ... @@ -281,6 +282,7 @@ void qbox_mmio_write(void *opaque, hwaddr addr, uint64_t value, unsigned size)
break;
case OK_RESPONSE:
if (payload_dmi_allowed(qbox->payload)) {
trace_qbox_dmi_hint();
qbox_create_region_from_dmi(addr);
}
return;
... ... @@ -336,10 +338,14 @@ int qbox_create_region_from_dmi(uint64_t address)
qdev_prop_set_ptr(DEVICE(dmi_interface), "host_ptr", dmi.pointer);
object_property_set_bool(OBJECT(dmi_interface), true, "realized", NULL);
trace_qbox_dmi_success(address, dmi.start_address, dmi.end_address, ro);
return 1;
}
else
{
trace_qbox_dmi_error(address);
return 0;
}
}
... ...
... ... @@ -8,4 +8,7 @@ qbox_end_of_quantum(uint64_t ns) "%"PRIu64" ns"
qbox_mmio_write(uint64_t addr, uint64_t val, int size) "[%08"PRIx64"] val=0x%"PRIx64", size=%d"
qbox_mmio_read(uint64_t addr, int size) "[%08"PRIx64"] size=%d"
qbox_eventi_level(int level) "eventi=%d"
qbox_dmi_hint(void) "dmi is allowed!"
qbox_dmi_success(uint64_t addr, uint64_t start, uint64_t end, int ro) "addr=0x%"PRIx64", range=[0x%"PRIx64", 0x%"PRIx64"], ro=%d"
qbox_dmi_error(uint64_t addr) "addr=0x%"PRIx64
... ...