Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/sys/external/bsd/drm2/dist/drm/i915 Get rid of i915_trace.h.



details:   https://anonhg.NetBSD.org/src/rev/ec2dcad6e070
branches:  trunk
changeset: 365861:ec2dcad6e070
user:      riastradh <riastradh%NetBSD.org@localhost>
date:      Mon Aug 27 07:01:56 2018 +0000

description:
Get rid of i915_trace.h.

diffstat:

 sys/external/bsd/drm2/dist/drm/i915/i915_trace.h |  820 -----------------------
 1 files changed, 0 insertions(+), 820 deletions(-)

diffs (truncated from 824 to 300 lines):

diff -r 71bd5bddf497 -r ec2dcad6e070 sys/external/bsd/drm2/dist/drm/i915/i915_trace.h
--- a/sys/external/bsd/drm2/dist/drm/i915/i915_trace.h  Mon Aug 27 07:01:42 2018 +0000
+++ /dev/null   Thu Jan 01 00:00:00 1970 +0000
@@ -1,820 +0,0 @@
-/*     $NetBSD: i915_trace.h,v 1.3 2018/08/27 04:58:24 riastradh Exp $ */
-
-#if !defined(_I915_TRACE_H_) || defined(TRACE_HEADER_MULTI_READ)
-#define _I915_TRACE_H_
-
-#include <linux/stringify.h>
-#include <linux/types.h>
-#include <linux/tracepoint.h>
-
-#include <drm/drmP.h>
-#include "i915_drv.h"
-#include "intel_drv.h"
-#include "intel_ringbuffer.h"
-
-#undef TRACE_SYSTEM
-#define TRACE_SYSTEM i915
-#define TRACE_INCLUDE_FILE i915_trace
-
-/* pipe updates */
-
-TRACE_EVENT(i915_pipe_update_start,
-           TP_PROTO(struct intel_crtc *crtc),
-           TP_ARGS(crtc),
-
-           TP_STRUCT__entry(
-                            __field(enum pipe, pipe)
-                            __field(u32, frame)
-                            __field(u32, scanline)
-                            __field(u32, min)
-                            __field(u32, max)
-                            ),
-
-           TP_fast_assign(
-                          __entry->pipe = crtc->pipe;
-                          __entry->frame = crtc->base.dev->driver->get_vblank_counter(crtc->base.dev,
-                                                                                      crtc->pipe);
-                          __entry->scanline = intel_get_crtc_scanline(crtc);
-                          __entry->min = crtc->debug.min_vbl;
-                          __entry->max = crtc->debug.max_vbl;
-                          ),
-
-           TP_printk("pipe %c, frame=%u, scanline=%u, min=%u, max=%u",
-                     pipe_name(__entry->pipe), __entry->frame,
-                      __entry->scanline, __entry->min, __entry->max)
-);
-
-TRACE_EVENT(i915_pipe_update_vblank_evaded,
-           TP_PROTO(struct intel_crtc *crtc),
-           TP_ARGS(crtc),
-
-           TP_STRUCT__entry(
-                            __field(enum pipe, pipe)
-                            __field(u32, frame)
-                            __field(u32, scanline)
-                            __field(u32, min)
-                            __field(u32, max)
-                            ),
-
-           TP_fast_assign(
-                          __entry->pipe = crtc->pipe;
-                          __entry->frame = crtc->debug.start_vbl_count;
-                          __entry->scanline = crtc->debug.scanline_start;
-                          __entry->min = crtc->debug.min_vbl;
-                          __entry->max = crtc->debug.max_vbl;
-                          ),
-
-           TP_printk("pipe %c, frame=%u, scanline=%u, min=%u, max=%u",
-                     pipe_name(__entry->pipe), __entry->frame,
-                      __entry->scanline, __entry->min, __entry->max)
-);
-
-TRACE_EVENT(i915_pipe_update_end,
-           TP_PROTO(struct intel_crtc *crtc, u32 frame, int scanline_end),
-           TP_ARGS(crtc, frame, scanline_end),
-
-           TP_STRUCT__entry(
-                            __field(enum pipe, pipe)
-                            __field(u32, frame)
-                            __field(u32, scanline)
-                            ),
-
-           TP_fast_assign(
-                          __entry->pipe = crtc->pipe;
-                          __entry->frame = frame;
-                          __entry->scanline = scanline_end;
-                          ),
-
-           TP_printk("pipe %c, frame=%u, scanline=%u",
-                     pipe_name(__entry->pipe), __entry->frame,
-                     __entry->scanline)
-);
-
-/* object tracking */
-
-TRACE_EVENT(i915_gem_object_create,
-           TP_PROTO(struct drm_i915_gem_object *obj),
-           TP_ARGS(obj),
-
-           TP_STRUCT__entry(
-                            __field(struct drm_i915_gem_object *, obj)
-                            __field(u32, size)
-                            ),
-
-           TP_fast_assign(
-                          __entry->obj = obj;
-                          __entry->size = obj->base.size;
-                          ),
-
-           TP_printk("obj=%p, size=%u", __entry->obj, __entry->size)
-);
-
-TRACE_EVENT(i915_gem_shrink,
-           TP_PROTO(struct drm_i915_private *i915, unsigned long target, unsigned flags),
-           TP_ARGS(i915, target, flags),
-
-           TP_STRUCT__entry(
-                            __field(int, dev)
-                            __field(unsigned long, target)
-                            __field(unsigned, flags)
-                            ),
-
-           TP_fast_assign(
-                          __entry->dev = i915->dev->primary->index;
-                          __entry->target = target;
-                          __entry->flags = flags;
-                          ),
-
-           TP_printk("dev=%d, target=%lu, flags=%x",
-                     __entry->dev, __entry->target, __entry->flags)
-);
-
-TRACE_EVENT(i915_vma_bind,
-           TP_PROTO(struct i915_vma *vma, unsigned flags),
-           TP_ARGS(vma, flags),
-
-           TP_STRUCT__entry(
-                            __field(struct drm_i915_gem_object *, obj)
-                            __field(struct i915_address_space *, vm)
-                            __field(u64, offset)
-                            __field(u32, size)
-                            __field(unsigned, flags)
-                            ),
-
-           TP_fast_assign(
-                          __entry->obj = vma->obj;
-                          __entry->vm = vma->vm;
-                          __entry->offset = vma->node.start;
-                          __entry->size = vma->node.size;
-                          __entry->flags = flags;
-                          ),
-
-           TP_printk("obj=%p, offset=%016llx size=%x%s vm=%p",
-                     __entry->obj, __entry->offset, __entry->size,
-                     __entry->flags & PIN_MAPPABLE ? ", mappable" : "",
-                     __entry->vm)
-);
-
-TRACE_EVENT(i915_vma_unbind,
-           TP_PROTO(struct i915_vma *vma),
-           TP_ARGS(vma),
-
-           TP_STRUCT__entry(
-                            __field(struct drm_i915_gem_object *, obj)
-                            __field(struct i915_address_space *, vm)
-                            __field(u64, offset)
-                            __field(u32, size)
-                            ),
-
-           TP_fast_assign(
-                          __entry->obj = vma->obj;
-                          __entry->vm = vma->vm;
-                          __entry->offset = vma->node.start;
-                          __entry->size = vma->node.size;
-                          ),
-
-           TP_printk("obj=%p, offset=%016llx size=%x vm=%p",
-                     __entry->obj, __entry->offset, __entry->size, __entry->vm)
-);
-
-#define VM_TO_TRACE_NAME(vm) \
-       (i915_is_ggtt(vm) ? "G" : \
-                     "P")
-
-DECLARE_EVENT_CLASS(i915_va,
-       TP_PROTO(struct i915_address_space *vm, u64 start, u64 length, const char *name),
-       TP_ARGS(vm, start, length, name),
-
-       TP_STRUCT__entry(
-               __field(struct i915_address_space *, vm)
-               __field(u64, start)
-               __field(u64, end)
-               __string(name, name)
-       ),
-
-       TP_fast_assign(
-               __entry->vm = vm;
-               __entry->start = start;
-               __entry->end = start + length - 1;
-               __assign_str(name, name);
-       ),
-
-       TP_printk("vm=%p (%s), 0x%llx-0x%llx",
-                 __entry->vm, __get_str(name),  __entry->start, __entry->end)
-);
-
-DEFINE_EVENT(i915_va, i915_va_alloc,
-            TP_PROTO(struct i915_address_space *vm, u64 start, u64 length, const char *name),
-            TP_ARGS(vm, start, length, name)
-);
-
-DECLARE_EVENT_CLASS(i915_px_entry,
-       TP_PROTO(struct i915_address_space *vm, u32 px, u64 start, u64 px_shift),
-       TP_ARGS(vm, px, start, px_shift),
-
-       TP_STRUCT__entry(
-               __field(struct i915_address_space *, vm)
-               __field(u32, px)
-               __field(u64, start)
-               __field(u64, end)
-       ),
-
-       TP_fast_assign(
-               __entry->vm = vm;
-               __entry->px = px;
-               __entry->start = start;
-               __entry->end = ((start + (1ULL << px_shift)) & ~((1ULL << px_shift)-1)) - 1;
-       ),
-
-       TP_printk("vm=%p, pde=%d (0x%llx-0x%llx)",
-                 __entry->vm, __entry->px, __entry->start, __entry->end)
-);
-
-DEFINE_EVENT(i915_px_entry, i915_page_table_entry_alloc,
-            TP_PROTO(struct i915_address_space *vm, u32 pde, u64 start, u64 pde_shift),
-            TP_ARGS(vm, pde, start, pde_shift)
-);
-
-DEFINE_EVENT_PRINT(i915_px_entry, i915_page_directory_entry_alloc,
-                  TP_PROTO(struct i915_address_space *vm, u32 pdpe, u64 start, u64 pdpe_shift),
-                  TP_ARGS(vm, pdpe, start, pdpe_shift),
-
-                  TP_printk("vm=%p, pdpe=%d (0x%llx-0x%llx)",
-                            __entry->vm, __entry->px, __entry->start, __entry->end)
-);
-
-DEFINE_EVENT_PRINT(i915_px_entry, i915_page_directory_pointer_entry_alloc,
-                  TP_PROTO(struct i915_address_space *vm, u32 pml4e, u64 start, u64 pml4e_shift),
-                  TP_ARGS(vm, pml4e, start, pml4e_shift),
-
-                  TP_printk("vm=%p, pml4e=%d (0x%llx-0x%llx)",
-                            __entry->vm, __entry->px, __entry->start, __entry->end)
-);
-
-/* Avoid extra math because we only support two sizes. The format is defined by
- * bitmap_scnprintf. Each 32 bits is 8 HEX digits followed by comma */
-#define TRACE_PT_SIZE(bits) \
-       ((((bits) == 1024) ? 288 : 144) + 1)
-
-DECLARE_EVENT_CLASS(i915_page_table_entry_update,
-       TP_PROTO(struct i915_address_space *vm, u32 pde,
-                struct i915_page_table *pt, u32 first, u32 count, u32 bits),
-       TP_ARGS(vm, pde, pt, first, count, bits),
-
-       TP_STRUCT__entry(
-               __field(struct i915_address_space *, vm)
-               __field(u32, pde)
-               __field(u32, first)
-               __field(u32, last)
-               __dynamic_array(char, cur_ptes, TRACE_PT_SIZE(bits))
-       ),
-
-       TP_fast_assign(
-               __entry->vm = vm;
-               __entry->pde = pde;
-               __entry->first = first;
-               __entry->last = first + count - 1;
-               scnprintf(__get_str(cur_ptes),
-                         TRACE_PT_SIZE(bits),
-                         "%*pb",
-                         bits,
-                         pt->used_ptes);
-       ),
-
-       TP_printk("vm=%p, pde=%d, updating %u:%u\t%s",
-                 __entry->vm, __entry->pde, __entry->last, __entry->first,
-                 __get_str(cur_ptes))
-);
-
-DEFINE_EVENT(i915_page_table_entry_update, i915_page_table_entry_map,
-       TP_PROTO(struct i915_address_space *vm, u32 pde,
-                struct i915_page_table *pt, u32 first, u32 count, u32 bits),
-       TP_ARGS(vm, pde, pt, first, count, bits)
-);
-
-TRACE_EVENT(i915_gem_object_change_domain,
-           TP_PROTO(struct drm_i915_gem_object *obj, u32 old_read, u32 old_write),



Home | Main Index | Thread Index | Old Index