]>
git.proxmox.com Git - mirror_ubuntu-jammy-kernel.git/blob - include/trace/events/iscsi.h
2 #define TRACE_SYSTEM iscsi
4 #if !defined(_TRACE_ISCSI_H) || defined(TRACE_HEADER_MULTI_READ)
7 #include <linux/tracepoint.h>
9 /* max debug message length */
10 #define ISCSI_MSG_MAX 256
13 * Declare tracepoint helper function.
15 void iscsi_dbg_trace(void (*trace
)(struct device
*dev
, struct va_format
*),
16 struct device
*dev
, const char *fmt
, ...);
19 * Declare event class for iscsi debug messages.
21 DECLARE_EVENT_CLASS(iscsi_log_msg
,
23 TP_PROTO(struct device
*dev
, struct va_format
*vaf
),
28 __string(dname
, dev_name(dev
) )
29 __dynamic_array(char, msg
, ISCSI_MSG_MAX
)
33 __assign_str(dname
, dev_name(dev
));
34 vsnprintf(__get_str(msg
), ISCSI_MSG_MAX
, vaf
->fmt
, *vaf
->va
);
37 TP_printk("%s: %s",__get_str(dname
), __get_str(msg
)
42 * Define event to capture iscsi connection debug messages.
44 DEFINE_EVENT(iscsi_log_msg
, iscsi_dbg_conn
,
45 TP_PROTO(struct device
*dev
, struct va_format
*vaf
),
51 * Define event to capture iscsi session debug messages.
53 DEFINE_EVENT(iscsi_log_msg
, iscsi_dbg_session
,
54 TP_PROTO(struct device
*dev
, struct va_format
*vaf
),
60 * Define event to capture iscsi error handling debug messages.
62 DEFINE_EVENT(iscsi_log_msg
, iscsi_dbg_eh
,
63 TP_PROTO(struct device
*dev
, struct va_format
*vaf
),
69 * Define event to capture iscsi tcp debug messages.
71 DEFINE_EVENT(iscsi_log_msg
, iscsi_dbg_tcp
,
72 TP_PROTO(struct device
*dev
, struct va_format
*vaf
),
78 * Define event to capture iscsi sw tcp debug messages.
80 DEFINE_EVENT(iscsi_log_msg
, iscsi_dbg_sw_tcp
,
81 TP_PROTO(struct device
*dev
, struct va_format
*vaf
),
87 * Define event to capture iscsi transport session debug messages.
89 DEFINE_EVENT(iscsi_log_msg
, iscsi_dbg_trans_session
,
90 TP_PROTO(struct device
*dev
, struct va_format
*vaf
),
96 * Define event to capture iscsi transport connection debug messages.
98 DEFINE_EVENT(iscsi_log_msg
, iscsi_dbg_trans_conn
,
99 TP_PROTO(struct device
*dev
, struct va_format
*vaf
),
104 #endif /* _TRACE_ISCSI_H */
106 /* This part must be outside protection */
107 #include <trace/define_trace.h>