diff options
author | Rob Clark <robdclark@gmail.com> | 2014-03-18 10:07:08 -0400 |
---|---|---|
committer | Dave Airlie <airlied@redhat.com> | 2014-06-03 23:23:20 -0400 |
commit | 8291272ad234ff21628ce1af9043847f01f58734 (patch) | |
tree | cfeee7c8832532177ad8a280e061376bb439a5f0 | |
parent | ebc44cf386734374983922c6fc1ae8ac47f88bef (diff) |
drm: spiff out FB refcnting traces
I find myself making this change locally whenever debugging FB reference
counting. Which seems a bit silly.
Signed-off-by: Rob Clark <robdclark@gmail.com>
Reviewed-by: David Herrmann <dh.herrmann@gmail.com>
-rw-r--r-- | drivers/gpu/drm/drm_crtc.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/drivers/gpu/drm/drm_crtc.c b/drivers/gpu/drm/drm_crtc.c index 6127073407e0..5b3e2920c376 100644 --- a/drivers/gpu/drm/drm_crtc.c +++ b/drivers/gpu/drm/drm_crtc.c | |||
@@ -513,7 +513,7 @@ EXPORT_SYMBOL(drm_framebuffer_lookup); | |||
513 | */ | 513 | */ |
514 | void drm_framebuffer_unreference(struct drm_framebuffer *fb) | 514 | void drm_framebuffer_unreference(struct drm_framebuffer *fb) |
515 | { | 515 | { |
516 | DRM_DEBUG("FB ID: %d\n", fb->base.id); | 516 | DRM_DEBUG("%p: FB ID: %d (%d)\n", fb, fb->base.id, atomic_read(&fb->refcount.refcount)); |
517 | kref_put(&fb->refcount, drm_framebuffer_free); | 517 | kref_put(&fb->refcount, drm_framebuffer_free); |
518 | } | 518 | } |
519 | EXPORT_SYMBOL(drm_framebuffer_unreference); | 519 | EXPORT_SYMBOL(drm_framebuffer_unreference); |
@@ -526,7 +526,7 @@ EXPORT_SYMBOL(drm_framebuffer_unreference); | |||
526 | */ | 526 | */ |
527 | void drm_framebuffer_reference(struct drm_framebuffer *fb) | 527 | void drm_framebuffer_reference(struct drm_framebuffer *fb) |
528 | { | 528 | { |
529 | DRM_DEBUG("FB ID: %d\n", fb->base.id); | 529 | DRM_DEBUG("%p: FB ID: %d (%d)\n", fb, fb->base.id, atomic_read(&fb->refcount.refcount)); |
530 | kref_get(&fb->refcount); | 530 | kref_get(&fb->refcount); |
531 | } | 531 | } |
532 | EXPORT_SYMBOL(drm_framebuffer_reference); | 532 | EXPORT_SYMBOL(drm_framebuffer_reference); |
@@ -538,7 +538,7 @@ static void drm_framebuffer_free_bug(struct kref *kref) | |||
538 | 538 | ||
539 | static void __drm_framebuffer_unreference(struct drm_framebuffer *fb) | 539 | static void __drm_framebuffer_unreference(struct drm_framebuffer *fb) |
540 | { | 540 | { |
541 | DRM_DEBUG("FB ID: %d\n", fb->base.id); | 541 | DRM_DEBUG("%p: FB ID: %d (%d)\n", fb, fb->base.id, atomic_read(&fb->refcount.refcount)); |
542 | kref_put(&fb->refcount, drm_framebuffer_free_bug); | 542 | kref_put(&fb->refcount, drm_framebuffer_free_bug); |
543 | } | 543 | } |
544 | 544 | ||