diff options
author | Jesse Barnes <jbarnes@virtuousgeek.org> | 2010-07-01 19:47:31 -0400 |
---|---|---|
committer | Dave Airlie <airlied@redhat.com> | 2010-07-02 00:02:44 -0400 |
commit | ac2874b980e05ed7a4ea8fed7b0a92428b51ce58 (patch) | |
tree | 71c0c8e4abe395a46ca21d2bdc3493cce19719e7 /drivers/gpu/drm/drm_irq.c | |
parent | 97e0214044d9f279a3d6286c9f859696ef0b7ebe (diff) |
drm: add vblank event trace point
Emit a trace point for vblank events. This can be helpful for mapping
drawing activity against the vblank frequency and period.
Signed-off-by: Jesse Barnes <jbarnes@virtuousgeek.org>
Signed-off-by: Dave Airlie <airlied@redhat.com>
Diffstat (limited to 'drivers/gpu/drm/drm_irq.c')
-rw-r--r-- | drivers/gpu/drm/drm_irq.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/drivers/gpu/drm/drm_irq.c b/drivers/gpu/drm/drm_irq.c index a263b7070fc6..6d201a89441c 100644 --- a/drivers/gpu/drm/drm_irq.c +++ b/drivers/gpu/drm/drm_irq.c | |||
@@ -34,6 +34,7 @@ | |||
34 | */ | 34 | */ |
35 | 35 | ||
36 | #include "drmP.h" | 36 | #include "drmP.h" |
37 | #include "drm_trace.h" | ||
37 | 38 | ||
38 | #include <linux/interrupt.h> /* For task queue support */ | 39 | #include <linux/interrupt.h> /* For task queue support */ |
39 | #include <linux/slab.h> | 40 | #include <linux/slab.h> |
@@ -754,6 +755,8 @@ void drm_handle_vblank_events(struct drm_device *dev, int crtc) | |||
754 | } | 755 | } |
755 | 756 | ||
756 | spin_unlock_irqrestore(&dev->event_lock, flags); | 757 | spin_unlock_irqrestore(&dev->event_lock, flags); |
758 | |||
759 | trace_drm_vblank_event(crtc, seq); | ||
757 | } | 760 | } |
758 | 761 | ||
759 | /** | 762 | /** |