[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <tip-859afa6ca9321346800bac0ee478c9a99c4babaf@git.kernel.org>
Date: Fri, 2 Dec 2016 02:44:10 -0800
From: tip-bot for Kim Phillips <tipbot@...or.com>
To: linux-tip-commits@...r.kernel.org
Cc: alexander.shishkin@...ux.intel.com, acme@...hat.com, hpa@...or.com,
peterz@...radead.org, chris.ryder@....com, will.deacon@....com,
mark.rutland@....com, kim.phillips@....com, pawel.moll@....com,
linux-kernel@...r.kernel.org, tglx@...utronix.de, mingo@...nel.org
Subject: [tip:perf/core] perf annotate: Use arch->objdump.comment_char in
dec__parse()
Commit-ID: 859afa6ca9321346800bac0ee478c9a99c4babaf
Gitweb: http://git.kernel.org/tip/859afa6ca9321346800bac0ee478c9a99c4babaf
Author: Kim Phillips <kim.phillips@....com>
AuthorDate: Wed, 30 Nov 2016 09:23:33 -0600
Committer: Arnaldo Carvalho de Melo <acme@...hat.com>
CommitDate: Thu, 1 Dec 2016 13:03:18 -0300
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@....com>
Cc: Alexander Shishkin <alexander.shishkin@...ux.intel.com>
Cc: Chris Ryder <chris.ryder@....com>
Cc: Mark Rutland <mark.rutland@....com>
Cc: Pawel Moll <pawel.moll@....com>
Cc: Peter Zijlstra <peterz@...radead.org>
Cc: Will Deacon <will.deacon@....com>
Link: http://lkml.kernel.org/r/20161130092333.1cca5dd2c77e1790d61c1e9c@arm.com
Signed-off-by: Arnaldo Carvalho de Melo <acme@...hat.com>
---
tools/perf/util/annotate.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/tools/perf/util/annotate.c b/tools/perf/util/annotate.c
index 3e34ee0..191599e 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
if (ops->target.raw == NULL)
return -1;
- comment = strchr(s, '#');
+ comment = strchr(s, arch->objdump.comment_char);
if (comment == NULL)
return 0;
Powered by blists - more mailing lists