aboutsummaryrefslogtreecommitdiff
path: root/hw/block/nvme.c
diff options
context:
space:
mode:
authorGollu Appalanaidu <anaidu.gollu@samsung.com>2021-02-22 19:32:21 +0100
committerKlaus Jensen <k.jensen@samsung.com>2021-03-09 11:00:57 +0100
commit49f0eba8b2bdc0c9aeaac620b978da7cb0fa947f (patch)
tree954de55d9f061aa272fce1663d6d0e04fa2856cb /hw/block/nvme.c
parent8c4d305f31f09064988e7f0a543dc94b7dbff2b2 (diff)
downloadqemu-49f0eba8b2bdc0c9aeaac620b978da7cb0fa947f.zip
qemu-49f0eba8b2bdc0c9aeaac620b978da7cb0fa947f.tar.gz
qemu-49f0eba8b2bdc0c9aeaac620b978da7cb0fa947f.tar.bz2
hw/block/nvme: add identify trace event
Add a trace event for the Identify command. Signed-off-by: Gollu Appalanaidu <anaidu.gollu@samsung.com> Signed-off-by: Klaus Jensen <k.jensen@samsung.com> Reviewed-by: Minwoo Im <minwoo.im.dev@gmail.com>
Diffstat (limited to 'hw/block/nvme.c')
-rw-r--r--hw/block/nvme.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/hw/block/nvme.c b/hw/block/nvme.c
index 64340a0..f5538fd 100644
--- a/hw/block/nvme.c
+++ b/hw/block/nvme.c
@@ -3422,6 +3422,9 @@ static uint16_t nvme_identify(NvmeCtrl *n, NvmeRequest *req)
{
NvmeIdentify *c = (NvmeIdentify *)&req->cmd;
+ trace_pci_nvme_identify(nvme_cid(req), c->cns, le16_to_cpu(c->ctrlid),
+ c->csi);
+
switch (c->cns) {
case NVME_ID_CNS_NS:
/* fall through */