diff options
author | David Ahern <[email protected]> | 2015-03-30 14:35:57 -0600 |
---|---|---|
committer | Arnaldo Carvalho de Melo <[email protected]> | 2015-03-31 17:52:30 -0300 |
commit | 5aa0b030e8d29d6719c144818814b519cfcb105c (patch) | |
tree | 5558b3d391b99c78f2fe3003499815883a7536ba /tools/perf/scripts/python | |
parent | 73dbcd6537f0ef6bf98d84f8fd7f8ab9994c6cd8 (diff) |
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 <[email protected]>
Acked-by: Don Zickus <[email protected]>
Acked-by: Jiri Olsa <[email protected]>
Cc: Joe Mario <[email protected]>
Link: http://lkml.kernel.org/r/[email protected]
Signed-off-by: Arnaldo Carvalho de Melo <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python')
0 files changed, 0 insertions, 0 deletions