From: Gollu Appalanaidu <anaidu.go...@samsung.com> Add a trace event for the offline zone condition when checking zone read.
Signed-off-by: Gollu Appalanaidu <anaidu.go...@samsung.com> [k.jensen: split commit] Signed-off-by: Klaus Jensen <k.jen...@samsung.com> --- hw/block/nvme.c | 1 + 1 file changed, 1 insertion(+) diff --git a/hw/block/nvme.c b/hw/block/nvme.c index dcd51a52951c..b641c7a45a2f 100644 --- a/hw/block/nvme.c +++ b/hw/block/nvme.c @@ -1241,6 +1241,7 @@ static uint16_t nvme_check_zone_state_for_read(NvmeZone *zone) case NVME_ZONE_STATE_READ_ONLY: return NVME_SUCCESS; case NVME_ZONE_STATE_OFFLINE: + trace_pci_nvme_err_zone_is_offline(zone->d.zslba); return NVME_ZONE_OFFLINE; default: assert(false); -- 2.30.1