Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 204992
b: refs/heads/master
c: e5510fa
h: refs/heads/master
v: v3
  • Loading branch information
Jesse Barnes authored and Dave Airlie committed Jul 2, 2010
1 parent b93088d commit 9e2a55c
Show file tree
Hide file tree
Showing 3 changed files with 42 additions and 1 deletion.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: b9c2c9ae882f058084e13e339925dbf8d2d20271
refs/heads/master: e5510fac98a706c424034950f55bb5e819c46f51
36 changes: 36 additions & 0 deletions trunk/drivers/gpu/drm/i915/i915_trace.h
Original file line number Diff line number Diff line change
Expand Up @@ -262,6 +262,42 @@ DEFINE_EVENT(i915_ring, i915_ring_wait_end,
TP_ARGS(dev)
);

TRACE_EVENT(i915_flip_request,
TP_PROTO(int plane, struct drm_gem_object *obj),

TP_ARGS(plane, obj),

TP_STRUCT__entry(
__field(int, plane)
__field(struct drm_gem_object *, obj)
),

TP_fast_assign(
__entry->plane = plane;
__entry->obj = obj;
),

TP_printk("plane=%d, obj=%p", __entry->plane, __entry->obj)
);

TRACE_EVENT(i915_flip_complete,
TP_PROTO(int plane, struct drm_gem_object *obj),

TP_ARGS(plane, obj),

TP_STRUCT__entry(
__field(int, plane)
__field(struct drm_gem_object *, obj)
),

TP_fast_assign(
__entry->plane = plane;
__entry->obj = obj;
),

TP_printk("plane=%d, obj=%p", __entry->plane, __entry->obj)
);

#endif /* _I915_TRACE_H_ */

/* This part must be outside protection */
Expand Down
5 changes: 5 additions & 0 deletions trunk/drivers/gpu/drm/i915/intel_display.c
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@
#include "intel_drv.h"
#include "i915_drm.h"
#include "i915_drv.h"
#include "i915_trace.h"
#include "drm_dp_helper.h"

#include "drm_crtc_helper.h"
Expand Down Expand Up @@ -4650,6 +4651,8 @@ static void do_intel_finish_page_flip(struct drm_device *dev,
atomic_dec_and_test(&obj_priv->pending_flip))
DRM_WAKEUP(&dev_priv->pending_flip_queue);
schedule_work(&work->work);

trace_i915_flip_complete(intel_crtc->plane, work->pending_flip_obj);
}

void intel_finish_page_flip(struct drm_device *dev, int pipe)
Expand Down Expand Up @@ -4781,6 +4784,8 @@ static int intel_crtc_page_flip(struct drm_crtc *crtc,

mutex_unlock(&dev->struct_mutex);

trace_i915_flip_request(intel_crtc->plane, obj);

return 0;
}

Expand Down

0 comments on commit 9e2a55c

Please sign in to comment.