diff options
Diffstat (limited to 'drivers/media/usb/pwc/pwc-if.c')
-rw-r--r-- | drivers/media/usb/pwc/pwc-if.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/drivers/media/usb/pwc/pwc-if.c b/drivers/media/usb/pwc/pwc-if.c index 72704f4d5330..53c111bd5a22 100644 --- a/drivers/media/usb/pwc/pwc-if.c +++ b/drivers/media/usb/pwc/pwc-if.c | |||
@@ -76,6 +76,9 @@ | |||
76 | #include "pwc-dec23.h" | 76 | #include "pwc-dec23.h" |
77 | #include "pwc-dec1.h" | 77 | #include "pwc-dec1.h" |
78 | 78 | ||
79 | #define CREATE_TRACE_POINTS | ||
80 | #include <trace/events/pwc.h> | ||
81 | |||
79 | /* Function prototypes and driver templates */ | 82 | /* Function prototypes and driver templates */ |
80 | 83 | ||
81 | /* hotplug device table support */ | 84 | /* hotplug device table support */ |
@@ -260,6 +263,8 @@ static void pwc_isoc_handler(struct urb *urb) | |||
260 | int i, fst, flen; | 263 | int i, fst, flen; |
261 | unsigned char *iso_buf = NULL; | 264 | unsigned char *iso_buf = NULL; |
262 | 265 | ||
266 | trace_pwc_handler_enter(urb, pdev); | ||
267 | |||
263 | if (urb->status == -ENOENT || urb->status == -ECONNRESET || | 268 | if (urb->status == -ENOENT || urb->status == -ECONNRESET || |
264 | urb->status == -ESHUTDOWN) { | 269 | urb->status == -ESHUTDOWN) { |
265 | PWC_DEBUG_OPEN("URB (%p) unlinked %ssynchronously.\n", | 270 | PWC_DEBUG_OPEN("URB (%p) unlinked %ssynchronously.\n", |
@@ -348,6 +353,8 @@ static void pwc_isoc_handler(struct urb *urb) | |||
348 | } | 353 | } |
349 | 354 | ||
350 | handler_end: | 355 | handler_end: |
356 | trace_pwc_handler_exit(urb, pdev); | ||
357 | |||
351 | i = usb_submit_urb(urb, GFP_ATOMIC); | 358 | i = usb_submit_urb(urb, GFP_ATOMIC); |
352 | if (i != 0) | 359 | if (i != 0) |
353 | PWC_ERROR("Error (%d) re-submitting urb in pwc_isoc_handler.\n", i); | 360 | PWC_ERROR("Error (%d) re-submitting urb in pwc_isoc_handler.\n", i); |