aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/wireless/iwlwifi/iwl-dev.h
diff options
context:
space:
mode:
authorWey-Yi Guy <wey-yi.w.guy@intel.com>2009-04-08 14:39:32 -0400
committerJohn W. Linville <linville@tuxdriver.com>2009-04-22 16:54:44 -0400
commita83b9141b540f96dd59409c6487828e880113a29 (patch)
tree040301dd80eb0307c9dcd5208f88082b4d3922cf /drivers/net/wireless/iwlwifi/iwl-dev.h
parent1620108910b07bc41f4ad462ca56e899faf7e61a (diff)
iwlwifi: adding interrupt counter in debugfs for debugging
This patch adds interrupt statistics report to debugfs, this can help to understand number of interrupts happened which including HW/SW error for easier and better debugging. in /sys/kernel/debug/ieee80211/phyN/iwlagn/data directory use "cat interrupt" to view the current interrupt counter use "echo 0 > interrupt" to clear interrupt counter 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-dev.h')
-rw-r--r--drivers/net/wireless/iwlwifi/iwl-dev.h18
1 files changed, 18 insertions, 0 deletions
diff --git a/drivers/net/wireless/iwlwifi/iwl-dev.h b/drivers/net/wireless/iwlwifi/iwl-dev.h
index 59930f398f31..0922e33a7d42 100644
--- a/drivers/net/wireless/iwlwifi/iwl-dev.h
+++ b/drivers/net/wireless/iwlwifi/iwl-dev.h
@@ -819,6 +819,21 @@ enum {
819 MEASUREMENT_ACTIVE = (1 << 1), 819 MEASUREMENT_ACTIVE = (1 << 1),
820}; 820};
821 821
822/* interrupt statistics */
823struct isr_statistics {
824 u32 hw;
825 u32 sw;
826 u32 sw_err;
827 u32 sch;
828 u32 alive;
829 u32 rfkill;
830 u32 ctkill;
831 u32 wakeup;
832 u32 rx;
833 u32 rx_handlers[REPLY_MAX];
834 u32 tx;
835 u32 unhandled;
836};
822 837
823#define IWL_MAX_NUM_QUEUES 20 /* FIXME: do dynamic allocation */ 838#define IWL_MAX_NUM_QUEUES 20 /* FIXME: do dynamic allocation */
824 839
@@ -975,6 +990,9 @@ struct iwl_priv {
975 u64 bytes; 990 u64 bytes;
976 } tx_stats[3], rx_stats[3]; 991 } tx_stats[3], rx_stats[3];
977 992
993 /* counts interrupts */
994 struct isr_statistics isr_stats;
995
978 struct iwl_power_mgr power_data; 996 struct iwl_power_mgr power_data;
979 997
980 struct iwl_notif_statistics statistics; 998 struct iwl_notif_statistics statistics;