diff options
author | Len Brown <len.brown@intel.com> | 2006-06-29 19:57:46 -0400 |
---|---|---|
committer | Len Brown <len.brown@intel.com> | 2006-06-29 19:57:46 -0400 |
commit | d120cfb544ed6161b9d32fb6c4648c471807ee6b (patch) | |
tree | 7757ad0198d8df76ff5c60f939a687687c41da00 /fs/proc/task_mmu.c | |
parent | 9dce0e950dbfab4148f35ac6f297d8638cdc63c4 (diff) | |
parent | bf7e8511088963078484132636839b59e25cf14f (diff) |
merge linus into release branch
Conflicts:
drivers/acpi/acpi_memhotplug.c
Diffstat (limited to 'fs/proc/task_mmu.c')
-rw-r--r-- | fs/proc/task_mmu.c | 30 |
1 files changed, 18 insertions, 12 deletions
diff --git a/fs/proc/task_mmu.c b/fs/proc/task_mmu.c index 0137ec4c1368..0a163a4f7764 100644 --- a/fs/proc/task_mmu.c +++ b/fs/proc/task_mmu.c | |||
@@ -122,6 +122,11 @@ struct mem_size_stats | |||
122 | unsigned long private_dirty; | 122 | unsigned long private_dirty; |
123 | }; | 123 | }; |
124 | 124 | ||
125 | __attribute__((weak)) const char *arch_vma_name(struct vm_area_struct *vma) | ||
126 | { | ||
127 | return NULL; | ||
128 | } | ||
129 | |||
125 | static int show_map_internal(struct seq_file *m, void *v, struct mem_size_stats *mss) | 130 | static int show_map_internal(struct seq_file *m, void *v, struct mem_size_stats *mss) |
126 | { | 131 | { |
127 | struct proc_maps_private *priv = m->private; | 132 | struct proc_maps_private *priv = m->private; |
@@ -158,22 +163,23 @@ static int show_map_internal(struct seq_file *m, void *v, struct mem_size_stats | |||
158 | pad_len_spaces(m, len); | 163 | pad_len_spaces(m, len); |
159 | seq_path(m, file->f_vfsmnt, file->f_dentry, "\n"); | 164 | seq_path(m, file->f_vfsmnt, file->f_dentry, "\n"); |
160 | } else { | 165 | } else { |
161 | if (mm) { | 166 | const char *name = arch_vma_name(vma); |
162 | if (vma->vm_start <= mm->start_brk && | 167 | if (!name) { |
168 | if (mm) { | ||
169 | if (vma->vm_start <= mm->start_brk && | ||
163 | vma->vm_end >= mm->brk) { | 170 | vma->vm_end >= mm->brk) { |
164 | pad_len_spaces(m, len); | 171 | name = "[heap]"; |
165 | seq_puts(m, "[heap]"); | 172 | } else if (vma->vm_start <= mm->start_stack && |
166 | } else { | 173 | vma->vm_end >= mm->start_stack) { |
167 | if (vma->vm_start <= mm->start_stack && | 174 | name = "[stack]"; |
168 | vma->vm_end >= mm->start_stack) { | ||
169 | |||
170 | pad_len_spaces(m, len); | ||
171 | seq_puts(m, "[stack]"); | ||
172 | } | 175 | } |
176 | } else { | ||
177 | name = "[vdso]"; | ||
173 | } | 178 | } |
174 | } else { | 179 | } |
180 | if (name) { | ||
175 | pad_len_spaces(m, len); | 181 | pad_len_spaces(m, len); |
176 | seq_puts(m, "[vdso]"); | 182 | seq_puts(m, name); |
177 | } | 183 | } |
178 | } | 184 | } |
179 | seq_putc(m, '\n'); | 185 | seq_putc(m, '\n'); |