Re: [PATCH 2/2] perf symbols: Stop using vmlinux files with no symbols

From: Masami Hiramatsu
Date: Sun Dec 12 2010 - 11:02:51 EST


(2010/12/13 0:16), Arnaldo Carvalho de Melo wrote:
> From: Franck Bui-Huu <fbuihuu@xxxxxxxxx>
>
> Fail if the kernel image contains no symbol, allowing using other images
> in the vmlinux search path that may have a usable symtab.
>
> Cc: 2nddept-manager@xxxxxxxxxxxxxxxxx
> Cc: Francis Moreau <francis.moro@xxxxxxxxx>
> Cc: Franck Bui-Huu <vagabon.xyz@xxxxxxxxx>
> Cc: Masami Hiramatsu <masami.hiramatsu.pt@xxxxxxxxxxx>
> LPU-Reference: <m3d3p9ydx9.fsf_-_@xxxxxxxxx>
> Signed-off-by: Franck Bui-Huu <fbuihuu@xxxxxxxxx>
> Signed-off-by: Arnaldo Carvalho de Melo <acme@xxxxxxxxxx>

Looks good for me:)

Acked-by: Masami Hiramatsu <masami.hiramatsu.pt@xxxxxxxxxxx>

> ---
> tools/perf/util/probe-event.c | 2 +-
> 1 files changed, 1 insertions(+), 1 deletions(-)
>
> diff --git a/tools/perf/util/probe-event.c b/tools/perf/util/probe-event.c
> index b71acd6..61191c6 100644
> --- a/tools/perf/util/probe-event.c
> +++ b/tools/perf/util/probe-event.c
> @@ -135,7 +135,7 @@ const char *kernel_get_module_path(const char *module)
> if (dso__load_vmlinux(dso, map, vmlinux_name, NULL) <= 0)
> return NULL;
> } else {
> - if (dso__load_vmlinux_path(dso, map, NULL) < 0) {
> + if (dso__load_vmlinux_path(dso, map, NULL) <= 0) {
> pr_debug("Failed to load kernel map.\n");
> return NULL;
> }


--
Masami HIRAMATSU
2nd Dept. Linux Technology Center
Hitachi, Ltd., Systems Development Laboratory
E-mail: masami.hiramatsu.pt@xxxxxxxxxxx
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/