mirror of
https://github.com/hardkernel/linux.git
synced 2026-06-07 19:30:30 +09:00
rk: gpu: print more debug info for Android's memtrack
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user