perf report: Fix build-test error for make_minimal_O target
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.
Signed-off-by Jin Yao <[email protected]>
--- tools/perf/util/symbol-minimal.c | 7 +++++++ 1 file changed, 7 insertions(+)
tools/perf/util/symbol-minimal.c +7 -0
@@ -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
Arnaldo Carvalho de Melo
maintainerEm Sat, Mar 25, 2017 at 04:23:41PM +0800, Jin Yao escreveu:
Quoted 1 line
make -C
tools/perfbuild-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()insymbol-minimal.cto fix it.Signed-off-by Jin Yao <[email protected]>--- tools/perf/util/symbol-minimal.c | 7 +++++++ 1 file changed, 7 insertions(+)tools/perf/util/symbol-minimal.c +7
-0@@ -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