diff options
author | Dave Airlie <airlied@linux.ie> | 2009-08-26 13:13:37 +1000 |
---|---|---|
committer | Dave Airlie <airlied@linux.ie> | 2009-09-02 09:39:43 +1000 |
commit | fa8a123855e20068204982596b8fafceb1a67f0b (patch) | |
tree | efdfa7fb3cbff6f474cb89de289203f736aa0d81 /include/drm/drm_mm.h | |
parent | 3420e74262a7d6496d0ac433d6f61c9972f015f6 (diff) | |
download | linux-stable-fa8a123855e20068204982596b8fafceb1a67f0b.tar.gz linux-stable-fa8a123855e20068204982596b8fafceb1a67f0b.tar.bz2 linux-stable-fa8a123855e20068204982596b8fafceb1a67f0b.zip |
drm/mm: add ability to dump mm lists via debugfs
This adds code to the drm_mm to talk to debugfs, and adds
support to radeon to add the VRAM and GTT mm lists to debugfs.
I tested with spinlock debugging and it doesn't give out.
Signed-off-by: Dave Airlie <airlied@redhat.com>
Diffstat (limited to 'include/drm/drm_mm.h')
-rw-r--r-- | include/drm/drm_mm.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/include/drm/drm_mm.h b/include/drm/drm_mm.h index f8332073d277..bc5a87e8aeea 100644 --- a/include/drm/drm_mm.h +++ b/include/drm/drm_mm.h @@ -96,4 +96,8 @@ static inline struct drm_mm *drm_get_mm(struct drm_mm_node *block) return block->mm; } +#ifdef CONFIG_DEBUG_FS +int drm_mm_dump_table(struct seq_file *m, struct drm_mm *mm); +#endif + #endif |