Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 16 Aug 2014 13:13:18 +0000 (UTC)
From:      Luigi Rizzo <luigi@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r270046 - head/sys/dev/virtio
Message-ID:  <201408161313.s7GDDIk6037278@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: luigi
Date: Sat Aug 16 13:13:17 2014
New Revision: 270046
URL: http://svnweb.freebsd.org/changeset/base/270046

Log:
  print additional debugging info in virtqueue_dump()
  (not fundamental, but useful to debug performance issues on vtnet)
  
  MFC after:	3 days

Modified:
  head/sys/dev/virtio/virtqueue.c

Modified: head/sys/dev/virtio/virtqueue.c
==============================================================================
--- head/sys/dev/virtio/virtqueue.c	Sat Aug 16 13:11:59 2014	(r270045)
+++ head/sys/dev/virtio/virtqueue.c	Sat Aug 16 13:13:17 2014	(r270046)
@@ -605,11 +605,13 @@ virtqueue_dump(struct virtqueue *vq)
 
 	printf("VQ: %s - size=%d; free=%d; used=%d; queued=%d; "
 	    "desc_head_idx=%d; avail.idx=%d; used_cons_idx=%d; "
-	    "used.idx=%d; avail.flags=0x%x; used.flags=0x%x\n",
+	    "used.idx=%d; used_event_idx=%d; avail.flags=0x%x; used.flags=0x%x\n",
 	    vq->vq_name, vq->vq_nentries, vq->vq_free_cnt,
 	    virtqueue_nused(vq), vq->vq_queued_cnt, vq->vq_desc_head_idx,
 	    vq->vq_ring.avail->idx, vq->vq_used_cons_idx,
-	    vq->vq_ring.used->idx, vq->vq_ring.avail->flags,
+	    vq->vq_ring.used->idx,
+		vring_used_event(&vq->vq_ring),
+	    vq->vq_ring.avail->flags,
 	    vq->vq_ring.used->flags);
 }
 



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201408161313.s7GDDIk6037278>