summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorVikas Jain <vjain@nvidia.com>2013-01-30 05:23:29 -0500
committerRiham Haidar <rhaidar@nvidia.com>2013-01-31 19:03:31 -0800
commit0adf09de7c8f58892cb05483a2f718fe0674fb93 (patch)
tree48d0a94f0b77e5674d030ef5dd7078ebb1c97c1b /include
parent85da379e26fd01e14e4934a79a3286a72b1167d9 (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 GVS: Gerrit_Virtual_Submit Reviewed-by: Bharat Nihalani <bnihalani@nvidia.com>
Diffstat (limited to 'include')
-rw-r--r--include/trace/events/joystick.h48
1 files changed, 48 insertions, 0 deletions
diff --git a/include/trace/events/joystick.h b/include/trace/events/joystick.h
new file mode 100644
index 000000000000..99cfbb206d5c
--- /dev/null
+++ b/include/trace/events/joystick.h
@@ -0,0 +1,48 @@
+/*
+ * include/trace/events/joystick.h
+ *
+ * Joystick key event logging to ftrace.
+ *
+ * Copyright (c) 2013, NVIDIA Corporation.
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation; either version 2 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful, but WITHOUT
+ * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
+ * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for
+ * more details.
+ *
+ * You should have received a copy of the GNU General Public License along
+ * with this program; if not, write to the Free Software Foundation, Inc.,
+ * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
+ */
+
+#undef TRACE_SYSTEM
+#define TRACE_SYSTEM joystick
+
+#if !defined(_TRACE_JOYSTICK_H) || defined(TRACE_HEADER_MULTI_READ)
+#define _TRACE_JOYSTICK_H
+
+#include <linux/ktime.h>
+#include <linux/tracepoint.h>
+
+TRACE_EVENT(joystick_irq,
+ TP_PROTO(const char *name),
+ TP_ARGS(name),
+ TP_STRUCT__entry(
+ __field(const char *, name)
+ ),
+ TP_fast_assign(
+ __entry->name = name;
+ ),
+ TP_printk("name=%s",
+ __entry->name)
+);
+
+#endif /* _TRACE_JOYSTICK_H */
+
+/* This part must be outside protection */
+#include <trace/define_trace.h>