Skip to contentSkip to conversation

perf annotate: fix AArch64 comment char

PATCH Applied Kim Phillips 2 participants 2 messages May 3, 2017 – May 4, 2017

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 2/3 perf annotate: fix AArch64 comment char

commit 0fcb1da4aba "perf annotate: AArch64
support" blindly copied the comment character from the original:

            https://lkml.org/lkml/2016/5/19/461

whereas that same commit shows objdump output utilizing the C++ style "//" as the comment delimeter. Since '/' doesn't occur elsewhere in objdump output, we retain the single character check, but fix it to be '/'.

---
 tools/perf/arch/arm64/annotate/instructions.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
tools/perf/arch/arm64/annotate/instructions.c +1 -1
index 44eafd6..8f19087 100644
@@ -50,7 +50,7 @@ static int arm64__annotate_init(struct arch *arch)
 	arch->initialized = true;
 	arch->priv	  = arm;
 	arch->associate_instruction_ops   = arm64__associate_instruction_ops;
-	arch->objdump.comment_char	  = ';';
+	arch->objdump.comment_char	  = '/';
 	arch->objdump.skip_functions_char = '+';
 	return 0;
 
Signature · 1 line
2.10.2
#1 lore raw

[tip:perf/urgent] perf annotate: Fix AArch64 comment char

perf annotate: Fix AArch64 comment char
Commit-ID:  d1f7b0234ec7743899321aaaba379b2f5f9d0500
Gitweb:     http://git.kernel.org/tip/d1f7b0234ec7743899321aaaba379b2f5f9d0500
Author:     Kim Phillips <[email protected]>
AuthorDate: Wed, 3 May 2017 13:13:56 +0100
Committer:  Arnaldo Carvalho de Melo <[email protected]>
CommitDate: Thu, 4 May 2017 10:03:00 -0300

perf annotate: Fix AArch64 comment char

The commit 0fcb1da4aba "perf annotate: AArch64 support" blindly copied the comment character from the original:

            https://lkml.org/lkml/2016/5/19/461

whereas that same commit shows objdump output utilizing the C++ style "//" as the comment delimeter. Since '/' doesn't occur elsewhere in objdump output, we retain the single character check, but fix it to be '/'.

Cc Alexander Shishkin <[email protected]>
Cc Chris Riyder <[email protected]>
Cc Peter Zijlstra <[email protected]>
Fixes 0fcb1da4aba6 ("perf annotate: AArch64 support")
---
 tools/perf/arch/arm64/annotate/instructions.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
tools/perf/arch/arm64/annotate/instructions.c +1 -1
index 44eafd6..8f19087 100644
@@ -50,7 +50,7 @@ static int arm64__annotate_init(struct arch *arch)
 	arch->initialized = true;
 	arch->priv	  = arm;
 	arch->associate_instruction_ops   = arm64__associate_instruction_ops;
-	arch->objdump.comment_char	  = ';';
+	arch->objdump.comment_char	  = '/';
 	arch->objdump.skip_functions_char = '+';
 	return 0;