TP_PROTO(struct usb_ep *ep, int ret),
TP_ARGS(ep, ret),
TP_STRUCT__entry(
- __dynamic_array(char, name, UDC_TRACE_STR_MAX)
+ __string(name, ep->name)
__field(unsigned, maxpacket)
__field(unsigned, maxpacket_limit)
__field(unsigned, max_streams)
__field(int, ret)
),
TP_fast_assign(
- snprintf(__get_str(name), UDC_TRACE_STR_MAX, "%s", ep->name);
+ __assign_str(name, ep->name);
__entry->maxpacket = ep->maxpacket;
__entry->maxpacket_limit = ep->maxpacket_limit;
__entry->max_streams = ep->max_streams;
TP_PROTO(struct usb_ep *ep, struct usb_request *req, int ret),
TP_ARGS(ep, req, ret),
TP_STRUCT__entry(
- __dynamic_array(char, name, UDC_TRACE_STR_MAX)
+ __string(name, ep->name)
__field(unsigned, length)
__field(unsigned, actual)
__field(unsigned, num_sgs)
__field(struct usb_request *, req)
),
TP_fast_assign(
- snprintf(__get_str(name), UDC_TRACE_STR_MAX, "%s", ep->name);
+ __assign_str(name, ep->name);
__entry->length = req->length;
__entry->actual = req->actual;
__entry->num_sgs = req->num_sgs;