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