diff options
author | Wey-Yi Guy <wey-yi.w.guy@intel.com> | 2009-08-07 18:41:39 -0400 |
---|---|---|
committer | John W. Linville <linville@tuxdriver.com> | 2009-08-14 09:13:46 -0400 |
commit | 20594eb0daa67f7a0cc19d74a1bafceb1bb09f4a (patch) | |
tree | 9ae022adef73139b524dcd7dde9c6f02809e8cf1 /drivers/net/wireless/iwlwifi/iwl-debug.h | |
parent | 7aafef1c6e2e24f9a10dc2972bf0ee70624ccc47 (diff) |
iwlwifi: new debugging feature for dumping data traffic
The traffic buffer will only beallocated and used if either bit 23
(IWL_DX_TX) or bit 24 (IWL_DL_RX) of "debug" is set;
example: "debug=0x800000" - log tx data traffic
"debug=0x1000000" - log rx data traffic
"debug=0x1800000" - log both tx and rx traffic
The traffic log will store the beginning portion (64 bytes) of the
latest 256 of tx and rx packets in the round-robbin buffer for
debugging,
user can examine the log through debugfs file.
How to display the current logged tx/rx traffic and txfifo and rxfifo
read/write point:
"cat traffic_log" in /sys/kernel/debug/ieee80211/phy0/iwlagn/debug
directory
By echo "0" to traffic_log file will empty the traffic log buffer and
reset both tx and rx taffic log index to 0.
Signed-off-by: Wey-Yi Guy <wey-yi.w.guy@intel.com>
Signed-off-by: Reinette Chatre <reinette.chatre@intel.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
Diffstat (limited to 'drivers/net/wireless/iwlwifi/iwl-debug.h')
-rw-r--r-- | drivers/net/wireless/iwlwifi/iwl-debug.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/drivers/net/wireless/iwlwifi/iwl-debug.h b/drivers/net/wireless/iwlwifi/iwl-debug.h index 09af046927ab..335ff5c43966 100644 --- a/drivers/net/wireless/iwlwifi/iwl-debug.h +++ b/drivers/net/wireless/iwlwifi/iwl-debug.h | |||
@@ -72,6 +72,7 @@ struct iwl_debugfs { | |||
72 | const char *name; | 72 | const char *name; |
73 | struct dentry *dir_drv; | 73 | struct dentry *dir_drv; |
74 | struct dentry *dir_data; | 74 | struct dentry *dir_data; |
75 | struct dentry *dir_debug; | ||
75 | struct dentry *dir_rf; | 76 | struct dentry *dir_rf; |
76 | struct dir_data_files { | 77 | struct dir_data_files { |
77 | struct dentry *file_sram; | 78 | struct dentry *file_sram; |
@@ -95,6 +96,9 @@ struct iwl_debugfs { | |||
95 | struct dentry *file_disable_chain_noise; | 96 | struct dentry *file_disable_chain_noise; |
96 | struct dentry *file_disable_tx_power; | 97 | struct dentry *file_disable_tx_power; |
97 | } dbgfs_rf_files; | 98 | } dbgfs_rf_files; |
99 | struct dir_debug_files { | ||
100 | struct dentry *file_traffic_log; | ||
101 | } dbgfs_debug_files; | ||
98 | u32 sram_offset; | 102 | u32 sram_offset; |
99 | u32 sram_len; | 103 | u32 sram_len; |
100 | }; | 104 | }; |