diff options
author | Vikas Jain <vjain@nvidia.com> | 2013-01-30 05:23:29 -0500 |
---|---|---|
committer | Dan Willemsen <dwillemsen@nvidia.com> | 2013-09-14 12:57:00 -0700 |
commit | 322455d5a102bab522995821c25b08a84faa8724 (patch) | |
tree | d8f0f329c08e77a610a12a664c1ca14febec1256 /include/trace | |
parent | 958439aed9feedd873056f60c093c45ceeb38ad1 (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
(cherry picked from commit 0adf09de7c8f58892cb05483a2f718fe0674fb93)
Reviewed-on: http://git-master/r/196342
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit
Reviewed-by: Bharat Nihalani <bnihalani@nvidia.com>
Diffstat (limited to 'include/trace')
-rw-r--r-- | include/trace/events/joystick.h | 48 |
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> |