Skip to contentSkip to conversation

perf report: Fix build-test error for make_minimal_O target

PATCH In review Jin Yao 2 participants 2 messages Mar 25, 2017 perf events

lore
Share & tools
lore

Jin Yao

author
#0 lore raw

PATCH 1/1 perf report: Fix build-test error for make_minimal_O target

make -C tools/perf build-test

The error is "undefined reference to dso__demangle_sym".

This patch adds the dso__dmangle_sym() in symbol-minimal.c to fix it.

---
 tools/perf/util/symbol-minimal.c | 7 +++++++
 1 file changed, 7 insertions(+)
tools/perf/util/symbol-minimal.c +7 -0
index 11cdde9..870ef0f 100644
@@ -373,3 +373,10 @@ int kcore_copy(const char *from_dir __maybe_unused,
 void symbol__elf_init(void)
 {
 }
+
+char *dso__demangle_sym(struct dso *dso __maybe_unused,
+			int kmodule __maybe_unused,
+			char *elf_name __maybe_unused)
+{
+	return NULL;
+}
Signature · 1 line
2.7.4
#1 lore raw

Em Sat, Mar 25, 2017 at 04:23:41PM +0800, Jin Yao escreveu:

Quoted 1 line

make -C tools/perf build-test

Thanks, I'll fold this with the patch where the problem happened,

- Arnaldo

Quoted 26 lines

The error is "undefined reference to dso__demangle_sym".

This patch adds the dso__dmangle_sym() in symbol-minimal.c to fix it.

---
 tools/perf/util/symbol-minimal.c | 7 +++++++
 1 file changed, 7 insertions(+)
tools/perf/util/symbol-minimal.c +7 -0
index 11cdde9..870ef0f 100644
@@ -373,3 +373,10 @@ int kcore_copy(const char *from_dir __maybe_unused,
 void symbol__elf_init(void)
 {
 }
+
+char *dso__demangle_sym(struct dso *dso __maybe_unused,
+			int kmodule __maybe_unused,
+			char *elf_name __maybe_unused)
+{
+	return NULL;
+}
Signature · 1 line
2.7.4