diff options
author | Cristian Marussi <[email protected]> | 2024-03-25 20:46:16 +0000 |
---|---|---|
committer | Sudeep Holla <[email protected]> | 2024-03-26 11:17:40 +0000 |
commit | da251ce210617fa31aa2a65ba7f28e1c584a1938 (patch) | |
tree | 6097cba8fb4329e63b50b7e19dff7b607824eab4 | |
parent | 42a31d4410a8be76c39fe47c6b280bfc0eca3e42 (diff) |
include: trace: Widen the tag buffer in trace_scmi_dump_msg
A bigger buffer allow for more diverse tag names.
Signed-off-by: Cristian Marussi <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Sudeep Holla <[email protected]>
-rw-r--r-- | include/trace/events/scmi.h | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/include/trace/events/scmi.h b/include/trace/events/scmi.h index 422c1ad9484d..127300481123 100644 --- a/include/trace/events/scmi.h +++ b/include/trace/events/scmi.h @@ -7,6 +7,8 @@ #include <linux/tracepoint.h> +#define TRACE_SCMI_MAX_TAG_LEN 6 + TRACE_EVENT(scmi_fc_call, TP_PROTO(u8 protocol_id, u8 msg_id, u32 res_id, u32 val1, u32 val2), TP_ARGS(protocol_id, msg_id, res_id, val1, val2), @@ -150,7 +152,7 @@ TRACE_EVENT(scmi_msg_dump, __field(u8, channel_id) __field(u8, protocol_id) __field(u8, msg_id) - __array(char, tag, 5) + __array(char, tag, TRACE_SCMI_MAX_TAG_LEN) __field(u16, seq) __field(int, status) __field(size_t, len) @@ -162,7 +164,7 @@ TRACE_EVENT(scmi_msg_dump, __entry->channel_id = channel_id; __entry->protocol_id = protocol_id; __entry->msg_id = msg_id; - strscpy(__entry->tag, tag, 5); + strscpy(__entry->tag, tag, TRACE_SCMI_MAX_TAG_LEN); __entry->seq = seq; __entry->status = status; __entry->len = len; |