Merge tag 'scsi-misc' of git://git.kernel.org/pub/scm/linux/kernel/git/jejb/scsi
Pull SCSI updates from James Bottomley: "This is mostly update of the usual drivers: smarpqi, lpfc, qedi, megaraid_sas, libsas, zfcp, mpt3sas, hisi_sas. Additionally, we have a pile of annotation, unused variable and minor updates. The big API change is the updates for Christoph's DMA rework which include removing the DISABLE_CLUSTERING flag. And finally there are a couple of target tree updates" * tag 'scsi-misc' of git://git.kernel.org/pub/scm/linux/kernel/git/jejb/scsi: (259 commits) scsi: isci: request: mark expected switch fall-through scsi: isci: remote_node_context: mark expected switch fall-throughs scsi: isci: remote_device: Mark expected switch fall-throughs scsi: isci: phy: Mark expected switch fall-through scsi: iscsi: Capture iscsi debug messages using tracepoints scsi: myrb: Mark expected switch fall-throughs scsi: megaraid: fix out-of-bound array accesses scsi: mpt3sas: mpt3sas_scsih: Mark expected switch fall-through scsi: fcoe: remove set but not used variable 'port' scsi: smartpqi: call pqi_free_interrupts() in pqi_shutdown() scsi: smartpqi: fix build warnings scsi: smartpqi: update driver version scsi: smartpqi: add ofa support scsi: smartpqi: increase fw status register read timeout scsi: smartpqi: bump driver version scsi: smartpqi: add smp_utils support scsi: smartpqi: correct lun reset issues scsi: smartpqi: correct volume status scsi: smartpqi: do not offline disks for transient did no connect conditions scsi: smartpqi: allow for larger raid maps ...
This commit is contained in:
107
include/trace/events/iscsi.h
Normal file
107
include/trace/events/iscsi.h
Normal file
@@ -0,0 +1,107 @@
|
||||
#undef TRACE_SYSTEM
|
||||
#define TRACE_SYSTEM iscsi
|
||||
|
||||
#if !defined(_TRACE_ISCSI_H) || defined(TRACE_HEADER_MULTI_READ)
|
||||
#define _TRACE_ISCSI_H
|
||||
|
||||
#include <linux/tracepoint.h>
|
||||
|
||||
/* max debug message length */
|
||||
#define ISCSI_MSG_MAX 256
|
||||
|
||||
/*
|
||||
* Declare tracepoint helper function.
|
||||
*/
|
||||
void iscsi_dbg_trace(void (*trace)(struct device *dev, struct va_format *),
|
||||
struct device *dev, const char *fmt, ...);
|
||||
|
||||
/*
|
||||
* Declare event class for iscsi debug messages.
|
||||
*/
|
||||
DECLARE_EVENT_CLASS(iscsi_log_msg,
|
||||
|
||||
TP_PROTO(struct device *dev, struct va_format *vaf),
|
||||
|
||||
TP_ARGS(dev, vaf),
|
||||
|
||||
TP_STRUCT__entry(
|
||||
__string(dname, dev_name(dev) )
|
||||
__dynamic_array(char, msg, ISCSI_MSG_MAX )
|
||||
),
|
||||
|
||||
TP_fast_assign(
|
||||
__assign_str(dname, dev_name(dev));
|
||||
vsnprintf(__get_str(msg), ISCSI_MSG_MAX, vaf->fmt, *vaf->va);
|
||||
),
|
||||
|
||||
TP_printk("%s: %s",__get_str(dname), __get_str(msg)
|
||||
)
|
||||
);
|
||||
|
||||
/*
|
||||
* Define event to capture iscsi connection debug messages.
|
||||
*/
|
||||
DEFINE_EVENT(iscsi_log_msg, iscsi_dbg_conn,
|
||||
TP_PROTO(struct device *dev, struct va_format *vaf),
|
||||
|
||||
TP_ARGS(dev, vaf)
|
||||
);
|
||||
|
||||
/*
|
||||
* Define event to capture iscsi session debug messages.
|
||||
*/
|
||||
DEFINE_EVENT(iscsi_log_msg, iscsi_dbg_session,
|
||||
TP_PROTO(struct device *dev, struct va_format *vaf),
|
||||
|
||||
TP_ARGS(dev, vaf)
|
||||
);
|
||||
|
||||
/*
|
||||
* Define event to capture iscsi error handling debug messages.
|
||||
*/
|
||||
DEFINE_EVENT(iscsi_log_msg, iscsi_dbg_eh,
|
||||
TP_PROTO(struct device *dev, struct va_format *vaf),
|
||||
|
||||
TP_ARGS(dev, vaf)
|
||||
);
|
||||
|
||||
/*
|
||||
* Define event to capture iscsi tcp debug messages.
|
||||
*/
|
||||
DEFINE_EVENT(iscsi_log_msg, iscsi_dbg_tcp,
|
||||
TP_PROTO(struct device *dev, struct va_format *vaf),
|
||||
|
||||
TP_ARGS(dev, vaf)
|
||||
);
|
||||
|
||||
/*
|
||||
* Define event to capture iscsi sw tcp debug messages.
|
||||
*/
|
||||
DEFINE_EVENT(iscsi_log_msg, iscsi_dbg_sw_tcp,
|
||||
TP_PROTO(struct device *dev, struct va_format *vaf),
|
||||
|
||||
TP_ARGS(dev, vaf)
|
||||
);
|
||||
|
||||
/*
|
||||
* Define event to capture iscsi transport session debug messages.
|
||||
*/
|
||||
DEFINE_EVENT(iscsi_log_msg, iscsi_dbg_trans_session,
|
||||
TP_PROTO(struct device *dev, struct va_format *vaf),
|
||||
|
||||
TP_ARGS(dev, vaf)
|
||||
);
|
||||
|
||||
/*
|
||||
* Define event to capture iscsi transport connection debug messages.
|
||||
*/
|
||||
DEFINE_EVENT(iscsi_log_msg, iscsi_dbg_trans_conn,
|
||||
TP_PROTO(struct device *dev, struct va_format *vaf),
|
||||
|
||||
TP_ARGS(dev, vaf)
|
||||
);
|
||||
|
||||
#endif /* _TRACE_ISCSI_H */
|
||||
|
||||
/* This part must be outside protection */
|
||||
#include <trace/define_trace.h>
|
Reference in New Issue
Block a user