diff options
author | Wey-Yi Guy <wey-yi.w.guy@intel.com> | 2009-12-14 17:12:20 -0500 |
---|---|---|
committer | John W. Linville <linville@tuxdriver.com> | 2009-12-21 18:56:18 -0500 |
commit | b03d7d0fd3d23b7cf130fa702f4ae3b1bc827d4b (patch) | |
tree | f841ac15c38fe72b53bd80339962d7677d5b3566 /drivers/net/wireless/iwlwifi/iwl-core.h | |
parent | a9e1cb6a78ea8a74c49bf76726a2942f636a833b (diff) |
iwlwifi: on-screen event log dump
This feature enables the on-screen uCode event log dump. The original
method will append the event log to syslog; with this capability,
we also enable the user to write script to capture the
events which provide additional flexibility to help uCode debugging
Method
1) change to debugfs directory (sys/kernel/debug/phyX/iwlagn/data)
2) #cat log_event
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-core.h')
-rw-r--r-- | drivers/net/wireless/iwlwifi/iwl-core.h | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/drivers/net/wireless/iwlwifi/iwl-core.h b/drivers/net/wireless/iwlwifi/iwl-core.h index f5e79cf0a318..650d3808d24a 100644 --- a/drivers/net/wireless/iwlwifi/iwl-core.h +++ b/drivers/net/wireless/iwlwifi/iwl-core.h | |||
@@ -169,7 +169,8 @@ struct iwl_lib_ops { | |||
169 | int (*is_valid_rtc_data_addr)(u32 addr); | 169 | int (*is_valid_rtc_data_addr)(u32 addr); |
170 | /* 1st ucode load */ | 170 | /* 1st ucode load */ |
171 | int (*load_ucode)(struct iwl_priv *priv); | 171 | int (*load_ucode)(struct iwl_priv *priv); |
172 | void (*dump_nic_event_log)(struct iwl_priv *priv, bool full_log); | 172 | int (*dump_nic_event_log)(struct iwl_priv *priv, |
173 | bool full_log, char **buf, bool display); | ||
173 | void (*dump_nic_error_log)(struct iwl_priv *priv); | 174 | void (*dump_nic_error_log)(struct iwl_priv *priv); |
174 | void (*dump_csr)(struct iwl_priv *priv); | 175 | void (*dump_csr)(struct iwl_priv *priv); |
175 | int (*set_channel_switch)(struct iwl_priv *priv, u16 channel); | 176 | int (*set_channel_switch)(struct iwl_priv *priv, u16 channel); |
@@ -582,7 +583,8 @@ int iwl_pci_resume(struct pci_dev *pdev); | |||
582 | * Error Handling Debugging | 583 | * Error Handling Debugging |
583 | ******************************************************/ | 584 | ******************************************************/ |
584 | void iwl_dump_nic_error_log(struct iwl_priv *priv); | 585 | void iwl_dump_nic_error_log(struct iwl_priv *priv); |
585 | void iwl_dump_nic_event_log(struct iwl_priv *priv, bool full_log); | 586 | int iwl_dump_nic_event_log(struct iwl_priv *priv, |
587 | bool full_log, char **buf, bool display); | ||
586 | void iwl_dump_csr(struct iwl_priv *priv); | 588 | void iwl_dump_csr(struct iwl_priv *priv); |
587 | #ifdef CONFIG_IWLWIFI_DEBUG | 589 | #ifdef CONFIG_IWLWIFI_DEBUG |
588 | void iwl_print_rx_config_cmd(struct iwl_priv *priv); | 590 | void iwl_print_rx_config_cmd(struct iwl_priv *priv); |