* Re: [PATCH] perf report: Fix build-test error for make_minimal_O target
2017-03-25 8:23 [PATCH] perf report: Fix build-test error for make_minimal_O target Jin Yao
@ 2017-03-25 0:57 ` Arnaldo Carvalho de Melo
0 siblings, 0 replies; 2+ messages in thread
From: Arnaldo Carvalho de Melo @ 2017-03-25 0:57 UTC (permalink / raw)
To: Jin Yao; +Cc: jolsa, Linux-kernel, ak, kan.liang, milian.wolff, yao.jin
Em Sat, Mar 25, 2017 at 04:23:41PM +0800, Jin Yao escreveu:
> make -C tools/perf build-test
Thanks, I'll fold this with the patch where the problem happened,
- Arnaldo
> 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 <yao.jin@linux.intel.com>
> ---
> tools/perf/util/symbol-minimal.c | 7 +++++++
> 1 file changed, 7 insertions(+)
>
> diff --git a/tools/perf/util/symbol-minimal.c b/tools/perf/util/symbol-minimal.c
> index 11cdde9..870ef0f 100644
> --- a/tools/perf/util/symbol-minimal.c
> +++ b/tools/perf/util/symbol-minimal.c
> @@ -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;
> +}
> --
> 2.7.4
^ permalink raw reply [flat|nested] 2+ messages in thread
* [PATCH] perf report: Fix build-test error for make_minimal_O target
@ 2017-03-25 8:23 Jin Yao
2017-03-25 0:57 ` Arnaldo Carvalho de Melo
0 siblings, 1 reply; 2+ messages in thread
From: Jin Yao @ 2017-03-25 8:23 UTC (permalink / raw)
To: acme, jolsa; +Cc: Linux-kernel, ak, kan.liang, milian.wolff, yao.jin, Jin Yao
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 <yao.jin@linux.intel.com>
---
tools/perf/util/symbol-minimal.c | 7 +++++++
1 file changed, 7 insertions(+)
diff --git a/tools/perf/util/symbol-minimal.c b/tools/perf/util/symbol-minimal.c
index 11cdde9..870ef0f 100644
--- a/tools/perf/util/symbol-minimal.c
+++ b/tools/perf/util/symbol-minimal.c
@@ -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;
+}
--
2.7.4
^ permalink raw reply related [flat|nested] 2+ messages in thread
end of thread, other threads:[~2017-03-25 0:58 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2017-03-25 8:23 [PATCH] perf report: Fix build-test error for make_minimal_O target Jin Yao
2017-03-25 0:57 ` Arnaldo Carvalho de Melo
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.