From 0017758fc1a423c5751ee2206ac1bb6714871321 Mon Sep 17 00:00:00 2001 From: ligd Date: Wed, 11 May 2022 22:17:02 +0800 Subject: [PATCH] rptun: add dump vring info support Signed-off-by: ligd --- drivers/rptun/rptun_dump.c | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/drivers/rptun/rptun_dump.c b/drivers/rptun/rptun_dump.c index 7e7f0a9440..aee87fb41c 100644 --- a/drivers/rptun/rptun_dump.c +++ b/drivers/rptun/rptun_dump.c @@ -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)