summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorVikas Jain <vjain@nvidia.com>2013-01-18 12:39:48 +0530
committerRiham Haidar <rhaidar@nvidia.com>2013-01-22 14:06:34 -0800
commit0d77de91d85a9cb09af3dd3ce86235d73449652a (patch)
treebfa979bd69794c986412ea88d2fe51de2486df17 /include
parent1293fbcebba2a07f378f6747678864a5ffba017f (diff)
input: touch: raydium: Add ftrace logging.
Enable Raydium IRQ handler ftrace logging for profiling. Bug 1170830. Change-Id: I4ade91ea4e6cb1c1b7764f2cf2572f9bbaaa1287 Signed-off-by: Vikas Jain <vjain@nvidia.com> Reviewed-on: http://git-master/r/192336 Reviewed-by: Automatic_Commit_Validation_User GVS: Gerrit_Virtual_Submit Reviewed-by: Robert Collins <rcollins@nvidia.com> Reviewed-by: Bharat Nihalani <bnihalani@nvidia.com>
Diffstat (limited to 'include')
-rw-r--r--include/trace/events/touchscreen_raydium.h48
1 files changed, 48 insertions, 0 deletions
diff --git a/include/trace/events/touchscreen_raydium.h b/include/trace/events/touchscreen_raydium.h
new file mode 100644
index 000000000000..74a8383bbda9
--- /dev/null
+++ b/include/trace/events/touchscreen_raydium.h
@@ -0,0 +1,48 @@
+/*
+ * include/trace/events/touchscreen_raydium.h
+ *
+ * Raydium touchscreen 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 touchscreen_raydium
+
+#if !defined(_TRACE_TOUCHSCREEN_RAYDIUM_H) || defined(TRACE_HEADER_MULTI_READ)
+#define _TRACE_TOUCHSCREEN_RAYDIUM_H
+
+#include <linux/ktime.h>
+#include <linux/tracepoint.h>
+
+TRACE_EVENT(touchscreen_raydium_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_TOUCHSCREEN_RAYDIUM_H */
+
+/* This part must be outside protection */
+#include <trace/define_trace.h>