summaryrefslogtreecommitdiffstats
path: root/include/trace
diff options
context:
space:
mode:
authorIshan Mittal <imittal@nvidia.com>2017-06-28 08:57:29 -0400
committerIshan Mittal <imittal@nvidia.com>2017-06-28 08:57:29 -0400
commit94c70a1d3d9bd9e2205ce3fb617688ecedfdca74 (patch)
tree2e3867db2acb860a179cf65cea05a5c52f18dbaf /include/trace
parent7a1657e1fc15ba8f865f066dae626166a6bd098e (diff)
parentecb2a4feff1ea906d2eae2eff227df088ea4d186 (diff)
Merge branch 'nvt19x/dev-kernel' into t19x
Change-Id: I202b16a874abcaae3e1a66cfa30b3a32e015aa71
Diffstat (limited to 'include/trace')
-rw-r--r--include/trace/events/nvhost_pva.h87
1 files changed, 87 insertions, 0 deletions
diff --git a/include/trace/events/nvhost_pva.h b/include/trace/events/nvhost_pva.h
new file mode 100644
index 000000000..7e95e6676
--- /dev/null
+++ b/include/trace/events/nvhost_pva.h
@@ -0,0 +1,87 @@
1/*
2 * Nvhost event logging to ftrace.
3 *
4 * Copyright (c) 2017, NVIDIA Corporation. All rights reserved.
5 *
6 * This program is free software; you can redistribute it and/or modify
7 * it under the terms of the GNU General Public License as published by
8 * the Free Software Foundation; either version 2 of the License, or
9 * (at your option) any later version.
10 *
11 * This program is distributed in the hope that it will be useful, but WITHOUT
12 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
13 * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for
14 * more details.
15 *
16 * You should have received a copy of the GNU General Public License along
17 * with this program; if not, write to the Free Software Foundation, Inc.,
18 * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
19 */
20
21#undef TRACE_SYSTEM
22#define TRACE_SYSTEM nvhost_pva
23
24#if !defined(_TRACE_NVHOST_PVA_H) || defined(TRACE_HEADER_MULTI_READ)
25#define _TRACE_NVHOST_PVA_H
26
27#include <linux/tracepoint.h>
28
29
30TRACE_EVENT(nvhost_pva_write,
31
32 TP_PROTO(
33 u64 delta_time,
34 u8 major,
35 u8 minor,
36 u8 flags,
37 u8 sequence,
38 u32 arg1,
39 u32 arg2
40 ),
41
42 TP_ARGS(
43 delta_time,
44 major,
45 minor,
46 flags,
47 sequence,
48 arg1,
49 arg2
50 ),
51
52 TP_STRUCT__entry(
53 __field(u64, delta_time)
54 __field(u8, major)
55 __field(u8, minor)
56 __field(u8, flags)
57 __field(u8, sequence)
58 __field(u32, arg1)
59 __field(u32, arg2)
60 ),
61
62 TP_fast_assign(
63 __entry->delta_time = delta_time;
64 __entry->major = major;
65 __entry->minor = minor;
66 __entry->flags = flags;
67 __entry->sequence = sequence;
68 __entry->arg1 = arg1;
69 __entry->arg2 = arg2;
70 ),
71
72 TP_printk("time: %llu\tmajor: 0x%x\tminor: 0x%x\tflags: 0x%x\t"
73 "sequence: 0x%x\targ1: %u\targ2: %u",
74 __entry->delta_time, __entry->major, __entry->minor,
75 __entry->flags, __entry->sequence, __entry->arg1, __entry->arg2)
76);
77
78#endif /* _TRACE_NVHOST_PVA_H */
79
80/* This part must be outside protection */
81#undef TRACE_INCLUDE_PATH
82#undef TRACE_INCLUDE_FILE
83#define TRACE_INCLUDE_PATH ../../../nvhost-t19x/include/trace/events/
84
85#define TRACE_INCLUDE_FILE nvhost_pva
86/* This part must be outside protection */
87#include <trace/define_trace.h>