mirror of
https://github.com/torvalds/linux.git
synced 2026-06-10 15:42:19 +02:00
rk: gpu: print more debug info for Android's memtrack
This commit is contained in:
parent
ee1203ab36
commit
b3d8ca9bcc
|
|
@ -48,10 +48,13 @@ static int kbasep_gpu_memory_seq_show(struct seq_file *sfile, void *data)
|
|||
list_for_each_entry(element, &kbdev->kctx_list, link) {
|
||||
/* output the memory usage and cap for each kctx
|
||||
* opened on this device */
|
||||
ret = seq_printf(sfile, " %s-0x%p %10u\n", \
|
||||
"kctx",
|
||||
ret = seq_printf(sfile, " %s-0x%p %10u %10u %10u %10u\n", \
|
||||
"kctx", \
|
||||
element->kctx, \
|
||||
atomic_read(&(element->kctx->used_pages)));
|
||||
element->kctx->pid, \
|
||||
atomic_read(&(element->kctx->osalloc.free_list_size)), \
|
||||
atomic_read(&(element->kctx->used_pages)), \
|
||||
atomic_read(&(element->kctx->nonmapped_pages)));
|
||||
}
|
||||
mutex_unlock(&kbdev->kctx_list_lock);
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user