Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Macros | Functions
debug.c File Reference
#include <linux/ieee80211.h>
#include <linux/export.h>
#include <net/mac80211.h>
#include "common.h"

Go to the source code of this file.

Macros

#define DEBUGFS_ADD_FILE(name, parent, mode)
 
#define DEBUGFS_ADD_BOOL(name, parent, ptr)
 
#define DEBUGFS_ADD_X32(name, parent, ptr)
 
#define DEBUGFS_READ_FUNC(name)
 
#define DEBUGFS_WRITE_FUNC(name)
 
#define DEBUGFS_READ_FILE_OPS(name)
 
#define DEBUGFS_WRITE_FILE_OPS(name)
 
#define DEBUGFS_READ_WRITE_FILE_OPS(name)
 
#define BYTE1_MASK   0x000000ff;
 
#define BYTE2_MASK   0x0000ffff;
 
#define BYTE3_MASK   0x00ffffff;
 

Functions

void il_clear_traffic_stats (struct il_priv *il)
 
void il_update_stats (struct il_priv *il, bool is_tx, __le16 fc, u16 len)
 
 EXPORT_SYMBOL (il_update_stats)
 
 DEBUGFS_READ_WRITE_FILE_OPS (sram)
 
 DEBUGFS_READ_FILE_OPS (nvm)
 
 DEBUGFS_READ_FILE_OPS (stations)
 
 DEBUGFS_READ_FILE_OPS (channels)
 
 DEBUGFS_READ_FILE_OPS (status)
 
 DEBUGFS_READ_WRITE_FILE_OPS (interrupt)
 
 DEBUGFS_READ_FILE_OPS (qos)
 
 DEBUGFS_READ_WRITE_FILE_OPS (disable_ht40)
 
 DEBUGFS_READ_FILE_OPS (rx_stats)
 
 DEBUGFS_READ_FILE_OPS (tx_stats)
 
 DEBUGFS_READ_FILE_OPS (rx_queue)
 
 DEBUGFS_READ_FILE_OPS (tx_queue)
 
 DEBUGFS_READ_FILE_OPS (ucode_rx_stats)
 
 DEBUGFS_READ_FILE_OPS (ucode_tx_stats)
 
 DEBUGFS_READ_FILE_OPS (ucode_general_stats)
 
 DEBUGFS_READ_FILE_OPS (sensitivity)
 
 DEBUGFS_READ_FILE_OPS (chain_noise)
 
 DEBUGFS_READ_FILE_OPS (power_save_status)
 
 DEBUGFS_WRITE_FILE_OPS (clear_ucode_stats)
 
 DEBUGFS_WRITE_FILE_OPS (clear_traffic_stats)
 
 DEBUGFS_READ_FILE_OPS (fh_reg)
 
 DEBUGFS_READ_WRITE_FILE_OPS (missed_beacon)
 
 DEBUGFS_READ_WRITE_FILE_OPS (force_reset)
 
 DEBUGFS_READ_FILE_OPS (rxon_flags)
 
 DEBUGFS_READ_FILE_OPS (rxon_filter_flags)
 
 DEBUGFS_WRITE_FILE_OPS (wd_timeout)
 
int il_dbgfs_register (struct il_priv *il, const char *name)
 
 EXPORT_SYMBOL (il_dbgfs_register)
 
void il_dbgfs_unregister (struct il_priv *il)
 
 EXPORT_SYMBOL (il_dbgfs_unregister)
 

Macro Definition Documentation

#define BYTE1_MASK   0x000000ff;

Definition at line 332 of file debug.c.

#define BYTE2_MASK   0x0000ffff;

Definition at line 333 of file debug.c.

#define BYTE3_MASK   0x00ffffff;

Definition at line 334 of file debug.c.

#define DEBUGFS_ADD_BOOL (   name,
  parent,
  ptr 
)
Value:
do { \
struct dentry *__tmp; \
parent, ptr); \
if (IS_ERR(__tmp) || !__tmp) \
goto err; \
} while (0)

Definition at line 136 of file debug.c.

#define DEBUGFS_ADD_FILE (   name,
  parent,
  mode 
)
Value:
do { \
if (!debugfs_create_file(#name, mode, parent, il, \
&il_dbgfs_##name##_ops)) \
goto err; \
} while (0)

Definition at line 130 of file debug.c.

#define DEBUGFS_ADD_X32 (   name,
  parent,
  ptr 
)
Value:
do { \
struct dentry *__tmp; \
parent, ptr); \
if (IS_ERR(__tmp) || !__tmp) \
goto err; \
} while (0)

