mirror of
https://github.com/lkl/linux.git
synced 2025-12-19 16:13:19 +09:00
fsi: core: Add trace events for scan and unregister
Add more trace events for the scanning and unregistration functions for debug purposes. Signed-off-by: Eddie James <eajames@linux.ibm.com> Reviewed-by: Joel Stanley <joel@jms.id.au> Link: https://lore.kernel.org/r/20230612195657.245125-9-eajames@linux.ibm.com Signed-off-by: Joel Stanley <joel@jms.id.au>
This commit is contained in:
committed by
Joel Stanley
parent
52300909f4
commit
02c8fec05b
@@ -122,6 +122,37 @@ TRACE_EVENT(fsi_master_break,
|
||||
)
|
||||
);
|
||||
|
||||
TRACE_EVENT(fsi_master_scan,
|
||||
TP_PROTO(const struct fsi_master *master, bool scan),
|
||||
TP_ARGS(master, scan),
|
||||
TP_STRUCT__entry(
|
||||
__field(int, master_idx)
|
||||
__field(int, n_links)
|
||||
__field(bool, scan)
|
||||
),
|
||||
TP_fast_assign(
|
||||
__entry->master_idx = master->idx;
|
||||
__entry->n_links = master->n_links;
|
||||
__entry->scan = scan;
|
||||
),
|
||||
TP_printk("fsi%d (%d links) %s", __entry->master_idx, __entry->n_links,
|
||||
__entry->scan ? "scan" : "unscan")
|
||||
);
|
||||
|
||||
TRACE_EVENT(fsi_master_unregister,
|
||||
TP_PROTO(const struct fsi_master *master),
|
||||
TP_ARGS(master),
|
||||
TP_STRUCT__entry(
|
||||
__field(int, master_idx)
|
||||
__field(int, n_links)
|
||||
),
|
||||
TP_fast_assign(
|
||||
__entry->master_idx = master->idx;
|
||||
__entry->n_links = master->n_links;
|
||||
),
|
||||
TP_printk("fsi%d (%d links)", __entry->master_idx, __entry->n_links)
|
||||
);
|
||||
|
||||
TRACE_EVENT(fsi_slave_init,
|
||||
TP_PROTO(const struct fsi_slave *slave),
|
||||
TP_ARGS(slave),
|
||||
|
||||
Reference in New Issue
Block a user