diff options
author | Taeung Song <[email protected]> | 2017-04-07 23:24:21 +0900 |
---|---|---|
committer | Arnaldo Carvalho de Melo <[email protected]> | 2017-04-11 15:23:26 -0300 |
commit | bdd97ca63faa374c98314d53c0bcaedb473c5a33 (patch) | |
tree | 29eaa7a0943e806f6a8d7fb7435cf650a0057809 /tools/perf/builtin-annotate.c | |
parent | aa4beb10a94358bf2474d1fc9c4ccde34660cc9d (diff) |
perf tools: Refactor the code to strip command name with {l,r}trim()
After reading command name from /proc/<pid>/status, use ltrim() and
rtrim() to strip command name, not using just while loop, isspace() and
etc.
Signed-off-by: Taeung Song <[email protected]>
Acked-by: David Ahern <[email protected]>
Cc: Don Zickus <[email protected]>
Cc: Jiri Olsa <[email protected]>
Cc: Masami Hiramatsu <[email protected]>
Cc: Namhyung Kim <[email protected]>
Cc: Peter Zijlstra <[email protected]>
Cc: Wang Nan <[email protected]>
Link: http://lkml.kernel.org/r/[email protected]
Signed-off-by: Arnaldo Carvalho de Melo <[email protected]>
Diffstat (limited to 'tools/perf/builtin-annotate.c')
0 files changed, 0 insertions, 0 deletions