summaryrefslogtreecommitdiff
path: root/overlay
diff options
context:
space:
mode:
authorKristian Høgsberg <krh@cryptic-dragon.jf.intel.com>2015-08-07 14:51:27 -0700
committerKristian Høgsberg Kristensen <kristian.h.kristensen@intel.com>2015-08-07 14:59:56 -0700
commit5f4fad31829b1c6dfcddb633d65e9e7066818cff (patch)
tree29070beb2437a241caaceeed16959df1fed735c3 /overlay
parentdb0f28aee8b7f95a10139993096d60ba2a89c6a5 (diff)
tools/aubdump: Don't rely on open for discovering the drm fd
DRI3 passes the drm fd over X protocol and as such we can't rely on hooking open to discover the drm fd. Instead we look for drm ioctl codes in the ioctl wrapper. If we don't have a drm fd and see something that looks like a drm ioctl, we stat the fd to see if it's a drm fd. If it is, we save it for later so we don't have to do an extra stat on every ioctl. We can then drop the open wrapper, but we keep the close wrapper so we can invalidate our cached drm_fd if it's closed. Signed-off-by: Kristian Høgsberg <krh@cryptic-dragon.jf.intel.com>
Diffstat (limited to 'overlay')
0 files changed, 0 insertions, 0 deletions