From: Ben Greear <greearb@candelatech.com>
To: linux-wireless@vger.kernel.org
Cc: ath9k-devel@venema.h4ckr.net
Subject: Re: [PATCH] ath9k: Show some live tx-queue values in debugfs.
Date: Wed, 05 Jan 2011 09:48:19 -0800 [thread overview]
Message-ID: <4D24AEE3.6030202@candelatech.com> (raw)
In-Reply-To: <1291744549-7646-1-git-send-email-greearb@candelatech.com>
On 12/07/2010 09:55 AM, greearb@candelatech.com wrote:
> From: Ben Greear<greearb@candelatech.com>
>
> I thought this might help track down stuck queues, etc.
Any comments on this one? Seems it was never picked up...
Thanks,
Ben
>
> Signed-off-by: Ben Greear<greearb@candelatech.com>
> ---
> :100644 100644 3586c43... 5075faa... M drivers/net/wireless/ath/ath9k/debug.c
> drivers/net/wireless/ath/ath9k/debug.c | 16 ++++++++++++++++
> 1 files changed, 16 insertions(+), 0 deletions(-)
>
> diff --git a/drivers/net/wireless/ath/ath9k/debug.c b/drivers/net/wireless/ath/ath9k/debug.c
> index 3586c43..5075faa 100644
> --- a/drivers/net/wireless/ath/ath9k/debug.c
> +++ b/drivers/net/wireless/ath/ath9k/debug.c
> @@ -589,6 +589,16 @@ static const struct file_operations fops_wiphy = {
> sc->debug.stats.txstats[WME_AC_VO].elem); \
> } while(0)
>
> +#define PRX(str, elem) \
> +do { \
> + len += snprintf(buf + len, size - len, \
> + "%s%13u%11u%10u%10u\n", str, \
> + (unsigned int)(sc->tx.txq[WME_AC_BE].elem), \
> + (unsigned int)(sc->tx.txq[WME_AC_BK].elem), \
> + (unsigned int)(sc->tx.txq[WME_AC_VI].elem), \
> + (unsigned int)(sc->tx.txq[WME_AC_VO].elem)); \
> +} while(0)
> +
> static ssize_t read_file_xmit(struct file *file, char __user *user_buf,
> size_t count, loff_t *ppos)
> {
> @@ -619,6 +629,12 @@ static ssize_t read_file_xmit(struct file *file, char __user *user_buf,
> PR("TX-Pkts-All: ", tx_pkts_all);
> PR("TX-Bytes-All: ", tx_bytes_all);
>
> + PRX("axq-qnum: ", axq_qnum);
> + PRX("axq-depth: ", axq_depth);
> + PRX("axq-stopped ", stopped);
> + PRX("tx-in-progress ", axq_tx_inprogress);
> + PRX("pending-frames ", pending_frames);
> +
> if (len> size)
> len = size;
>
--
Ben Greear <greearb@candelatech.com>
Candela Technologies Inc http://www.candelatech.com
prev parent reply other threads:[~2011-01-05 17:48 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-12-07 17:55 [PATCH] ath9k: Show some live tx-queue values in debugfs greearb
2011-01-05 17:48 ` Ben Greear [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=4D24AEE3.6030202@candelatech.com \
--to=greearb@candelatech.com \
--cc=ath9k-devel@venema.h4ckr.net \
--cc=linux-wireless@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).