aboutsummaryrefslogtreecommitdiffstats
path: root/include/drm
diff options
context:
space:
mode:
authorPauli Nieminen <suokkos@gmail.com>2010-04-01 08:44:58 -0400
committerDave Airlie <airlied@redhat.com>2010-04-05 21:35:45 -0400
commit0745866165598b067442c472911280527b08be3e (patch)
tree454900be36c969fe45554a47e733807d63be8b6f /include/drm
parent1403b1a38e8b19a4cc17e2c158e278628943a436 (diff)
drm/ttm: Add debugfs output entry to pool allocator.
ttm_page_alloc_debugfs can be registered to output the state of pools. Debugfs file will output number of pages freed from the pool, number of pages in pool now and the lowes number of pages in pool since previous shrink. Signed-off-by: Pauli Nieminen <suokkos@gmail.com> Signed-off-by: Dave Airlie <airlied@redhat.com>
Diffstat (limited to 'include/drm')
-rw-r--r--include/drm/ttm/ttm_page_alloc.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/include/drm/ttm/ttm_page_alloc.h b/include/drm/ttm/ttm_page_alloc.h
index 043d817b8164..8b091c309df4 100644
--- a/include/drm/ttm/ttm_page_alloc.h
+++ b/include/drm/ttm/ttm_page_alloc.h
@@ -67,4 +67,8 @@ int ttm_page_alloc_init(unsigned max_pages);
67 */ 67 */
68void ttm_page_alloc_fini(void); 68void ttm_page_alloc_fini(void);
69 69
70/**
71 * Output the state of pools to debugfs file
72 */
73extern int ttm_page_alloc_debugfs(struct seq_file *m, void *data);
70#endif 74#endif