All of lore.kernel.org
 help / color / mirror / Atom feed
From: "Alina Friedrichsen" <x-alina@gmx.net>
To: linux-wireless@vger.kernel.org, linville@tuxdriver.com,
	johannes@sipsolutions.net
Subject: [PATCH v2] mac80211: Read the TSF via debugfs
Date: Fri, 23 Jan 2009 05:33:37 +0100	[thread overview]
Message-ID: <20090123043337.270720@gmx.net> (raw)

This patch adds an low-level driver independent entry to read the TSF v=
alue into the debugfs of mac80211. This makes debugging the IBSS handli=
ng of wifi drivers easier.

Signed-off-by: Alina Friedrichsen <x-alina@gmx.net>
---
diff -urN compat-wireless-2009-01-22.orig/net/mac80211/debugfs.c compat=
-wireless-2009-01-22/net/mac80211/debugfs.c
--- compat-wireless-2009-01-22.orig/net/mac80211/debugfs.c	2009-01-22 2=
0:51:46.000000000 +0100
+++ compat-wireless-2009-01-22/net/mac80211/debugfs.c	2009-01-23 03:49:=
45.000000000 +0100
@@ -61,6 +61,8 @@
 		      local->wep_iv & 0xffffff);
 DEBUGFS_READONLY_FILE(rate_ctrl_alg, 100, "%s",
 		      local->rate_ctrl ? local->rate_ctrl->ops->name : "<unset>");
+DEBUGFS_READONLY_FILE(tsf, 20, "%#018llx",
+                      (unsigned long long) (local->ops->get_tsf ? loca=
l->ops->get_tsf(local_to_hw(local)) : 0));
=20
 /* statistics stuff */
=20
@@ -202,6 +204,7 @@
 	DEBUGFS_ADD(long_retry_limit);
 	DEBUGFS_ADD(total_ps_buffered);
 	DEBUGFS_ADD(wep_iv);
+	DEBUGFS_ADD(tsf);
=20
 	statsd =3D debugfs_create_dir("statistics", phyd);
 	local->debugfs.statistics =3D statsd;
@@ -255,6 +258,7 @@
 	DEBUGFS_DEL(long_retry_limit);
 	DEBUGFS_DEL(total_ps_buffered);
 	DEBUGFS_DEL(wep_iv);
+	DEBUGFS_DEL(tsf);
=20
 	DEBUGFS_STATS_DEL(transmitted_fragment_count);
 	DEBUGFS_STATS_DEL(multicast_transmitted_frame_count);
diff -urN compat-wireless-2009-01-22.orig/net/mac80211/ieee80211_i.h co=
mpat-wireless-2009-01-22/net/mac80211/ieee80211_i.h
--- compat-wireless-2009-01-22.orig/net/mac80211/ieee80211_i.h	2009-01-=
22 20:51:46.000000000 +0100
+++ compat-wireless-2009-01-22/net/mac80211/ieee80211_i.h	2009-01-23 03=
:55:44.000000000 +0100
@@ -744,6 +744,7 @@
 		struct dentry *long_retry_limit;
 		struct dentry *total_ps_buffered;
 		struct dentry *wep_iv;
+		struct dentry *tsf;
 		struct dentry *statistics;
 		struct local_debugfsdentries_statsdentries {
 			struct dentry *transmitted_fragment_count;

--=20
Psssst! Schon vom neuen GMX MultiMessenger geh=F6rt? Der kann`s mit all=
en: http://www.gmx.net/de/go/multimessenger
--
To unsubscribe from this list: send the line "unsubscribe linux-wireles=
s" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

             reply	other threads:[~2009-01-23  4:33 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-01-23  4:33 Alina Friedrichsen [this message]
2009-01-23 13:47 ` [PATCH v2] mac80211: Read the TSF via debugfs Luis R. Rodriguez
2009-01-23 16:37   ` Johannes Berg
2009-01-23 22:43   ` Alina Friedrichsen

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=20090123043337.270720@gmx.net \
    --to=x-alina@gmx.net \
    --cc=johannes@sipsolutions.net \
    --cc=linux-wireless@vger.kernel.org \
    --cc=linville@tuxdriver.com \
    /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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.