Definition at line 144 of file debug.c.

#define DEBUGFS_READ_FILE_OPS (   name)
Value:
static const struct file_operations il_dbgfs_##name##_ops = { \
.read = il_dbgfs_##name##_read, \
.open = simple_open, \
.llseek = generic_file_llseek, \
};

Definition at line 164 of file debug.c.

#define DEBUGFS_READ_FUNC (   name)
Value:
static ssize_t il_dbgfs_##name##_read(struct file *file, \
char __user *user_buf, \
size_t count, loff_t *ppos);

Definition at line 153 of file debug.c.

#define DEBUGFS_READ_WRITE_FILE_OPS (   name)
Value:
DEBUGFS_WRITE_FUNC(name); \
static const struct file_operations il_dbgfs_##name##_ops = { \
.write = il_dbgfs_##name##_write, \
.read = il_dbgfs_##name##_read, \
.open = simple_open, \
.llseek = generic_file_llseek, \
};

Definition at line 180 of file debug.c.

#define DEBUGFS_WRITE_FILE_OPS (   name)
Value:
static const struct file_operations il_dbgfs_##name##_ops = { \
.write = il_dbgfs_##name##_write, \
.open = simple_open, \
.llseek = generic_file_llseek, \
};

Definition at line 172 of file debug.c.

#define DEBUGFS_WRITE_FUNC (   name)
Value:
static ssize_t il_dbgfs_##name##_write(struct file *file, \
const char __user *user_buf, \
size_t count, loff_t *ppos);

Definition at line 158 of file debug.c.

Function Documentation

DEBUGFS_READ_FILE_OPS ( nvm  )
DEBUGFS_READ_FILE_OPS ( stations  )
DEBUGFS_READ_FILE_OPS ( channels  )
DEBUGFS_READ_FILE_OPS ( status  )
DEBUGFS_READ_FILE_OPS ( qos  )
DEBUGFS_READ_FILE_OPS ( rx_stats  )
DEBUGFS_READ_FILE_OPS ( tx_stats  )
DEBUGFS_READ_FILE_OPS ( rx_queue  )
DEBUGFS_READ_FILE_OPS ( tx_queue  )
DEBUGFS_READ_FILE_OPS ( ucode_rx_stats  )
DEBUGFS_READ_FILE_OPS ( ucode_tx_stats  )
DEBUGFS_READ_FILE_OPS ( ucode_general_stats  )
DEBUGFS_READ_FILE_OPS ( sensitivity  )
DEBUGFS_READ_FILE_OPS ( chain_noise  )
DEBUGFS_READ_FILE_OPS ( power_save_status  )
DEBUGFS_READ_FILE_OPS ( fh_reg  )
DEBUGFS_READ_FILE_OPS ( rxon_flags  )
DEBUGFS_READ_FILE_OPS ( rxon_filter_flags  )
DEBUGFS_READ_WRITE_FILE_OPS ( sram  )
DEBUGFS_READ_WRITE_FILE_OPS ( interrupt  )
DEBUGFS_READ_WRITE_FILE_OPS ( disable_ht40  )
DEBUGFS_READ_WRITE_FILE_OPS ( missed_beacon  )
DEBUGFS_READ_WRITE_FILE_OPS ( force_reset  )
DEBUGFS_WRITE_FILE_OPS ( clear_ucode_stats  )
DEBUGFS_WRITE_FILE_OPS ( clear_traffic_stats  )
DEBUGFS_WRITE_FILE_OPS ( wd_timeout  )
EXPORT_SYMBOL ( il_update_stats  )
EXPORT_SYMBOL ( il_dbgfs_register  )
EXPORT_SYMBOL ( il_dbgfs_unregister  )
void il_clear_traffic_stats ( struct il_priv il)

Definition at line 35 of file debug.c.

int il_dbgfs_register ( struct il_priv il,
const char name 
)

Definition at line 1351 of file debug.c.

void il_dbgfs_unregister ( struct il_priv il)

Remove the debugfs files and directories

Definition at line 1422 of file debug.c.

void il_update_stats ( struct il_priv il,
bool  is_tx,
__le16  fc,
u16  len 
)

Definition at line 46 of file debug.c.