Skip to content

Commit da251ce

Browse files
cris-masudeep-holla
authored andcommitted
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]>
1 parent 42a31d4 commit da251ce

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

include/trace/events/scmi.h

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,8 @@
77

88
#include <linux/tracepoint.h>
99

10+
#define TRACE_SCMI_MAX_TAG_LEN 6
11+
1012
TRACE_EVENT(scmi_fc_call,
1113
TP_PROTO(u8 protocol_id, u8 msg_id, u32 res_id, u32 val1, u32 val2),
1214
TP_ARGS(protocol_id, msg_id, res_id, val1, val2),
@@ -150,7 +152,7 @@ TRACE_EVENT(scmi_msg_dump,
150152
__field(u8, channel_id)
151153
__field(u8, protocol_id)
152154
__field(u8, msg_id)
153-
__array(char, tag, 5)
155+
__array(char, tag, TRACE_SCMI_MAX_TAG_LEN)
154156
__field(u16, seq)
155157
__field(int, status)
156158
__field(size_t, len)
@@ -162,7 +164,7 @@ TRACE_EVENT(scmi_msg_dump,
162164
__entry->channel_id = channel_id;
163165
__entry->protocol_id = protocol_id;
164166
__entry->msg_id = msg_id;
165-
strscpy(__entry->tag, tag, 5);
167+
strscpy(__entry->tag, tag, TRACE_SCMI_MAX_TAG_LEN);
166168
__entry->seq = seq;
167169
__entry->status = status;
168170
__entry->len = len;

0 commit comments

Comments
 (0)