diff options
author | Yogish Kulkarni <yogishk@nvidia.com> | 2013-02-06 16:58:50 +0530 |
---|---|---|
committer | Dan Willemsen <dwillemsen@nvidia.com> | 2013-09-14 12:57:47 -0700 |
commit | 662ba888faf62fee0a71afd0227ec87752a6456f (patch) | |
tree | 3a621e12ae951e4eb445446baf15e41a549d85d3 /drivers | |
parent | 54641846c0bab832e1262742f94e3c4ddff80e62 (diff) |
input-cfboost: add trace points
Add trace points to log time stamp when the input event is received
and time at which boost work is scheduled. This is for detailed
profiling of touch latency.
Bug 1229219
Change-Id: I5f2f4f3d821d93b550fa9f86dc8fd562fa5d460a
Signed-off-by: Yogish Kulkarni <yogishk@nvidia.com>
Reviewed-on: http://git-master/r/197954
(cherry picked from commit 04f7d704a071ecf4fc1f70841d020c08e58fe563)
Reviewed-on: http://git-master/r/200783
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/input-cfboost.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/drivers/input/input-cfboost.c b/drivers/input/input-cfboost.c index ed8d9407f9bc..a6a4a21e9224 100644 --- a/drivers/input/input-cfboost.c +++ b/drivers/input/input-cfboost.c @@ -26,6 +26,9 @@ #include <linux/module.h> #include <linux/pm_qos.h> +#define CREATE_TRACE_POINTS +#include <trace/events/input_cfboost.h> + /* This module listens to input events and sets a temporary frequency * floor upon input event detection. This is based on changes to * cpufreq ondemand governor by: @@ -59,6 +62,7 @@ static struct workqueue_struct *cfb_wq; static void cfb_boost(struct work_struct *w) { + trace_input_cfboost_params("boost_params", boost_freq, boost_time); cancel_delayed_work_sync(&unboost); pm_qos_update_request(&core_req, 1); pm_qos_update_request(&freq_req, boost_freq); @@ -74,6 +78,7 @@ static void cfb_unboost(struct work_struct *w) static void cfb_input_event(struct input_handle *handle, unsigned int type, unsigned int code, int value) { + trace_input_cfboost_event("event", type, code, value); if (!work_pending(&boost)) queue_work(cfb_wq, &boost); } |