diff options
author | Kim Phillips <kim.phillips@arm.com> | 2016-11-30 10:23:33 -0500 |
---|---|---|
committer | Arnaldo Carvalho de Melo <acme@redhat.com> | 2016-12-01 11:03:18 -0500 |
commit | 859afa6ca9321346800bac0ee478c9a99c4babaf (patch) | |
tree | 8f79388414a7577328069db4614f3370b1f5ec8f /tools/perf/util/annotate.c | |
parent | 46690a8051e4b5901a49080443a17a270e0bd8a2 (diff) |
perf annotate: Use arch->objdump.comment_char in dec__parse()
Presume neglected in commit 786c1b5 "perf annotate: Start supporting
cross arch annotation". This doesn't fix a bug since none of the
affected arches support parsing dec/inc instructions yet.
Signed-off-by: Kim Phillips <kim.phillips@arm.com>
Cc: Alexander Shishkin <alexander.shishkin@linux.intel.com>
Cc: Chris Ryder <chris.ryder@arm.com>
Cc: Mark Rutland <mark.rutland@arm.com>
Cc: Pawel Moll <pawel.moll@arm.com>
Cc: Peter Zijlstra <peterz@infradead.org>
Cc: Will Deacon <will.deacon@arm.com>
Link: http://lkml.kernel.org/r/20161130092333.1cca5dd2c77e1790d61c1e9c@arm.com
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
Diffstat (limited to 'tools/perf/util/annotate.c')
-rw-r--r-- | tools/perf/util/annotate.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/perf/util/annotate.c b/tools/perf/util/annotate.c index 3e34ee0fde28..191599eca807 100644 --- a/tools/perf/util/annotate.c +++ b/tools/perf/util/annotate.c | |||
@@ -408,7 +408,7 @@ static int dec__parse(struct arch *arch __maybe_unused, struct ins_operands *ops | |||
408 | if (ops->target.raw == NULL) | 408 | if (ops->target.raw == NULL) |
409 | return -1; | 409 | return -1; |
410 | 410 | ||
411 | comment = strchr(s, '#'); | 411 | comment = strchr(s, arch->objdump.comment_char); |
412 | if (comment == NULL) | 412 | if (comment == NULL) |
413 | return 0; | 413 | return 0; |
414 | 414 | ||