rptun: add dump vring info support

Signed-off-by: ligd <liguiding1@xiaomi.com>
This commit is contained in:
ligd 2022-05-11 22:17:02 +08:00 committed by Xiang Xiao
parent a014a19f0e
commit 0017758fc1
1 changed files with 7 additions and 1 deletions

View File

@ -106,9 +106,15 @@ void rptun_dump(FAR struct rpmsg_virtio_device *rvdev)
}
metal_log(METAL_LOG_EMERGENCY,
"Dump rpmsg info between cpu %s <==> %s:\n",
"Dump rpmsg info between cpu (master: %s)%s <==> %s:\n",
rpmsg_virtio_get_role(rvdev) == RPMSG_MASTER ? "yes" : "no",
CONFIG_RPTUN_LOCAL_CPUNAME, rpmsg_get_cpuname(rdev));
metal_log(METAL_LOG_EMERGENCY, "rpmsg vq RX:\n");
virtqueue_dump(rvdev->rvq);
metal_log(METAL_LOG_EMERGENCY, "rpmsg vq TX:\n");
virtqueue_dump(rvdev->svq);
metal_log(METAL_LOG_EMERGENCY, " rpmsg ept list:\n");
metal_list_for_each(&rdev->endpoints, node)