summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThomas Hellstrom <thomas-at-tungstengraphics-dot-com>2006-12-21 10:40:25 +0100
committerThomas Hellstrom <thomas-at-tungstengraphics-dot-com>2006-12-21 10:43:47 +0100
commitae5822561370b34808603820a063fc6e8b17dbe2 (patch)
tree90f31f4220b0bd7bd2cfdc1f3f6a673978cb7a7d
parenta467d248293f9384092ab39a9214fbf725d21927 (diff)
Improve memory manager accounting printout formatting.
-rw-r--r--linux-core/drm_proc.c10
1 files changed, 7 insertions, 3 deletions
diff --git a/linux-core/drm_proc.c b/linux-core/drm_proc.c
index 863cacfc..1c2c17fe 100644
--- a/linux-core/drm_proc.c
+++ b/linux-core/drm_proc.c
@@ -452,19 +452,23 @@ static int drm__objects_info(char *buf, char **start, off_t offset, int request,
*start = &buf[offset];
*eof = 0;
+ DRM_PROC_PRINT("Object accounting:\n\n");
if (fm->initialized) {
- DRM_PROC_PRINT("Number of active fence objects: %d.\n\n",
+ DRM_PROC_PRINT("Number of active fence objects: %d.\n",
atomic_read(&fm->count));
} else {
- DRM_PROC_PRINT("Fence objects are not supported by this driver\n\n");
+ DRM_PROC_PRINT("Fence objects are not supported by this driver\n");
}
if (bm->initialized) {
DRM_PROC_PRINT("Number of active buffer objects: %d.\n\n",
atomic_read(&bm->count));
+ }
+ DRM_PROC_PRINT("Memory accounting:\n\n");
+ if (bm->initialized) {
DRM_PROC_PRINT("Number of locked GATT pages: %lu.\n", bm->cur_pages);
} else {
- DRM_PROC_PRINT("Buffer objects are not supported by this driver.\n\n");
+ DRM_PROC_PRINT("Buffer objects are not supported by this driver.\n");
}
drm_query_memctl(&used_mem, &low_mem, &high_mem);