From: David Ahern Date: Mon, 30 Mar 2015 20:35:57 +0000 (-0600) Subject: perf tools: Refactor comm/tgid lookup X-Git-Tag: omap-for-v4.2/o2_dc~146^2~48^2~3 X-Git-Url: https://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=5aa0b030e8d29d6719c144818814b519cfcb105c;p=pandora-kernel.git perf tools: Refactor comm/tgid lookup 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 Acked-by: Don Zickus Acked-by: Jiri Olsa Cc: Joe Mario Link: http://lkml.kernel.org/r/1427747758-18510-1-git-send-email-dsahern@gmail.com Signed-off-by: Arnaldo Carvalho de Melo --- Reading git-diff-tree failed