summaryrefslogtreecommitdiff
path: root/tools/perf/util/annotate-arch/annotate-arc.c
diff options
context:
space:
mode:
Diffstat (limited to 'tools/perf/util/annotate-arch/annotate-arc.c')
-rw-r--r--tools/perf/util/annotate-arch/annotate-arc.c10
1 files changed, 10 insertions, 0 deletions
diff --git a/tools/perf/util/annotate-arch/annotate-arc.c b/tools/perf/util/annotate-arch/annotate-arc.c
new file mode 100644
index 000000000000..d7ca08ca5600
--- /dev/null
+++ b/tools/perf/util/annotate-arch/annotate-arc.c
@@ -0,0 +1,10 @@
+// SPDX-License-Identifier: GPL-2.0
+#include <linux/compiler.h>
+#include "../disasm.h"
+
+int arc__annotate_init(struct arch *arch, char *cpuid __maybe_unused)
+{
+ arch->initialized = true;
+ arch->objdump.comment_char = ';';
+ return 0;
+}