Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 233321
b: refs/heads/master
c: 01e2f53
h: refs/heads/master
i:
  233319: af75856
v: v3
  • Loading branch information
Kees Cook authored and Dave Airlie committed Feb 13, 2011
1 parent 836a4dd commit 4205dc4
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 5 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 9fad321ac6bedd96f449754a1a25289ea1789a49
refs/heads/master: 01e2f533a234dc62d16c0d3d4fb9d71cf1ce50c3
9 changes: 5 additions & 4 deletions trunk/drivers/gpu/drm/drm_info.c
Original file line number Diff line number Diff line change
Expand Up @@ -283,17 +283,18 @@ int drm_vma_info(struct seq_file *m, void *data)
#endif

mutex_lock(&dev->struct_mutex);
seq_printf(m, "vma use count: %d, high_memory = %p, 0x%08llx\n",
seq_printf(m, "vma use count: %d, high_memory = %pK, 0x%pK\n",
atomic_read(&dev->vma_count),
high_memory, (u64)virt_to_phys(high_memory));
high_memory, (void *)virt_to_phys(high_memory));

list_for_each_entry(pt, &dev->vmalist, head) {
vma = pt->vma;
if (!vma)
continue;
seq_printf(m,
"\n%5d 0x%08lx-0x%08lx %c%c%c%c%c%c 0x%08lx000",
pt->pid, vma->vm_start, vma->vm_end,
"\n%5d 0x%pK-0x%pK %c%c%c%c%c%c 0x%08lx000",
pt->pid,
(void *)vma->vm_start, (void *)vma->vm_end,
vma->vm_flags & VM_READ ? 'r' : '-',
vma->vm_flags & VM_WRITE ? 'w' : '-',
vma->vm_flags & VM_EXEC ? 'x' : '-',
Expand Down

0 comments on commit 4205dc4

Please sign in to comment.