Merge commit 'main-jb-2012.08.03-B4' into t114-0806
[linux-2.6.git] / include / trace / events / nvevent.h
1 /*
2  * include/trace/events/nvevent.h
3  *
4  * Input event logging to ftrace.
5  *
6  * Copyright (c) 2012, NVIDIA Corporation.
7  *
8  * This program is free software; you can redistribute it and/or modify
9  * it under the terms of the GNU General Public License as published by
10  * the Free Software Foundation; either version 2 of the License, or
11  * (at your option) any later version.
12  *
13  * This program is distributed in the hope that it will be useful, but WITHOUT
14  * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
15  * FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License for
16  * more details.
17  *
18  * You should have received a copy of the GNU General Public License along
19  * with this program; if not, write to the Free Software Foundation, Inc.,
20  * 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
21  */
22
23 #undef TRACE_SYSTEM
24 #define TRACE_SYSTEM nvevent
25
26 #if !defined(_TRACE_NVEVENT_H) || defined(TRACE_HEADER_MULTI_READ)
27 #define _TRACE_NVEVENT_H
28
29 #include <linux/ktime.h>
30 #include <linux/tracepoint.h>
31
32 TRACE_EVENT(nvevent_irq_data_read_start_series,
33         TP_PROTO(const char *name),
34         TP_ARGS(name),
35         TP_STRUCT__entry(
36                 __field(const char *, name)
37         ),
38         TP_fast_assign(
39                 __entry->name = name;
40         ),
41         TP_printk("name=%s",
42           __entry->name)
43 );
44
45 TRACE_EVENT(nvevent_irq_data_read_finish_series,
46         TP_PROTO(const char *name),
47         TP_ARGS(name),
48         TP_STRUCT__entry(
49                 __field(const char *, name)
50         ),
51         TP_fast_assign(
52                 __entry->name = name;
53         ),
54         TP_printk("name=%s",
55           __entry->name)
56 );
57
58 TRACE_EVENT(nvevent_irq_data_read_start_single,
59         TP_PROTO(const char *name),
60         TP_ARGS(name),
61         TP_STRUCT__entry(
62                 __field(const char *, name)
63         ),
64         TP_fast_assign(
65                 __entry->name = name;
66         ),
67         TP_printk("name=%s",
68           __entry->name)
69 );
70
71 TRACE_EVENT(nvevent_irq_data_read_finish_single,
72         TP_PROTO(const char *name),
73         TP_ARGS(name),
74         TP_STRUCT__entry(
75                 __field(const char *, name)
76         ),
77         TP_fast_assign(
78                 __entry->name = name;
79         ),
80         TP_printk("name=%s",
81           __entry->name)
82 );
83
84 TRACE_EVENT(nvevent_irq_data_submit,
85         TP_PROTO(const char *name),
86         TP_ARGS(name),
87         TP_STRUCT__entry(
88                 __field(const char *, name)
89         ),
90         TP_fast_assign(
91                 __entry->name = name;
92         ),
93         TP_printk("name=%s",
94           __entry->name)
95 );
96
97 #endif /*  _TRACE_NVEVENT_H */
98
99 /* This part must be outside protection */
100 #include <trace/define_trace.h>