mirror of
https://github.com/Fishwaldo/Star64_linux.git
synced 2025-07-22 23:04:43 +00:00
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>
This commit is contained in:
parent
97e0214044
commit
ac2874b980
4 changed files with 48 additions and 1 deletions
|
@ -34,6 +34,7 @@
|
|||
*/
|
||||
|
||||
#include "drmP.h"
|
||||
#include "drm_trace.h"
|
||||
|
||||
#include <linux/interrupt.h> /* For task queue support */
|
||||
#include <linux/slab.h>
|
||||
|
@ -754,6 +755,8 @@ void drm_handle_vblank_events(struct drm_device *dev, int crtc)
|
|||
}
|
||||
|
||||
spin_unlock_irqrestore(&dev->event_lock, flags);
|
||||
|
||||
trace_drm_vblank_event(crtc, seq);
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue