From 322455d5a102bab522995821c25b08a84faa8724 Mon Sep 17 00:00:00 2001 From: Vikas Jain Date: Wed, 30 Jan 2013 05:23:29 -0500 Subject: 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 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 --- drivers/input/joystick/xpad.c | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'drivers') 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 #include #include +#define CREATE_TRACE_POINTS +#include #define DRIVER_AUTHOR "Marko Friedemann " #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", -- cgit v1.2.3