perf annotate: Refactor the code to parse disassemble lines with {l,r}trim()
authorTaeung Song <treeze.taeung@gmail.com>
Sat, 8 Apr 2017 00:52:24 +0000 (09:52 +0900)
committerArnaldo Carvalho de Melo <acme@redhat.com>
Tue, 11 Apr 2017 19:22:22 +0000 (16:22 -0300)
commit4597cf0664d2fad785509dedfed22f8fe8951ebb
tree1298004463bccfbbdab9172bf1fbcd34c5272e0d
parentc9d1c93421e3b3c7051b193c9cf648a3bc55cb3e
perf annotate: Refactor the code to parse disassemble lines with {l,r}trim()

When parsing disassemble lines, use ltrim() and rtrim() to strip them,
not using just while loop and isspace().

Signed-off-by: Taeung Song <treeze.taeung@gmail.com>
Cc: Jiri Olsa <jolsa@kernel.org>
Cc: Namhyung Kim <namhyung@kernel.org>
Link: http://lkml.kernel.org/r/1491612748-1605-2-git-send-email-treeze.taeung@gmail.com
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
tools/perf/util/annotate.c