[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20110304163029.GB24871@redhat.com>
Date: Fri, 4 Mar 2011 17:30:29 +0100
From: Oleg Nesterov <oleg@...hat.com>
To: Denys Vlasenko <vda.linux@...glemail.com>
Cc: Tejun Heo <tj@...nel.org>, Roland McGrath <roland@...hat.com>,
jan.kratochvil@...hat.com, linux-kernel@...r.kernel.org,
torvalds@...ux-foundation.org, akpm@...ux-foundation.org
Subject: Re: [RFC] Proposal for ptrace improvements
On 03/04, Oleg Nesterov wrote:
>
> On 03/04, Denys Vlasenko wrote:
> >
> > # time sh -c './strace -e trace=exit_group ls -lR /usr/share >/dev/null'
> > exit_group(0) = ?
> > real 0m47.695s
> > user 0m3.965s
> > sys 0m29.047s
> >
> > strace with PTRACE_GETSIGINFO:
> >
> > # time sh -c './strace -e trace=exit_group ls -lR /usr/share >/dev/null'
> > exit_group(0) = ?
> > real 0m51.958s
> > user 0m3.899s
> > sys 0m31.584s
>
> I am wondering how much ptrace_check_attach()->wait_task_inactive()
> contributes... it can sleep.
>
> And note that many ptrace requests do not really need this,
> PTRACE_GETSIGINFO in particular.
could you replace the extra PTRACE_GETSIGINFO by invalid request?
Oleg.
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists