aboutsummaryrefslogtreecommitdiffstats
path: root/include/drm/drmP.h
diff options
context:
space:
mode:
authorJesse Barnes <jbarnes@virtuousgeek.org>2010-07-01 16:48:09 -0700
committerDave Airlie <airlied@redhat.com>2010-07-02 14:03:24 +1000
commitb9c2c9ae882f058084e13e339925dbf8d2d20271 (patch)
tree2c3baccc55ef03477a4fc3e08473ea35931e56ec /include/drm/drmP.h
parentac2874b980e05ed7a4ea8fed7b0a92428b51ce58 (diff)
downloadmrst-s0i3-test-b9c2c9ae882f058084e13e339925dbf8d2d20271.tar.gz
mrst-s0i3-test-b9c2c9ae882f058084e13e339925dbf8d2d20271.tar.xz
mrst-s0i3-test-b9c2c9ae882f058084e13e339925dbf8d2d20271.zip
drm: add per-event vblank event trace points
Allows us to track each process that requests and completes events. Signed-off-by: Jesse Barnes <jbarnes@virtuousgeek.org> Signed-off-by: Dave Airlie <airlied@redhat.com>
Diffstat (limited to 'include/drm/drmP.h')
-rw-r--r--include/drm/drmP.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/include/drm/drmP.h b/include/drm/drmP.h
index c1b987158df..8364a705f12 100644
--- a/include/drm/drmP.h
+++ b/include/drm/drmP.h
@@ -403,6 +403,8 @@ struct drm_pending_event {
struct drm_event *event;
struct list_head link;
struct drm_file *file_priv;
+ pid_t pid; /* pid of requester, no guarantee it's valid by the time
+ we deliver the event, for tracing only */
void (*destroy)(struct drm_pending_event *event);
};