Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Macros | Functions
zfcp_dbf.c File Reference
#include <linux/module.h>
#include <linux/ctype.h>
#include <linux/slab.h>
#include <asm/debug.h>
#include "zfcp_dbf.h"
#include "zfcp_ext.h"
#include "zfcp_fc.h"

Go to the source code of this file.

Macros

#define KMSG_COMPONENT   "zfcp"
 
#define pr_fmt(fmt)   KMSG_COMPONENT ": " fmt
 

Functions

 module_param (dbfsize, uint, 0400)
 
 MODULE_PARM_DESC (dbfsize,"number of pages for each debug feature area (default 4)")
 
void zfcp_dbf_hba_fsf_res (char *tag, struct zfcp_fsf_req *req)
 
void zfcp_dbf_hba_fsf_uss (char *tag, struct zfcp_fsf_req *req)
 
void zfcp_dbf_hba_bit_err (char *tag, struct zfcp_fsf_req *req)
 
void zfcp_dbf_hba_def_err (struct zfcp_adapter *adapter, u64 req_id, u16 scount, void **pl)
 
void zfcp_dbf_hba_basic (char *tag, struct zfcp_adapter *adapter)
 
void zfcp_dbf_rec_trig (char *tag, struct zfcp_adapter *adapter, struct zfcp_port *port, struct scsi_device *sdev, u8 want, u8 need)
 
void zfcp_dbf_rec_run (char *tag, struct zfcp_erp_action *erp)
 
void zfcp_dbf_san_req (char *tag, struct zfcp_fsf_req *fsf, u32 d_id)
 
void zfcp_dbf_san_res (char *tag, struct zfcp_fsf_req *fsf)
 
void zfcp_dbf_san_in_els (char *tag, struct zfcp_fsf_req *fsf)
 
void zfcp_dbf_scsi (char *tag, struct scsi_cmnd *sc, struct zfcp_fsf_req *fsf)
 
int zfcp_dbf_adapter_register (struct zfcp_adapter *adapter)
 
void zfcp_dbf_adapter_unregister (struct zfcp_adapter *adapter)
 

Macro Definition Documentation

#define KMSG_COMPONENT   "zfcp"

Definition at line 9 of file zfcp_dbf.c.

#define pr_fmt (   fmt)    KMSG_COMPONENT ": " fmt

Definition at line 10 of file zfcp_dbf.c.

Function Documentation

module_param ( dbfsize  ,
uint  ,
0400   
)
MODULE_PARM_DESC ( dbfsize  ,
"number of pages for each debug feature area (default 4)"   
)
int zfcp_dbf_adapter_register ( struct zfcp_adapter adapter)

zfcp_adapter_debug_register - registers debug feature for an adapter : pointer to adapter for which debug features should be registered return: -ENOMEM on error, 0 otherwise

Definition at line 473 of file zfcp_dbf.c.

void zfcp_dbf_adapter_unregister ( struct zfcp_adapter adapter)

zfcp_adapter_debug_unregister - unregisters debug feature for an adapter : pointer to adapter for which debug features should be unregistered

Definition at line 530 of file zfcp_dbf.c.

void zfcp_dbf_hba_basic ( char tag,
struct zfcp_adapter adapter 
)

zfcp_dbf_hba_basic - trace event for basic adapter events : pointer to struct zfcp_adapter

Definition at line 207 of file zfcp_dbf.c.

void zfcp_dbf_hba_bit_err ( char tag,
struct zfcp_fsf_req req 
)

zfcp_dbf_hba_bit_err - trace event for bit error conditions : tag indicating which kind of unsolicited status has been received : request which caused the bit_error condition

Definition at line 145 of file zfcp_dbf.c.

void zfcp_dbf_hba_def_err ( struct zfcp_adapter adapter,
u64  req_id,
u16  scount,
void **  pl 
)

zfcp_dbf_hba_def_err - trace event for deferred error messages : pointer to struct zfcp_adapter : request id which caused the deferred error message : number of sbals incl. the signaling sbal : array of all involved sbals

Definition at line 174 of file zfcp_dbf.c.

void zfcp_dbf_hba_fsf_res ( char tag,
struct zfcp_fsf_req req 
)

zfcp_dbf_hba_fsf_res - trace event for fsf responses : tag indicating which kind of unsolicited status has been received : request for which a response was received

Definition at line 61 of file zfcp_dbf.c.

void zfcp_dbf_hba_fsf_uss ( char tag,
struct zfcp_fsf_req req 
)

zfcp_dbf_hba_fsf_uss - trace event for an unsolicited status buffer : tag indicating which kind of unsolicited status has been received : request providing the unsolicited status

Definition at line 102 of file zfcp_dbf.c.

void zfcp_dbf_rec_run ( char tag,
struct zfcp_erp_action erp 
)

zfcp_dbf_rec_run - trace event related to running recovery : identifier for event : erp_action running

Definition at line 286 of file zfcp_dbf.c.

void zfcp_dbf_rec_trig ( char tag,
struct zfcp_adapter adapter,
struct zfcp_port port,
struct scsi_device sdev,
u8  want,
u8  need 
)

zfcp_dbf_rec_trig - trace event related to triggered recovery : identifier for event : adapter on which the erp_action should run : remote port involved in the erp_action : scsi device involved in the erp_action : wanted erp_action : required erp_action

The adapter->erp_lock has to be held.

Definition at line 251 of file zfcp_dbf.c.

void zfcp_dbf_san_in_els ( char tag,
struct zfcp_fsf_req fsf 
)

zfcp_dbf_san_in_els - trace event for incoming ELS : indentifier for event : request containing issued CT data

Definition at line 376 of file zfcp_dbf.c.

void zfcp_dbf_san_req ( char tag,
struct zfcp_fsf_req fsf,
u32  d_id 
)

zfcp_dbf_san_req - trace event for issued SAN request : indentifier for event : request containing issued CT data d_id: destination ID

Definition at line 344 of file zfcp_dbf.c.

void zfcp_dbf_san_res ( char tag,
struct zfcp_fsf_req fsf 
)

zfcp_dbf_san_res - trace event for received SAN request : indentifier for event : request containing issued CT data

Definition at line 360 of file zfcp_dbf.c.

void zfcp_dbf_scsi ( char tag,
struct scsi_cmnd sc,
struct zfcp_fsf_req fsf 
)

zfcp_dbf_scsi - trace event for scsi commands : identifier for event : pointer to struct scsi_cmnd : pointer to struct zfcp_fsf_req

Definition at line 395 of file zfcp_dbf.c.