Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

include: trace: Add new scmi_xfer_response_wait event

Having a new step to trace SCMI stack while it waits for synchronous
responses is useful to analyze system performance when changing waiting
mode between polling and interrupt completion.

Link: https://lore.kernel.org/r/20211129191156.29322-5-cristian.marussi@arm.com
Reviewed-by: Florian Fainelli <f.fainelli@gmail.com>
Signed-off-by: Cristian Marussi <cristian.marussi@arm.com>
Signed-off-by: Sudeep Holla <sudeep.holla@arm.com>

authored by

Cristian Marussi and committed by
Sudeep Holla
8b276b59 5a731aeb

+28
+28
include/trace/events/scmi.h
··· 33 33 __entry->seq, __entry->poll) 34 34 ); 35 35 36 + TRACE_EVENT(scmi_xfer_response_wait, 37 + TP_PROTO(int transfer_id, u8 msg_id, u8 protocol_id, u16 seq, 38 + u32 timeout, bool poll), 39 + TP_ARGS(transfer_id, msg_id, protocol_id, seq, timeout, poll), 40 + 41 + TP_STRUCT__entry( 42 + __field(int, transfer_id) 43 + __field(u8, msg_id) 44 + __field(u8, protocol_id) 45 + __field(u16, seq) 46 + __field(u32, timeout) 47 + __field(bool, poll) 48 + ), 49 + 50 + TP_fast_assign( 51 + __entry->transfer_id = transfer_id; 52 + __entry->msg_id = msg_id; 53 + __entry->protocol_id = protocol_id; 54 + __entry->seq = seq; 55 + __entry->timeout = timeout; 56 + __entry->poll = poll; 57 + ), 58 + 59 + TP_printk("transfer_id=%d msg_id=%u protocol_id=%u seq=%u tmo_ms=%u poll=%u", 60 + __entry->transfer_id, __entry->msg_id, __entry->protocol_id, 61 + __entry->seq, __entry->timeout, __entry->poll) 62 + ); 63 + 36 64 TRACE_EVENT(scmi_xfer_end, 37 65 TP_PROTO(int transfer_id, u8 msg_id, u8 protocol_id, u16 seq, 38 66 int status),