diff options
author | Yogish Kulkarni <yogishk@nvidia.com> | 2013-06-26 17:26:44 +0530 |
---|---|---|
committer | Gabby Lee <galee@nvidia.com> | 2013-10-13 15:57:13 -0700 |
commit | b55550f7ee1d379718a1f63ba0fabc5ad22673a2 (patch) | |
tree | e8e6d5ddebc34799aee7bb0506e66ca0817b40f6 /include | |
parent | d43002415f120445744bee01757577a45ca98e10 (diff) |
input: touch: maxim: add trace point
Add trace point in IRQ handler for profiling.
Bug 1313953
Change-Id: I832efacf17603ae85cd03b455c8d17828fbeeec5
Signed-off-by: Yogish Kulkarni <yogishk@nvidia.com>
Reviewed-on: http://git-master/r/242431
(cherry picked from commit b610c9798db8c302887a4494ae86a4be6880a329)
Reviewed-on: http://git-master/r/288748
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit
Reviewed-by: Bo Kim <bok@nvidia.com>
Tested-by: Bo Kim <bok@nvidia.com>
Reviewed-by: Gabby Lee <galee@nvidia.com>
Diffstat (limited to 'include')
-rw-r--r-- | include/trace/events/touchscreen_maxim.h | 48 |
1 files changed, 48 insertions, 0 deletions
diff --git a/include/trace/events/touchscreen_maxim.h b/include/trace/events/touchscreen_maxim.h new file mode 100644 index 000000000000..2f0e99d80d36 --- /dev/null +++ b/include/trace/events/touchscreen_maxim.h @@ -0,0 +1,48 @@ +/* + * include/trace/events/touchscreen_maxim.h + * + * Maxim touchscreen event logging to ftrace. + * + * Copyright (c) 2013, NVIDIA CORPORATION. All rights reserved. + * + * 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_maxim + +#if !defined(_TRACE_TOUCHSCREEN_MAXIM_H) || defined(TRACE_HEADER_MULTI_READ) +#define _TRACE_TOUCHSCREEN_MAXIM_H + +#include <linux/ktime.h> +#include <linux/tracepoint.h> + +TRACE_EVENT(touchscreen_maxim_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_MAXIM_H */ + +/* This part must be outside protection */ +#include <trace/define_trace.h> |