diff options
author | Pritesh Raithatha <praithatha@nvidia.com> | 2014-01-06 19:49:06 +0530 |
---|---|---|
committer | Bharat Nihalani <bnihalani@nvidia.com> | 2014-01-14 20:42:14 -0800 |
commit | d506f8ded1cfc181bb9044e40f4e2dfe500f6152 (patch) | |
tree | fd5ba071b9c0bc3a817fba2dd5028df0edf8e263 /drivers/hid | |
parent | c8589916e626815d43736f8ac649023d8bd77a65 (diff) |
hid: hid-input: add trace event
Bug 1434677
Change-Id: I019e492769495335041a336aef4de94a746efcee
Signed-off-by: Pritesh Raithatha <praithatha@nvidia.com>
Reviewed-on: http://git-master/r/352284
Reviewed-by: Sachin Nikam <snikam@nvidia.com>
Reviewed-by: Bharat Nihalani <bnihalani@nvidia.com>
Diffstat (limited to 'drivers/hid')
-rw-r--r-- | drivers/hid/hid-input.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/drivers/hid/hid-input.c b/drivers/hid/hid-input.c index 90c718f6eded..bbb546ad985f 100644 --- a/drivers/hid/hid-input.c +++ b/drivers/hid/hid-input.c @@ -1,6 +1,7 @@ /* * Copyright (c) 2000-2001 Vojtech Pavlik * Copyright (c) 2006-2010 Jiri Kosina + * Copyright (c) 2014 NVIDIA Corporation. All rights reserved. * * HID to Linux Input mapping */ @@ -32,6 +33,9 @@ #include <linux/hid.h> #include <linux/hid-debug.h> +#define CREATE_TRACE_POINTS +#include <trace/events/hid-input.h> + #include "hid-ids.h" #define unk KEY_UNKNOWN @@ -993,6 +997,8 @@ void hidinput_hid_event(struct hid_device *hid, struct hid_field *field, struct if (!usage->type) return; + trace_hidinput_hid_event("hid_event"); + if (usage->hat_min < usage->hat_max || usage->hat_dir) { int hat_dir = usage->hat_dir; if (!hat_dir) |