Re: [PATCH 20/24] task_diag: Only add VMAs for thread_group leader

2015-07-15 Thread Oleg Nesterov
On 07/14, David Ahern wrote: > > On 7/14/15 1:47 PM, Oleg Nesterov wrote: >>> >>> if (show_flags & TASK_DIAG_SHOW_VMA) { >>> + /* if the request is to dump all threads of all processes >>> +* only show VMAs for group leader. >>> +*/ >>> + if

Re: [PATCH 20/24] task_diag: Only add VMAs for thread_group leader

2015-07-15 Thread Oleg Nesterov
On 07/14, David Ahern wrote: On 7/14/15 1:47 PM, Oleg Nesterov wrote: if (show_flags TASK_DIAG_SHOW_VMA) { + /* if the request is to dump all threads of all processes +* only show VMAs for group leader. +*/ + if (req-dump_strategy ==

Re: [PATCH 20/24] task_diag: Only add VMAs for thread_group leader

2015-07-14 Thread David Ahern
On 7/14/15 1:47 PM, Oleg Nesterov wrote: On 07/06, Andrey Vagin wrote: From: David Ahern threads of a process share the same VMAs, so when dumping all threads for all processes only push vma data for group leader. ... @@ -492,6 +493,13 @@ static int task_diag_fill(struct task_struct

Re: [PATCH 20/24] task_diag: Only add VMAs for thread_group leader

2015-07-14 Thread Oleg Nesterov
On 07/06, Andrey Vagin wrote: > > From: David Ahern > > threads of a process share the same VMAs, so when dumping all threads > for all processes only push vma data for group leader. ... > @@ -492,6 +493,13 @@ static int task_diag_fill(struct task_struct *tsk, > struct sk_buff *skb, > }

Re: [PATCH 20/24] task_diag: Only add VMAs for thread_group leader

2015-07-14 Thread David Ahern
On 7/14/15 1:47 PM, Oleg Nesterov wrote: On 07/06, Andrey Vagin wrote: From: David Ahern dsah...@gmail.com threads of a process share the same VMAs, so when dumping all threads for all processes only push vma data for group leader. ... @@ -492,6 +493,13 @@ static int task_diag_fill(struct

Re: [PATCH 20/24] task_diag: Only add VMAs for thread_group leader

2015-07-14 Thread Oleg Nesterov
On 07/06, Andrey Vagin wrote: From: David Ahern dsah...@gmail.com threads of a process share the same VMAs, so when dumping all threads for all processes only push vma data for group leader. ... @@ -492,6 +493,13 @@ static int task_diag_fill(struct task_struct *tsk, struct sk_buff *skb,

[PATCH 20/24] task_diag: Only add VMAs for thread_group leader

2015-07-06 Thread Andrey Vagin
From: David Ahern threads of a process share the same VMAs, so when dumping all threads for all processes only push vma data for group leader. Signed-off-by: David Ahern Signed-off-by: Andrey Vagin --- kernel/taskdiag.c | 17 + 1 file changed, 13 insertions(+), 4 deletions(-)

[PATCH 20/24] task_diag: Only add VMAs for thread_group leader

2015-07-06 Thread Andrey Vagin
From: David Ahern dsah...@gmail.com threads of a process share the same VMAs, so when dumping all threads for all processes only push vma data for group leader. Signed-off-by: David Ahern dsah...@gmail.com Signed-off-by: Andrey Vagin ava...@openvz.org --- kernel/taskdiag.c | 17