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