diff options
author | Vikas Jain <vjain@nvidia.com> | 2013-01-30 05:23:29 -0500 |
---|---|---|
committer | Dan Willemsen <dwillemsen@nvidia.com> | 2013-09-14 12:57:00 -0700 |
commit | 322455d5a102bab522995821c25b08a84faa8724 (patch) | |
tree | d8f0f329c08e77a610a12a664c1ca14febec1256 /drivers | |
parent | 958439aed9feedd873056f60c093c45ceeb38ad1 (diff) |
Input: xpad - add ftrace logging
This will help to profile the xpad responsiveness and
overall latency in the system.
Bug 1226968
Change-Id: I20205a4a89beb4ae0d1c888eaf1e1b874e1a9772
Signed-off-by: Vikas Jain <vjain@nvidia.com>
Reviewed-on: http://git-master/r/195507
(cherry picked from commit 0adf09de7c8f58892cb05483a2f718fe0674fb93)
Reviewed-on: http://git-master/r/196342
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit
Reviewed-by: Bharat Nihalani <bnihalani@nvidia.com>
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/input/joystick/xpad.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/drivers/input/joystick/xpad.c b/drivers/input/joystick/xpad.c index fa061d46527f..5e98217427c8 100644 --- a/drivers/input/joystick/xpad.c +++ b/drivers/input/joystick/xpad.c @@ -79,6 +79,8 @@ #include <linux/stat.h> #include <linux/module.h> #include <linux/usb/input.h> +#define CREATE_TRACE_POINTS +#include <trace/events/joystick.h> #define DRIVER_AUTHOR "Marko Friedemann <mfr@bmx-chemnitz.de>" #define DRIVER_DESC "X-Box pad driver" @@ -495,16 +497,20 @@ static void xpad_irq_in(struct urb *urb) switch (xpad->xtype) { case XTYPE_XBOX360: + trace_joystick_irq("Joystick_xpad360_process_packet"); xpad360_process_packet(xpad, 0, xpad->idata); break; case XTYPE_XBOX360W: + trace_joystick_irq("Joystick_xpad360w_process_packet"); xpad360w_process_packet(xpad, 0, xpad->idata); break; default: + trace_joystick_irq("Joystick_xpad_process_packet"); xpad_process_packet(xpad, 0, xpad->idata); } exit: + trace_joystick_irq("Joystick_xpad_usb_submit_urb"); retval = usb_submit_urb(urb, GFP_ATOMIC); if (retval) dev_err(dev, "%s - usb_submit_urb failed with result %d\n", |