aboutsummaryrefslogtreecommitdiffstats
path: root/tools/perf/util/annotate.c
diff options
context:
space:
mode:
authorTaeung Song <[email protected]>2017-04-07 14:24:21 +0000
committerArnaldo Carvalho de Melo <[email protected]>2017-04-11 18:23:26 +0000
commitbdd97ca63faa374c98314d53c0bcaedb473c5a33 (patch)
tree29eaa7a0943e806f6a8d7fb7435cf650a0057809 /tools/perf/util/annotate.c
parentperf pmu: Refactor wordwrap() with ltrim() (diff)
downloadkernel-bdd97ca63faa374c98314d53c0bcaedb473c5a33.tar.gz
kernel-bdd97ca63faa374c98314d53c0bcaedb473c5a33.zip
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/util/annotate.c')
0 files changed, 0 insertions, 0 deletions