On 20 September 2016 at 12:59, Alex Shi alex.shi@linaro.org wrote:
Hi Amit, Please review this conflict solution.
Looks good to me. Thanks.
Regards, Amit Pundir
Regards alex
commit 5f87c475f82a75e10bc6e249b7471349f1ef1636 Merge: d3a1d03 d2d693d Author: Alex Shi alex.shi@linaro.org Date: Tue Sep 20 15:18:54 2016 +0800
Merge branch 'linux-linaro-lsk-v4.4' into linux-linaro-lsk-v4.4-android Conflicts: in fs/proc/task_mmu.c: looks like vma_get_anon_name() want have a name for anonymous vma when there is no name used in vma. commit: 586278d78bf The name show is after any other names, so it maybe covered. but anyway, it just a show here.
diff --cc Documentation/filesystems/proc.txt index 1c42519,6716413..fea4777 --- a/Documentation/filesystems/proc.txt +++ b/Documentation/filesystems/proc.txt @@@ -379,11 -378,8 +379,10 @@@ is not associated with a file
[heap] = the heap of the program [stack] = the stack of the main process
- [stack:1001] = the stack of the thread with tid 1001 [vdso] = the "virtual dynamic shared object", the kernel system call handler
[anon:<name>] = an anonymous mapping that has been
named by userspace
or if empty, the mapping is anonymous.
diff --cc fs/proc/task_mmu.c index 3e97da3,d598b9c..200e3b2 --- a/fs/proc/task_mmu.c +++ b/fs/proc/task_mmu.c @@@ -387,27 -341,8 +391,14 @@@ show_map_vma(struct seq_file *m, struc goto done; }
tid = pid_of_stack(priv, vma, is_pid);
if (tid != 0) {
/*
* Thread stack in /proc/PID/task/TID/maps or
* the main process stack.
*/
if (!is_pid || (vma->vm_start <= mm->start_stack &&
vma->vm_end >= mm->start_stack)) {
name = "[stack]";
} else {
/* Thread stack in /proc/PID/maps */
seq_pad(m, ' ');
seq_printf(m, "[stack:%d]", tid);
}
if (is_stack(priv, vma, is_pid))
++ if (is_stack(priv, vma, is_pid)) {
name = "[stack]";
goto done;
}
if (vma_get_anon_name(vma)) {
seq_pad(m, ' ');
seq_print_vma_name(m, vma);
} }
done: