lkml.org 
[lkml]   [2011]   [Mar]   [4]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    /
    Date
    From
    SubjectRe: [RFC] Proposal for ptrace improvements
    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.

    Oleg.



    \
     
     \ /
      Last update: 2011-03-06 12:19    [W:4.028 / U:9.384 seconds]
    ©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site