Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Macros | Functions
debugfs.c File Reference
#include <linux/slab.h>
#include <linux/kernel.h>
#include <linux/module.h>
#include <linux/debugfs.h>
#include <linux/ieee80211.h>
#include <net/mac80211.h>
#include "iwl-debug.h"
#include "iwl-io.h"
#include "dev.h"
#include "agn.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_ADD_U32(name, parent, ptr, mode)
 
#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)
 

Functions

 DEBUGFS_READ_WRITE_FILE_OPS (sram)
 
 DEBUGFS_READ_FILE_OPS (wowlan_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 (rx_handlers)
 
 DEBUGFS_READ_FILE_OPS (qos)
 
 DEBUGFS_READ_FILE_OPS (thermal_throttling)
 
 DEBUGFS_READ_WRITE_FILE_OPS (disable_ht40)
 
 DEBUGFS_READ_FILE_OPS (temperature)
 
 DEBUGFS_READ_WRITE_FILE_OPS (sleep_level_override)
 
 DEBUGFS_READ_FILE_OPS (current_sleep_command)
 
 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_statistics)
 
 DEBUGFS_READ_WRITE_FILE_OPS (ucode_tracing)
 
 DEBUGFS_READ_WRITE_FILE_OPS (missed_beacon)
 
 DEBUGFS_READ_WRITE_FILE_OPS (plcp_delta)
 
 DEBUGFS_READ_WRITE_FILE_OPS (rf_reset)
 
 DEBUGFS_READ_FILE_OPS (rxon_flags)
 
 DEBUGFS_READ_FILE_OPS (rxon_filter_flags)
 
 DEBUGFS_WRITE_FILE_OPS (txfifo_flush)
 
 DEBUGFS_READ_FILE_OPS (ucode_bt_stats)
 
 DEBUGFS_READ_FILE_OPS (bt_traffic)
 
 DEBUGFS_READ_WRITE_FILE_OPS (protection_mode)
 
 DEBUGFS_READ_FILE_OPS (reply_tx_error)
 
 DEBUGFS_WRITE_FILE_OPS (echo_test)
 
 DEBUGFS_READ_WRITE_FILE_OPS (calib_disabled)
 
int iwl_dbgfs_register (struct iwl_priv *priv, struct dentry *dbgfs_dir)
 

Macro Definition Documentation

#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 47 of file debugfs.c.

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

Definition at line 41 of file debugfs.c.

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

Definition at line 63 of file debugfs.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 55 of file debugfs.c.

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

Definition at line 83 of file debugfs.c.

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

Definition at line 72 of file debugfs.c.

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

Definition at line 100 of file debugfs.c.

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

Definition at line 91 of file debugfs.c.

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

Definition at line 77 of file debugfs.c.

Function Documentation

DEBUGFS_READ_FILE_OPS ( wowlan_sram  )
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 ( thermal_throttling  )
DEBUGFS_READ_FILE_OPS ( temperature  )
DEBUGFS_READ_FILE_OPS ( current_sleep_command  )
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 ( rxon_flags  )
DEBUGFS_READ_FILE_OPS ( rxon_filter_flags  )
DEBUGFS_READ_FILE_OPS ( ucode_bt_stats  )
DEBUGFS_READ_FILE_OPS ( bt_traffic  )
DEBUGFS_READ_FILE_OPS ( reply_tx_error  )
DEBUGFS_READ_WRITE_FILE_OPS ( sram  )
DEBUGFS_READ_WRITE_FILE_OPS ( rx_handlers  )
DEBUGFS_READ_WRITE_FILE_OPS ( disable_ht40  )
DEBUGFS_READ_WRITE_FILE_OPS ( sleep_level_override  )
DEBUGFS_READ_WRITE_FILE_OPS ( ucode_tracing  )
DEBUGFS_READ_WRITE_FILE_OPS ( missed_beacon  )
DEBUGFS_READ_WRITE_FILE_OPS ( plcp_delta  )
DEBUGFS_READ_WRITE_FILE_OPS ( rf_reset  )
DEBUGFS_READ_WRITE_FILE_OPS ( protection_mode  )
DEBUGFS_READ_WRITE_FILE_OPS ( calib_disabled  )
DEBUGFS_WRITE_FILE_OPS ( clear_ucode_statistics  )
DEBUGFS_WRITE_FILE_OPS ( txfifo_flush  )
DEBUGFS_WRITE_FILE_OPS ( echo_test  )
int iwl_dbgfs_register ( struct iwl_priv priv,
struct dentry dbgfs_dir 
)

Definition at line 2355 of file debugfs.c.