[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20150519153604.GF26335@zion.uk.xensource.com>
Date: Tue, 19 May 2015 16:36:04 +0100
From: Wei Liu <wei.liu2@...rix.com>
To: Joao Martins <joao.martins@...lab.eu>
CC: <xen-devel@...ts.xenproject.org>, <netdev@...r.kernel.org>,
<wei.liu2@...rix.com>, <ian.campbell@...rix.com>,
<david.vrabel@...rix.com>, <boris.ostrovsky@...cle.com>,
<konrad.wilk@...cle.com>
Subject: Re: [RFC PATCH 07/13] xen-netback: add persistent tree counters to
debugfs
On Tue, May 12, 2015 at 07:18:31PM +0200, Joao Martins wrote:
> Prints the total/max number of persistent grants and how many of
> them are in use.
>
> Signed-off-by: Joao Martins <joao.martins@...lab.eu>
Reviewed-by: Wei Liu <wei.liu2@...rix.com>
> ---
> drivers/net/xen-netback/xenbus.c | 11 +++++++++++
> 1 file changed, 11 insertions(+)
>
> diff --git a/drivers/net/xen-netback/xenbus.c b/drivers/net/xen-netback/xenbus.c
> index 766f7e5..1e6f27a 100644
> --- a/drivers/net/xen-netback/xenbus.c
> +++ b/drivers/net/xen-netback/xenbus.c
> @@ -121,6 +121,17 @@ static int xenvif_read_io_ring(struct seq_file *m, void *v)
> skb_queue_len(&queue->rx_queue),
> netif_tx_queue_stopped(dev_queue) ? "stopped" : "running");
>
> + if (queue->vif->persistent_grants) {
> + seq_printf(m, "\nRx persistent_gnts: in_use %d max %d gnts %d\n",
> + atomic_read(&queue->rx_gnts_tree.gnt_in_use),
> + queue->rx_gnts_tree.gnt_max,
> + queue->rx_gnts_tree.gnt_c);
> + seq_printf(m, "\nTx persistent_gnts: in_use %d max %d gnts %d\n",
> + atomic_read(&queue->tx_gnts_tree.gnt_in_use),
> + queue->tx_gnts_tree.gnt_max,
> + queue->tx_gnts_tree.gnt_c);
> + }
> +
> return 0;
> }
>
> --
> 2.1.3
--
To unsubscribe from this list: send the line "unsubscribe netdev" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Powered by blists - more mailing lists