Merge tag 'ata-5.17-rc1' of git://git.kernel.org/pub/scm/linux/kernel/git/dlemoal/libata
Pull ATA updates from Damien Le Moal:
"A larger than usual set of changes for this cycle. The bulk of the
changes are part of a rework of libata messages and debugging features
from Hannes. In more detail, the changes are as follows.
- Small code cleanups in the pata_ali driver (unnecessary variable
initialization and simplified return statement, from Jason and
Colin.
- Switch to using struct_group() in the sata_fsl driver, from Kees.
- Convert many sysfs attribute show functions to use sysfs_emit()
instead of snprintf(), from me.
- sata_dwc_460ex driver code cleanups, from Andy.
- Improve DMA setup and remove superfluous error message in
libahci_platform, from Andy
- A small code cleanup in libata to use min() instead of open coding
test, from Changcheng.
- Rework of libata messages from Hannes. This is especially focused
on replacing compile time defined debugging messages (DPRINTK() and
VPRINTK()) with regular dynamic debugging messages (pr_debug()) and
traceipoint events. Both libata-core and many drivers are updated
to have a consistent debugging level control for all drivers.
- Extend compile test support to as many drivers as possible in ATA
Kconfig to improve compile test coverage, from me.
- Fixes to avoid compile time warnings (W=1) and sparse warnings in
sata_fsl and ahci_xgene drivers, from me.
- Fix the interface of the read_id() port operation method to clarify
that the data buffer passed as an argument is little endian. This
avoids sparse warnings in the pata_netcell, pata_it821x,
ahci_xgene, ahci_cevaxi and ahci_brcm drivers. From me.
- Small code cleanup in the pata_octeon_cf driver, from Minghao.
- Improved IRQ configuration code in pata_of_platform, from Lad.
- Simplified implementation of __ata_scsi_queuecmd(), from Wenchao.
- Debounce delay flag renaming, from Paul.
- Add support for AMD A85 FCH (Hudson D4) AHCI adapters, from Paul"
* tag 'ata-5.17-rc1' of git://git.kernel.org/pub/scm/linux/kernel/git/dlemoal/libata: (106 commits)
ata: pata_ali: remove redundant return statement
ata: ahci: Add support for AMD A85 FCH (Hudson D4)
ata: libata: Rename link flag ATA_LFLAG_NO_DB_DELAY
ata: libata-scsi: simplify __ata_scsi_queuecmd()
ata: pata_of_platform: Use platform_get_irq_optional() to get the interrupt
ata: pata_samsung_cf: add compile test support
ata: pata_pxa: add compile test support
ata: pata_imx: add compile test support
ata: pata_ftide010: add compile test support
ata: pata_cs5535: add compile test support
ata: pata_octeon_cf: remove redundant val variable
ata: fix read_id() ata port operation interface
ata: ahci_xgene: use correct type for port mmio address
ata: sata_fsl: fix cmdhdr_tbl_entry and prde struct definitions
ata: sata_fsl: fix scsi host initialization
ata: pata_bk3710: add compile test support
ata: ahci_seattle: add compile test support
ata: ahci_xgene: add compile test support
ata: ahci_tegra: add compile test support
ata: ahci_sunxi: add compile test support
...
This commit is contained in:
@@ -132,9 +132,37 @@
|
||||
ata_protocol_name(ATAPI_PROT_PIO), \
|
||||
ata_protocol_name(ATAPI_PROT_DMA))
|
||||
|
||||
#define ata_class_name(class) { class, #class }
|
||||
#define show_class_name(val) \
|
||||
__print_symbolic(val, \
|
||||
ata_class_name(ATA_DEV_UNKNOWN), \
|
||||
ata_class_name(ATA_DEV_ATA), \
|
||||
ata_class_name(ATA_DEV_ATA_UNSUP), \
|
||||
ata_class_name(ATA_DEV_ATAPI), \
|
||||
ata_class_name(ATA_DEV_ATAPI_UNSUP), \
|
||||
ata_class_name(ATA_DEV_PMP), \
|
||||
ata_class_name(ATA_DEV_PMP_UNSUP), \
|
||||
ata_class_name(ATA_DEV_SEMB), \
|
||||
ata_class_name(ATA_DEV_SEMB_UNSUP), \
|
||||
ata_class_name(ATA_DEV_ZAC), \
|
||||
ata_class_name(ATA_DEV_ZAC_UNSUP), \
|
||||
ata_class_name(ATA_DEV_NONE))
|
||||
|
||||
#define ata_sff_hsm_state_name(state) { state, #state }
|
||||
#define show_sff_hsm_state_name(val) \
|
||||
__print_symbolic(val, \
|
||||
ata_sff_hsm_state_name(HSM_ST_IDLE), \
|
||||
ata_sff_hsm_state_name(HSM_ST_FIRST), \
|
||||
ata_sff_hsm_state_name(HSM_ST), \
|
||||
ata_sff_hsm_state_name(HSM_ST_LAST), \
|
||||
ata_sff_hsm_state_name(HSM_ST_ERR))
|
||||
|
||||
const char *libata_trace_parse_status(struct trace_seq*, unsigned char);
|
||||
#define __parse_status(s) libata_trace_parse_status(p, s)
|
||||
|
||||
const char *libata_trace_parse_host_stat(struct trace_seq *, unsigned char);
|
||||
#define __parse_host_stat(s) libata_trace_parse_host_stat(p, s)
|
||||
|
||||
const char *libata_trace_parse_eh_action(struct trace_seq *, unsigned int);
|
||||
#define __parse_eh_action(a) libata_trace_parse_eh_action(p, a)
|
||||
|
||||
@@ -144,11 +172,14 @@ const char *libata_trace_parse_eh_err_mask(struct trace_seq *, unsigned int);
|
||||
const char *libata_trace_parse_qc_flags(struct trace_seq *, unsigned int);
|
||||
#define __parse_qc_flags(f) libata_trace_parse_qc_flags(p, f)
|
||||
|
||||
const char *libata_trace_parse_tf_flags(struct trace_seq *, unsigned int);
|
||||
#define __parse_tf_flags(f) libata_trace_parse_tf_flags(p, f)
|
||||
|
||||
const char *libata_trace_parse_subcmd(struct trace_seq *, unsigned char,
|
||||
unsigned char, unsigned char);
|
||||
#define __parse_subcmd(c,f,h) libata_trace_parse_subcmd(p, c, f, h)
|
||||
|
||||
TRACE_EVENT(ata_qc_issue,
|
||||
DECLARE_EVENT_CLASS(ata_qc_issue_template,
|
||||
|
||||
TP_PROTO(struct ata_queued_cmd *qc),
|
||||
|
||||
@@ -207,6 +238,14 @@ TRACE_EVENT(ata_qc_issue,
|
||||
__entry->dev)
|
||||
);
|
||||
|
||||
DEFINE_EVENT(ata_qc_issue_template, ata_qc_prep,
|
||||
TP_PROTO(struct ata_queued_cmd *qc),
|
||||
TP_ARGS(qc));
|
||||
|
||||
DEFINE_EVENT(ata_qc_issue_template, ata_qc_issue,
|
||||
TP_PROTO(struct ata_queued_cmd *qc),
|
||||
TP_ARGS(qc));
|
||||
|
||||
DECLARE_EVENT_CLASS(ata_qc_complete_template,
|
||||
|
||||
TP_PROTO(struct ata_queued_cmd *qc),
|
||||
@@ -275,6 +314,128 @@ DEFINE_EVENT(ata_qc_complete_template, ata_qc_complete_done,
|
||||
TP_PROTO(struct ata_queued_cmd *qc),
|
||||
TP_ARGS(qc));
|
||||
|
||||
TRACE_EVENT(ata_tf_load,
|
||||
|
||||
TP_PROTO(struct ata_port *ap, const struct ata_taskfile *tf),
|
||||
|
||||
TP_ARGS(ap, tf),
|
||||
|
||||
TP_STRUCT__entry(
|
||||
__field( unsigned int, ata_port )
|
||||
__field( unsigned char, cmd )
|
||||
__field( unsigned char, dev )
|
||||
__field( unsigned char, lbal )
|
||||
__field( unsigned char, lbam )
|
||||
__field( unsigned char, lbah )
|
||||
__field( unsigned char, nsect )
|
||||
__field( unsigned char, feature )
|
||||
__field( unsigned char, hob_lbal )
|
||||
__field( unsigned char, hob_lbam )
|
||||
__field( unsigned char, hob_lbah )
|
||||
__field( unsigned char, hob_nsect )
|
||||
__field( unsigned char, hob_feature )
|
||||
__field( unsigned char, proto )
|
||||
),
|
||||
|
||||
TP_fast_assign(
|
||||
__entry->ata_port = ap->print_id;
|
||||
__entry->proto = tf->protocol;
|
||||
__entry->cmd = tf->command;
|
||||
__entry->dev = tf->device;
|
||||
__entry->lbal = tf->lbal;
|
||||
__entry->lbam = tf->lbam;
|
||||
__entry->lbah = tf->lbah;
|
||||
__entry->hob_lbal = tf->hob_lbal;
|
||||
__entry->hob_lbam = tf->hob_lbam;
|
||||
__entry->hob_lbah = tf->hob_lbah;
|
||||
__entry->feature = tf->feature;
|
||||
__entry->hob_feature = tf->hob_feature;
|
||||
__entry->nsect = tf->nsect;
|
||||
__entry->hob_nsect = tf->hob_nsect;
|
||||
),
|
||||
|
||||
TP_printk("ata_port=%u proto=%s cmd=%s%s " \
|
||||
" tf=(%02x/%02x:%02x:%02x:%02x:%02x/%02x:%02x:%02x:%02x:%02x/%02x)",
|
||||
__entry->ata_port,
|
||||
show_protocol_name(__entry->proto),
|
||||
show_opcode_name(__entry->cmd),
|
||||
__parse_subcmd(__entry->cmd, __entry->feature, __entry->hob_nsect),
|
||||
__entry->cmd, __entry->feature, __entry->nsect,
|
||||
__entry->lbal, __entry->lbam, __entry->lbah,
|
||||
__entry->hob_feature, __entry->hob_nsect,
|
||||
__entry->hob_lbal, __entry->hob_lbam, __entry->hob_lbah,
|
||||
__entry->dev)
|
||||
);
|
||||
|
||||
DECLARE_EVENT_CLASS(ata_exec_command_template,
|
||||
|
||||
TP_PROTO(struct ata_port *ap, const struct ata_taskfile *tf, unsigned int tag),
|
||||
|
||||
TP_ARGS(ap, tf, tag),
|
||||
|
||||
TP_STRUCT__entry(
|
||||
__field( unsigned int, ata_port )
|
||||
__field( unsigned int, tag )
|
||||
__field( unsigned char, cmd )
|
||||
__field( unsigned char, feature )
|
||||
__field( unsigned char, hob_nsect )
|
||||
__field( unsigned char, proto )
|
||||
),
|
||||
|
||||
TP_fast_assign(
|
||||
__entry->ata_port = ap->print_id;
|
||||
__entry->tag = tag;
|
||||
__entry->proto = tf->protocol;
|
||||
__entry->cmd = tf->command;
|
||||
__entry->feature = tf->feature;
|
||||
__entry->hob_nsect = tf->hob_nsect;
|
||||
),
|
||||
|
||||
TP_printk("ata_port=%u tag=%d proto=%s cmd=%s%s",
|
||||
__entry->ata_port, __entry->tag,
|
||||
show_protocol_name(__entry->proto),
|
||||
show_opcode_name(__entry->cmd),
|
||||
__parse_subcmd(__entry->cmd, __entry->feature, __entry->hob_nsect))
|
||||
);
|
||||
|
||||
DEFINE_EVENT(ata_exec_command_template, ata_exec_command,
|
||||
TP_PROTO(struct ata_port *ap, const struct ata_taskfile *tf, unsigned int tag),
|
||||
TP_ARGS(ap, tf, tag));
|
||||
|
||||
DEFINE_EVENT(ata_exec_command_template, ata_bmdma_setup,
|
||||
TP_PROTO(struct ata_port *ap, const struct ata_taskfile *tf, unsigned int tag),
|
||||
TP_ARGS(ap, tf, tag));
|
||||
|
||||
DEFINE_EVENT(ata_exec_command_template, ata_bmdma_start,
|
||||
TP_PROTO(struct ata_port *ap, const struct ata_taskfile *tf, unsigned int tag),
|
||||
TP_ARGS(ap, tf, tag));
|
||||
|
||||
DEFINE_EVENT(ata_exec_command_template, ata_bmdma_stop,
|
||||
TP_PROTO(struct ata_port *ap, const struct ata_taskfile *tf, unsigned int tag),
|
||||
TP_ARGS(ap, tf, tag));
|
||||
|
||||
TRACE_EVENT(ata_bmdma_status,
|
||||
|
||||
TP_PROTO(struct ata_port *ap, unsigned int host_stat),
|
||||
|
||||
TP_ARGS(ap, host_stat),
|
||||
|
||||
TP_STRUCT__entry(
|
||||
__field( unsigned int, ata_port )
|
||||
__field( unsigned int, tag )
|
||||
__field( unsigned char, host_stat )
|
||||
),
|
||||
|
||||
TP_fast_assign(
|
||||
__entry->ata_port = ap->print_id;
|
||||
__entry->host_stat = host_stat;
|
||||
),
|
||||
|
||||
TP_printk("ata_port=%u host_stat=%s",
|
||||
__entry->ata_port,
|
||||
__parse_host_stat(__entry->host_stat))
|
||||
);
|
||||
|
||||
TRACE_EVENT(ata_eh_link_autopsy,
|
||||
|
||||
TP_PROTO(struct ata_device *dev, unsigned int eh_action, unsigned int eh_err_mask),
|
||||
@@ -329,6 +490,259 @@ TRACE_EVENT(ata_eh_link_autopsy_qc,
|
||||
__parse_eh_err_mask(__entry->eh_err_mask))
|
||||
);
|
||||
|
||||
DECLARE_EVENT_CLASS(ata_eh_action_template,
|
||||
|
||||
TP_PROTO(struct ata_link *link, unsigned int devno, unsigned int eh_action),
|
||||
|
||||
TP_ARGS(link, devno, eh_action),
|
||||
|
||||
TP_STRUCT__entry(
|
||||
__field( unsigned int, ata_port )
|
||||
__field( unsigned int, ata_dev )
|
||||
__field( unsigned int, eh_action )
|
||||
),
|
||||
|
||||
TP_fast_assign(
|
||||
__entry->ata_port = link->ap->print_id;
|
||||
__entry->ata_dev = link->pmp + devno;
|
||||
__entry->eh_action = eh_action;
|
||||
),
|
||||
|
||||
TP_printk("ata_port=%u ata_dev=%u eh_action=%s",
|
||||
__entry->ata_port, __entry->ata_dev,
|
||||
__parse_eh_action(__entry->eh_action))
|
||||
);
|
||||
|
||||
DEFINE_EVENT(ata_eh_action_template, ata_eh_about_to_do,
|
||||
TP_PROTO(struct ata_link *link, unsigned int devno, unsigned int eh_action),
|
||||
TP_ARGS(link, devno, eh_action));
|
||||
|
||||
DEFINE_EVENT(ata_eh_action_template, ata_eh_done,
|
||||
TP_PROTO(struct ata_link *link, unsigned int devno, unsigned int eh_action),
|
||||
TP_ARGS(link, devno, eh_action));
|
||||
|
||||
DECLARE_EVENT_CLASS(ata_link_reset_begin_template,
|
||||
|
||||
TP_PROTO(struct ata_link *link, unsigned int *class, unsigned long deadline),
|
||||
|
||||
TP_ARGS(link, class, deadline),
|
||||
|
||||
TP_STRUCT__entry(
|
||||
__field( unsigned int, ata_port )
|
||||
__array( unsigned int, class, 2 )
|
||||
__field( unsigned long, deadline )
|
||||
),
|
||||
|
||||
TP_fast_assign(
|
||||
__entry->ata_port = link->ap->print_id;
|
||||
memcpy(__entry->class, class, 2);
|
||||
__entry->deadline = deadline;
|
||||
),
|
||||
|
||||
TP_printk("ata_port=%u deadline=%lu classes=[%s,%s]",
|
||||
__entry->ata_port, __entry->deadline,
|
||||
show_class_name(__entry->class[0]),
|
||||
show_class_name(__entry->class[1]))
|
||||
);
|
||||
|
||||
DEFINE_EVENT(ata_link_reset_begin_template, ata_link_hardreset_begin,
|
||||
TP_PROTO(struct ata_link *link, unsigned int *class, unsigned long deadline),
|
||||
TP_ARGS(link, class, deadline));
|
||||
|
||||
DEFINE_EVENT(ata_link_reset_begin_template, ata_slave_hardreset_begin,
|
||||
TP_PROTO(struct ata_link *link, unsigned int *class, unsigned long deadline),
|
||||
TP_ARGS(link, class, deadline));
|
||||
|
||||
DEFINE_EVENT(ata_link_reset_begin_template, ata_link_softreset_begin,
|
||||
TP_PROTO(struct ata_link *link, unsigned int *class, unsigned long deadline),
|
||||
TP_ARGS(link, class, deadline));
|
||||
|
||||
DECLARE_EVENT_CLASS(ata_link_reset_end_template,
|
||||
|
||||
TP_PROTO(struct ata_link *link, unsigned int *class, int rc),
|
||||
|
||||
TP_ARGS(link, class, rc),
|
||||
|
||||
TP_STRUCT__entry(
|
||||
__field( unsigned int, ata_port )
|
||||
__array( unsigned int, class, 2 )
|
||||
__field( int, rc )
|
||||
),
|
||||
|
||||
TP_fast_assign(
|
||||
__entry->ata_port = link->ap->print_id;
|
||||
memcpy(__entry->class, class, 2);
|
||||
__entry->rc = rc;
|
||||
),
|
||||
|
||||
TP_printk("ata_port=%u rc=%d class=[%s,%s]",
|
||||
__entry->ata_port, __entry->rc,
|
||||
show_class_name(__entry->class[0]),
|
||||
show_class_name(__entry->class[1]))
|
||||
);
|
||||
|
||||
DEFINE_EVENT(ata_link_reset_end_template, ata_link_hardreset_end,
|
||||
TP_PROTO(struct ata_link *link, unsigned int *class, int rc),
|
||||
TP_ARGS(link, class, rc));
|
||||
|
||||
DEFINE_EVENT(ata_link_reset_end_template, ata_slave_hardreset_end,
|
||||
TP_PROTO(struct ata_link *link, unsigned int *class, int rc),
|
||||
TP_ARGS(link, class, rc));
|
||||
|
||||
DEFINE_EVENT(ata_link_reset_end_template, ata_link_softreset_end,
|
||||
TP_PROTO(struct ata_link *link, unsigned int *class, int rc),
|
||||
TP_ARGS(link, class, rc));
|
||||
|
||||
DEFINE_EVENT(ata_link_reset_end_template, ata_link_postreset,
|
||||
TP_PROTO(struct ata_link *link, unsigned int *class, int rc),
|
||||
TP_ARGS(link, class, rc));
|
||||
|
||||
DEFINE_EVENT(ata_link_reset_end_template, ata_slave_postreset,
|
||||
TP_PROTO(struct ata_link *link, unsigned int *class, int rc),
|
||||
TP_ARGS(link, class, rc));
|
||||
|
||||
DECLARE_EVENT_CLASS(ata_port_eh_begin_template,
|
||||
|
||||
TP_PROTO(struct ata_port *ap),
|
||||
|
||||
TP_ARGS(ap),
|
||||
|
||||
TP_STRUCT__entry(
|
||||
__field( unsigned int, ata_port )
|
||||
),
|
||||
|
||||
TP_fast_assign(
|
||||
__entry->ata_port = ap->print_id;
|
||||
),
|
||||
|
||||
TP_printk("ata_port=%u", __entry->ata_port)
|
||||
);
|
||||
|
||||
DEFINE_EVENT(ata_port_eh_begin_template, ata_std_sched_eh,
|
||||
TP_PROTO(struct ata_port *ap),
|
||||
TP_ARGS(ap));
|
||||
|
||||
DEFINE_EVENT(ata_port_eh_begin_template, ata_port_freeze,
|
||||
TP_PROTO(struct ata_port *ap),
|
||||
TP_ARGS(ap));
|
||||
|
||||
DEFINE_EVENT(ata_port_eh_begin_template, ata_port_thaw,
|
||||
TP_PROTO(struct ata_port *ap),
|
||||
TP_ARGS(ap));
|
||||
|
||||
DECLARE_EVENT_CLASS(ata_sff_hsm_template,
|
||||
|
||||
TP_PROTO(struct ata_queued_cmd *qc, unsigned char status),
|
||||
|
||||
TP_ARGS(qc, status),
|
||||
|
||||
TP_STRUCT__entry(
|
||||
__field( unsigned int, ata_port )
|
||||
__field( unsigned int, ata_dev )
|
||||
__field( unsigned int, tag )
|
||||
__field( unsigned int, qc_flags )
|
||||
__field( unsigned int, protocol )
|
||||
__field( unsigned int, hsm_state )
|
||||
__field( unsigned char, dev_state )
|
||||
),
|
||||
|
||||
TP_fast_assign(
|
||||
__entry->ata_port = qc->ap->print_id;
|
||||
__entry->ata_dev = qc->dev->link->pmp + qc->dev->devno;
|
||||
__entry->tag = qc->tag;
|
||||
__entry->qc_flags = qc->flags;
|
||||
__entry->protocol = qc->tf.protocol;
|
||||
__entry->hsm_state = qc->ap->hsm_task_state;
|
||||
__entry->dev_state = status;
|
||||
),
|
||||
|
||||
TP_printk("ata_port=%u ata_dev=%u tag=%d proto=%s flags=%s task_state=%s dev_stat=0x%X",
|
||||
__entry->ata_port, __entry->ata_dev, __entry->tag,
|
||||
show_protocol_name(__entry->protocol),
|
||||
__parse_qc_flags(__entry->qc_flags),
|
||||
show_sff_hsm_state_name(__entry->hsm_state),
|
||||
__entry->dev_state)
|
||||
);
|
||||
|
||||
DEFINE_EVENT(ata_sff_hsm_template, ata_sff_hsm_state,
|
||||
TP_PROTO(struct ata_queued_cmd *qc, unsigned char state),
|
||||
TP_ARGS(qc, state));
|
||||
|
||||
DEFINE_EVENT(ata_sff_hsm_template, ata_sff_hsm_command_complete,
|
||||
TP_PROTO(struct ata_queued_cmd *qc, unsigned char state),
|
||||
TP_ARGS(qc, state));
|
||||
|
||||
DEFINE_EVENT(ata_sff_hsm_template, ata_sff_port_intr,
|
||||
TP_PROTO(struct ata_queued_cmd *qc, unsigned char state),
|
||||
TP_ARGS(qc, state));
|
||||
|
||||
DECLARE_EVENT_CLASS(ata_transfer_data_template,
|
||||
|
||||
TP_PROTO(struct ata_queued_cmd *qc, unsigned int offset, unsigned int count),
|
||||
|
||||
TP_ARGS(qc, offset, count),
|
||||
|
||||
TP_STRUCT__entry(
|
||||
__field( unsigned int, ata_port )
|
||||
__field( unsigned int, ata_dev )
|
||||
__field( unsigned int, tag )
|
||||
__field( unsigned int, flags )
|
||||
__field( unsigned int, offset )
|
||||
__field( unsigned int, bytes )
|
||||
),
|
||||
|
||||
TP_fast_assign(
|
||||
__entry->ata_port = qc->ap->print_id;
|
||||
__entry->ata_dev = qc->dev->link->pmp + qc->dev->devno;
|
||||
__entry->tag = qc->tag;
|
||||
__entry->flags = qc->tf.flags;
|
||||
__entry->offset = offset;
|
||||
__entry->bytes = count;
|
||||
),
|
||||
|
||||
TP_printk("ata_port=%u ata_dev=%u tag=%d flags=%s offset=%u bytes=%u",
|
||||
__entry->ata_port, __entry->ata_dev, __entry->tag,
|
||||
__parse_tf_flags(__entry->flags),
|
||||
__entry->offset, __entry->bytes)
|
||||
);
|
||||
|
||||
DEFINE_EVENT(ata_transfer_data_template, ata_sff_pio_transfer_data,
|
||||
TP_PROTO(struct ata_queued_cmd *qc, unsigned int offset, unsigned int count),
|
||||
TP_ARGS(qc, offset, count));
|
||||
|
||||
DEFINE_EVENT(ata_transfer_data_template, atapi_pio_transfer_data,
|
||||
TP_PROTO(struct ata_queued_cmd *qc, unsigned int offset, unsigned int count),
|
||||
TP_ARGS(qc, offset, count));
|
||||
|
||||
DEFINE_EVENT(ata_transfer_data_template, atapi_send_cdb,
|
||||
TP_PROTO(struct ata_queued_cmd *qc, unsigned int offset, unsigned int count),
|
||||
TP_ARGS(qc, offset, count));
|
||||
|
||||
DECLARE_EVENT_CLASS(ata_sff_template,
|
||||
|
||||
TP_PROTO(struct ata_port *ap),
|
||||
|
||||
TP_ARGS(ap),
|
||||
|
||||
TP_STRUCT__entry(
|
||||
__field( unsigned int, ata_port )
|
||||
__field( unsigned char, hsm_state )
|
||||
),
|
||||
|
||||
TP_fast_assign(
|
||||
__entry->ata_port = ap->print_id;
|
||||
__entry->hsm_state = ap->hsm_task_state;
|
||||
),
|
||||
|
||||
TP_printk("ata_port=%u task_state=%s",
|
||||
__entry->ata_port,
|
||||
show_sff_hsm_state_name(__entry->hsm_state))
|
||||
);
|
||||
|
||||
DEFINE_EVENT(ata_sff_template, ata_sff_flush_pio_task,
|
||||
TP_PROTO(struct ata_port *ap),
|
||||
TP_ARGS(ap));
|
||||
|
||||
#endif /* _TRACE_LIBATA_H */
|
||||
|
||||
/* This part must be outside protection */
|
||||
|
||||
Reference in New Issue
Block a user