Re: [PATCH 30/37] usb: host: xhci: make a generic TRB tracer

2017-01-16 Thread Lu Baolu
Hi, On 01/16/2017 04:55 PM, Felipe Balbi wrote: > Hi, > > Lu Baolu writes: > + __entry->type = ring->type; > + __entry->field0 = le32_to_cpu(trb->field[0]); > + __entry->field1 = le32_to_cpu(trb->field[1]); > +

Re: [PATCH 30/37] usb: host: xhci: make a generic TRB tracer

2017-01-16 Thread Felipe Balbi
Hi, Lu Baolu writes: + __entry->type = ring->type; + __entry->field0 = le32_to_cpu(trb->field[0]); + __entry->field1 = le32_to_cpu(trb->field[1]); + __entry->field2 = le32_to_cpu(trb->field[2]); +

Re: [PATCH 30/37] usb: host: xhci: make a generic TRB tracer

2017-01-15 Thread Lu Baolu
Hi, On 01/16/2017 03:03 PM, Felipe Balbi wrote: > Hi, > > Lu Baolu writes: >> On 12/29/2016 07:01 PM, Felipe Balbi wrote: >>> instead of having a tracer that can only trace command completions, >>> let's promote this tracer so it can trace and decode any TRB. >>> >>>

Re: [PATCH 30/37] usb: host: xhci: make a generic TRB tracer

2017-01-15 Thread Felipe Balbi
Hi, Lu Baolu writes: > On 12/29/2016 07:01 PM, Felipe Balbi wrote: >> instead of having a tracer that can only trace command completions, >> let's promote this tracer so it can trace and decode any TRB. >> >> With that, it will be easier to extrapolate the lifetime of

Re: [PATCH 30/37] usb: host: xhci: make a generic TRB tracer

2017-01-15 Thread Lu Baolu
Hi, On 12/29/2016 07:01 PM, Felipe Balbi wrote: > instead of having a tracer that can only trace command completions, > let's promote this tracer so it can trace and decode any TRB. > > With that, it will be easier to extrapolate the lifetime of any TRB > which might help debugging certain

Re: [PATCH 30/37] usb: host: xhci: make a generic TRB tracer

2017-01-02 Thread Lu Baolu
Hi, On 01/02/2017 04:53 PM, Felipe Balbi wrote: > Hi, > > Lu Baolu writes: >> Hi, >> >> On 12/30/2016 03:47 PM, Felipe Balbi wrote: >>> Hi, >>> >>> Lu Baolu writes: > +DEFINE_EVENT(xhci_log_trb, xhci_handle_event, > + TP_PROTO(struct

Re: [PATCH 30/37] usb: host: xhci: make a generic TRB tracer

2017-01-02 Thread Felipe Balbi
Hi, Lu Baolu writes: > Hi, > > On 12/30/2016 03:47 PM, Felipe Balbi wrote: >> Hi, >> >> Lu Baolu writes: +DEFINE_EVENT(xhci_log_trb, xhci_handle_event, + TP_PROTO(struct xhci_ring *ring, struct xhci_generic_trb *trb), +

Re: [PATCH 30/37] usb: host: xhci: make a generic TRB tracer

2016-12-31 Thread Lu Baolu
Hi, On 12/30/2016 03:47 PM, Felipe Balbi wrote: > Hi, > > Lu Baolu writes: >>> +DEFINE_EVENT(xhci_log_trb, xhci_handle_event, >>> + TP_PROTO(struct xhci_ring *ring, struct xhci_generic_trb *trb), >>> + TP_ARGS(ring, trb) >>> +); >>> + >>> +DEFINE_EVENT(xhci_log_trb,

Re: [PATCH 30/37] usb: host: xhci: make a generic TRB tracer

2016-12-29 Thread Felipe Balbi
Hi, Lu Baolu writes: >> +DEFINE_EVENT(xhci_log_trb, xhci_handle_event, >> +TP_PROTO(struct xhci_ring *ring, struct xhci_generic_trb *trb), >> +TP_ARGS(ring, trb) >> +); >> + >> +DEFINE_EVENT(xhci_log_trb, xhci_handle_command, >> +TP_PROTO(struct xhci_ring

Re: [PATCH 30/37] usb: host: xhci: make a generic TRB tracer

2016-12-29 Thread Lu Baolu
Hi, On 12/29/2016 07:01 PM, Felipe Balbi wrote: > instead of having a tracer that can only trace command completions, > let's promote this tracer so it can trace and decode any TRB. > > With that, it will be easier to extrapolate the lifetime of any TRB > which might help debugging certain

[PATCH 30/37] usb: host: xhci: make a generic TRB tracer

2016-12-29 Thread Felipe Balbi
instead of having a tracer that can only trace command completions, let's promote this tracer so it can trace and decode any TRB. With that, it will be easier to extrapolate the lifetime of any TRB which might help debugging certain issues. Signed-off-by: Felipe Balbi