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