i915_trace.h revision 1.3.4.2 1 1.3.4.2 tls /* $NetBSD: i915_trace.h,v 1.3.4.2 2014/08/20 00:04:20 tls Exp $ */
2 1.3.4.2 tls
3 1.3.4.2 tls /*-
4 1.3.4.2 tls * Copyright (c) 2013 The NetBSD Foundation, Inc.
5 1.3.4.2 tls * All rights reserved.
6 1.3.4.2 tls *
7 1.3.4.2 tls * This code is derived from software contributed to The NetBSD Foundation
8 1.3.4.2 tls * by Taylor R. Campbell.
9 1.3.4.2 tls *
10 1.3.4.2 tls * Redistribution and use in source and binary forms, with or without
11 1.3.4.2 tls * modification, are permitted provided that the following conditions
12 1.3.4.2 tls * are met:
13 1.3.4.2 tls * 1. Redistributions of source code must retain the above copyright
14 1.3.4.2 tls * notice, this list of conditions and the following disclaimer.
15 1.3.4.2 tls * 2. Redistributions in binary form must reproduce the above copyright
16 1.3.4.2 tls * notice, this list of conditions and the following disclaimer in the
17 1.3.4.2 tls * documentation and/or other materials provided with the distribution.
18 1.3.4.2 tls *
19 1.3.4.2 tls * THIS SOFTWARE IS PROVIDED BY THE NETBSD FOUNDATION, INC. AND CONTRIBUTORS
20 1.3.4.2 tls * ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED
21 1.3.4.2 tls * TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
22 1.3.4.2 tls * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE FOUNDATION OR CONTRIBUTORS
23 1.3.4.2 tls * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
24 1.3.4.2 tls * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
25 1.3.4.2 tls * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
26 1.3.4.2 tls * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
27 1.3.4.2 tls * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
28 1.3.4.2 tls * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
29 1.3.4.2 tls * POSSIBILITY OF SUCH DAMAGE.
30 1.3.4.2 tls */
31 1.3.4.2 tls
32 1.3.4.2 tls #ifndef _I915_TRACE_H_
33 1.3.4.2 tls #define _I915_TRACE_H_
34 1.3.4.2 tls
35 1.3.4.2 tls #include <sys/types.h>
36 1.3.4.2 tls
37 1.3.4.2 tls #include "intel_drv.h"
38 1.3.4.2 tls
39 1.3.4.2 tls static inline void
40 1.3.4.2 tls trace_i915_flip_complete(enum plane plane __unused,
41 1.3.4.2 tls struct drm_i915_gem_object *obj __unused)
42 1.3.4.2 tls {
43 1.3.4.2 tls }
44 1.3.4.2 tls
45 1.3.4.2 tls static inline void
46 1.3.4.2 tls trace_i915_flip_request(enum plane plane __unused,
47 1.3.4.2 tls struct drm_i915_gem_object *obj __unused)
48 1.3.4.2 tls {
49 1.3.4.2 tls }
50 1.3.4.2 tls
51 1.3.4.2 tls static inline void
52 1.3.4.2 tls trace_i915_gem_evict(struct drm_device *dev __unused, int min_size __unused,
53 1.3.4.2 tls unsigned int alignment __unused, bool mappable __unused)
54 1.3.4.2 tls {
55 1.3.4.2 tls }
56 1.3.4.2 tls
57 1.3.4.2 tls static inline void
58 1.3.4.2 tls trace_i915_gem_evict_everything(struct drm_device *dev __unused)
59 1.3.4.2 tls {
60 1.3.4.2 tls }
61 1.3.4.2 tls
62 1.3.4.2 tls static inline void
63 1.3.4.2 tls trace_i915_gem_evict_vm(struct i915_address_space *vm __unused)
64 1.3.4.2 tls {
65 1.3.4.2 tls }
66 1.3.4.2 tls
67 1.3.4.2 tls static inline void
68 1.3.4.2 tls trace_i915_gem_object_bind(struct drm_i915_gem_object *obj __unused,
69 1.3.4.2 tls bool map_and_fenceable __unused)
70 1.3.4.2 tls {
71 1.3.4.2 tls }
72 1.3.4.2 tls
73 1.3.4.2 tls static inline void
74 1.3.4.2 tls trace_i915_gem_object_change_domain(struct drm_i915_gem_object *obj __unused,
75 1.3.4.2 tls uint32_t read_domains __unused, uint32_t old_write_domain __unused)
76 1.3.4.2 tls {
77 1.3.4.2 tls }
78 1.3.4.2 tls
79 1.3.4.2 tls static inline void
80 1.3.4.2 tls trace_i915_gem_object_clflush(struct drm_i915_gem_object *obj __unused)
81 1.3.4.2 tls {
82 1.3.4.2 tls }
83 1.3.4.2 tls
84 1.3.4.2 tls static inline void
85 1.3.4.2 tls trace_i915_gem_object_create(struct drm_i915_gem_object *obj __unused)
86 1.3.4.2 tls {
87 1.3.4.2 tls }
88 1.3.4.2 tls
89 1.3.4.2 tls static inline void
90 1.3.4.2 tls trace_i915_gem_object_destroy(struct drm_i915_gem_object *obj __unused)
91 1.3.4.2 tls {
92 1.3.4.2 tls }
93 1.3.4.2 tls
94 1.3.4.2 tls static inline void
95 1.3.4.2 tls trace_i915_gem_object_fault(struct drm_i915_gem_object *obj __unused,
96 1.3.4.2 tls pgoff_t page_offset __unused, bool gtt __unused, bool write __unused)
97 1.3.4.2 tls {
98 1.3.4.2 tls }
99 1.3.4.2 tls
100 1.3.4.2 tls static inline void
101 1.3.4.2 tls trace_i915_gem_object_pread(struct drm_i915_gem_object *obj __unused,
102 1.3.4.2 tls uint32_t offset __unused, uint32_t size __unused)
103 1.3.4.2 tls {
104 1.3.4.2 tls }
105 1.3.4.2 tls
106 1.3.4.2 tls static inline void
107 1.3.4.2 tls trace_i915_gem_object_pwrite(struct drm_i915_gem_object *obj __unused,
108 1.3.4.2 tls uint32_t offset __unused, uint32_t size __unused)
109 1.3.4.2 tls {
110 1.3.4.2 tls }
111 1.3.4.2 tls
112 1.3.4.2 tls static inline void
113 1.3.4.2 tls trace_i915_gem_object_unbind(struct drm_i915_gem_object *obj __unused)
114 1.3.4.2 tls {
115 1.3.4.2 tls }
116 1.3.4.2 tls
117 1.3.4.2 tls static inline void
118 1.3.4.2 tls trace_i915_gem_request_add(struct intel_ring_buffer *ring __unused,
119 1.3.4.2 tls uint32_t seqno __unused)
120 1.3.4.2 tls {
121 1.3.4.2 tls }
122 1.3.4.2 tls
123 1.3.4.2 tls static inline void
124 1.3.4.2 tls trace_i915_gem_request_complete(struct intel_ring_buffer *ring __unused)
125 1.3.4.2 tls {
126 1.3.4.2 tls }
127 1.3.4.2 tls
128 1.3.4.2 tls static inline void
129 1.3.4.2 tls trace_i915_gem_request_retire(struct intel_ring_buffer *ring __unused,
130 1.3.4.2 tls uint32_t seqno __unused)
131 1.3.4.2 tls {
132 1.3.4.2 tls }
133 1.3.4.2 tls
134 1.3.4.2 tls static inline void
135 1.3.4.2 tls trace_i915_gem_request_wait_begin(struct intel_ring_buffer *ring __unused,
136 1.3.4.2 tls uint32_t seqno __unused)
137 1.3.4.2 tls {
138 1.3.4.2 tls }
139 1.3.4.2 tls
140 1.3.4.2 tls static inline void
141 1.3.4.2 tls trace_i915_gem_request_wait_end(struct intel_ring_buffer *ring __unused,
142 1.3.4.2 tls uint32_t seqno __unused)
143 1.3.4.2 tls {
144 1.3.4.2 tls }
145 1.3.4.2 tls
146 1.3.4.2 tls static inline void
147 1.3.4.2 tls trace_i915_gem_ring_dispatch(struct intel_ring_buffer *ring __unused,
148 1.3.4.2 tls uint32_t seqno __unused, uint32_t flags __unused)
149 1.3.4.2 tls {
150 1.3.4.2 tls }
151 1.3.4.2 tls
152 1.3.4.2 tls static inline void
153 1.3.4.2 tls trace_i915_gem_ring_flush(struct intel_ring_buffer *ring __unused,
154 1.3.4.2 tls uint32_t invalidate __unused, uint32_t flags __unused)
155 1.3.4.2 tls {
156 1.3.4.2 tls }
157 1.3.4.2 tls
158 1.3.4.2 tls static inline void
159 1.3.4.2 tls trace_i915_gem_ring_sync_to(struct intel_ring_buffer *from __unused,
160 1.3.4.2 tls struct intel_ring_buffer *to __unused, u32 seqno __unused)
161 1.3.4.2 tls {
162 1.3.4.2 tls }
163 1.3.4.2 tls
164 1.3.4.2 tls static inline void
165 1.3.4.2 tls trace_i915_reg_rw(bool write __unused, uint32_t reg __unused,
166 1.3.4.2 tls uint64_t value __unused, size_t len __unused, bool trace __unused)
167 1.3.4.2 tls {
168 1.3.4.2 tls }
169 1.3.4.2 tls
170 1.3.4.2 tls static inline void
171 1.3.4.2 tls trace_i915_ring_wait_begin(struct intel_ring_buffer *ring __unused)
172 1.3.4.2 tls {
173 1.3.4.2 tls }
174 1.3.4.2 tls
175 1.3.4.2 tls static inline void
176 1.3.4.2 tls trace_i915_ring_wait_end(struct intel_ring_buffer *ring __unused)
177 1.3.4.2 tls {
178 1.3.4.2 tls }
179 1.3.4.2 tls
180 1.3.4.2 tls static inline void
181 1.3.4.2 tls trace_i915_vma_bind(struct i915_vma *vma __unused, uint64_t flags __unused)
182 1.3.4.2 tls {
183 1.3.4.2 tls }
184 1.3.4.2 tls
185 1.3.4.2 tls static inline void
186 1.3.4.2 tls trace_i915_vma_unbind(struct i915_vma *vma __unused)
187 1.3.4.2 tls {
188 1.3.4.2 tls }
189 1.3.4.2 tls
190 1.3.4.2 tls static inline void
191 1.3.4.2 tls trace_intel_gpu_freq_change(unsigned int freq __unused)
192 1.3.4.2 tls {
193 1.3.4.2 tls }
194 1.3.4.2 tls
195 1.3.4.2 tls #endif /* _I915_TRACE_H_ */
196