diff options
author | Catherine Sullivan <catherine.sullivan@intel.com> | 2012-08-09 21:59:10 -0400 |
---|---|---|
committer | Jeff Kirsher <jeffrey.t.kirsher@intel.com> | 2012-09-15 19:15:00 -0400 |
commit | 00949167d6f34f83e9e185ab4f7a3a94bf4c5a1c (patch) | |
tree | 7e830a22a0f673ca8ee97337f5f76dd923d07652 /drivers/net/ethernet/intel/ixgbe/ixgbe.h | |
parent | d6ea07545226cd2590fc21601051dc1493c5ef9e (diff) |
ixgbe: add debugfs support
This patch adds debugfs support to the ixgbe driver to give
users the ability to access kernel information and to
simulate kernel events.
The filesystem is set up in the following driver/PCI-instance
hierarchy:
<debugfs>
|-- ixgbe
|-- PCI instance
| |-- attribute files
Signed-off-by: Catherine Sullivan <catherine.sullivan@intel.com>
Tested-by: Phil Schmitt <phillip.j.schmitt@intel.com>
Signed-off-by: Jeff Kirsher <jeffrey.t.kirsher@intel.com>
Diffstat (limited to 'drivers/net/ethernet/intel/ixgbe/ixgbe.h')
-rw-r--r-- | drivers/net/ethernet/intel/ixgbe/ixgbe.h | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/drivers/net/ethernet/intel/ixgbe/ixgbe.h b/drivers/net/ethernet/intel/ixgbe/ixgbe.h index bffcf1f2357a..5bd26763554c 100644 --- a/drivers/net/ethernet/intel/ixgbe/ixgbe.h +++ b/drivers/net/ethernet/intel/ixgbe/ixgbe.h | |||
@@ -597,6 +597,9 @@ struct ixgbe_adapter { | |||
597 | #ifdef CONFIG_IXGBE_HWMON | 597 | #ifdef CONFIG_IXGBE_HWMON |
598 | struct hwmon_buff ixgbe_hwmon_buff; | 598 | struct hwmon_buff ixgbe_hwmon_buff; |
599 | #endif /* CONFIG_IXGBE_HWMON */ | 599 | #endif /* CONFIG_IXGBE_HWMON */ |
600 | #ifdef CONFIG_DEBUG_FS | ||
601 | struct dentry *ixgbe_dbg_adapter; | ||
602 | #endif /*CONFIG_DEBUG_FS*/ | ||
600 | }; | 603 | }; |
601 | 604 | ||
602 | struct ixgbe_fdir_filter { | 605 | struct ixgbe_fdir_filter { |
@@ -725,7 +728,12 @@ extern int ixgbe_fcoe_get_hbainfo(struct net_device *netdev, | |||
725 | struct netdev_fcoe_hbainfo *info); | 728 | struct netdev_fcoe_hbainfo *info); |
726 | extern u8 ixgbe_fcoe_get_tc(struct ixgbe_adapter *adapter); | 729 | extern u8 ixgbe_fcoe_get_tc(struct ixgbe_adapter *adapter); |
727 | #endif /* IXGBE_FCOE */ | 730 | #endif /* IXGBE_FCOE */ |
728 | 731 | #ifdef CONFIG_DEBUG_FS | |
732 | extern void ixgbe_dbg_adapter_init(struct ixgbe_adapter *adapter); | ||
733 | extern void ixgbe_dbg_adapter_exit(struct ixgbe_adapter *adapter); | ||
734 | extern void ixgbe_dbg_init(void); | ||
735 | extern void ixgbe_dbg_exit(void); | ||
736 | #endif /* CONFIG_DEBUG_FS */ | ||
729 | static inline struct netdev_queue *txring_txq(const struct ixgbe_ring *ring) | 737 | static inline struct netdev_queue *txring_txq(const struct ixgbe_ring *ring) |
730 | { | 738 | { |
731 | return netdev_get_tx_queue(ring->netdev, ring->queue_index); | 739 | return netdev_get_tx_queue(ring->netdev, ring->queue_index); |