summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorYogish Kulkarni <yogishk@nvidia.com>2013-02-06 16:58:50 +0530
committerRiham Haidar <rhaidar@nvidia.com>2013-02-11 17:25:05 -0800
commitdab67d110d7534b238c77df4ed42a24bac60db48 (patch)
treeef6a212cc9871b1275942902d35e264489410964 /include
parentff12ceb54e880f0b7bb8b49823551f8fde1320a4 (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 Reviewed-by: Riham Haidar <rhaidar@nvidia.com> Tested-by: Riham Haidar <rhaidar@nvidia.com>
Diffstat (limited to 'include')
-rw-r--r--include/trace/events/input_cfboost.h66
1 files changed, 66 insertions, 0 deletions
diff --git a/include/trace/events/input_cfboost.h b/include/trace/events/input_cfboost.h
new file mode 100644
index 000000000000..40bb39add3b4
--- /dev/null
+++ b/include/trace/events/input_cfboost.h
@@ -0,0 +1,66 @@
+/*
+ * Copyright (c) 2013, NVIDIA CORPORATION. All rights reserved.
+ *
+ * This program is free software; you can redistribute it and/or modify it
+ * under the terms and conditions of the GNU General Public License,
+ * version 2, as published by the Free Software Foundation.
+ *
+ * This program is distributed in the hope 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, see <http://www.gnu.org/licenses/>.
+ */
+
+#undef TRACE_SYSTEM
+#define TRACE_SYSTEM input_cfboost
+
+#if !defined(_TRACE_INPUT_CFBOOST_H) || defined(TRACE_HEADER_MULTI_READ)
+#define _TRACE_INPUT_CFBOOST_H
+
+#include <linux/ktime.h>
+#include <linux/tracepoint.h>
+
+TRACE_EVENT(input_cfboost_params,
+ TP_PROTO(const char *name, unsigned int freq, unsigned long time),
+ TP_ARGS(name, freq, time),
+ TP_STRUCT__entry(
+ __field(const char *, name)
+ __field(unsigned int, freq)
+ __field(unsigned long, time)
+ ),
+ TP_fast_assign(
+ __entry->name = name;
+ __entry->freq = freq;
+ __entry->time = time;
+ ),
+ TP_printk("name=%s freq=%u time=%lu",
+ __entry->name, __entry->freq, __entry->time)
+);
+
+TRACE_EVENT(input_cfboost_event,
+ TP_PROTO(const char *name, unsigned int type,
+ unsigned int code, int value),
+ TP_ARGS(name, type, code, value),
+ TP_STRUCT__entry(
+ __field(const char *, name)
+ __field(unsigned int, type)
+ __field(unsigned int, code)
+ __field(int, value)
+ ),
+ TP_fast_assign(
+ __entry->name = name;
+ __entry->type = type;
+ __entry->code = code;
+ __entry->value = value;
+ ),
+ TP_printk("name=%s type=%u code=%u value=%d",
+ __entry->name, __entry->type, __entry->code, __entry->value)
+);
+
+#endif /* _TRACE_INPUT_CFBOOST_H */
+
+/* This part must be outside protection */
+#include <trace/define_trace.h>