Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.kernel > #1609041 > unrolled thread
| Started by | Jin Yao <yao.jin@linux.intel.com> |
|---|---|
| First post | 2017-03-25 01:30 +0100 |
| Last post | 2017-03-25 02:00 +0100 |
| Articles | 2 — 2 participants |
Back to article view | Back to linux.kernel
[PATCH] perf report: Fix build-test error for make_minimal_O target Jin Yao <yao.jin@linux.intel.com> - 2017-03-25 01:30 +0100
Re: [PATCH] perf report: Fix build-test error for make_minimal_O target Arnaldo Carvalho de Melo <acme@kernel.org> - 2017-03-25 02:00 +0100
| From | Jin Yao <yao.jin@linux.intel.com> |
|---|---|
| Date | 2017-03-25 01:30 +0100 |
| Subject | [PATCH] perf report: Fix build-test error for make_minimal_O target |
| Message-ID | <toHKF-16C-5@gated-at.bofh.it> |
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
[toc] | [next] | [standalone]
| From | Arnaldo Carvalho de Melo <acme@kernel.org> |
|---|---|
| Date | 2017-03-25 02:00 +0100 |
| Subject | Re: [PATCH] perf report: Fix build-test error for make_minimal_O target |
| Message-ID | <toIdH-1mI-3@gated-at.bofh.it> |
| In reply to | #1609041 |
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
[toc] | [prev] | [standalone]
Back to top | Article view | linux.kernel
csiph-web