lkml.org 
[lkml]   [2015]   [Mar]   [31]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    /
    Date
    From
    SubjectRe: [PATCH v2 1/2] perf tool: Refactor comm/tgid lookup
    On Mon, Mar 30, 2015 at 02:35:57PM -0600, David Ahern wrote:
    > Rather than parsing /proc/pid/status file one line at a time, read
    > it into a buffer in one shot and search for all strings in one pass.
    >
    > tgid conversion also simplified -- removing the isspace walk. As
    > noted by Arnaldo those are not needed for atoi == strtol calls.
    >
    > Signed-off-by: David Ahern <dsahern@gmail.com>
    > Cc: Don Zickus <dzickus@redhat.com>
    > Cc: Joe Mario <jmario@redhat.com>
    > Cc: Jiri Olsa <jolsa@redhat.com>

    Acked-by: Jiri Olsa <jolsa@kernel.org>

    thanks,
    jirka


    \
     
     \ /
      Last update: 2015-03-31 17:01    [W:5.256 / U:0.048 seconds]
    ©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site