Re: [PATCH perf/core v13 02/15] perf probe: Show all cached probes

From: Masami Hiramatsu
Date: Sun Jul 03 2016 - 22:03:39 EST


On Fri, 1 Jul 2016 10:51:04 -0300
Arnaldo Carvalho de Melo <acme@xxxxxxxxxx> wrote:

> Em Fri, Jul 01, 2016 at 05:03:26PM +0900, Masami Hiramatsu escreveu:
> > From: Masami Hiramatsu <masami.hiramatsu.pt@xxxxxxxxxxx>
> >
> > perf probe --list shows all cached probes when --cache
> > is given. Each caches are shown with on which binary that
> > probed. e.g.
> > -----
> > # perf probe --cache vfs_read \$params
>
> This one works:
>
> # perf probe --cache vfs_read \$params
> Added new event:
> probe:vfs_read (on vfs_read with $params)
>
> You can now use it in all perf tools, such as:
>
> perf record -e probe:vfs_read -aR sleep 1
>
> #
>
> > # perf probe --cache -x /lib64/libc-2.17.so getaddrinfo \$params
>
> But this one doesn't and provides a funny message:
>
> [root@jouet perf]# perf probe --cache -x /lib64/libc-2.23.so getaddrinfo \$params
> Failed to write event: Invalid argument
> Please upgrade your kernel to at least 3.14 to have access to feature $params
> Error: Failed to add events.

Ah, OK, $params requires debuginfo. It this error message is not correct.
I'll send a fix soon.

Thanks!!


--
Masami Hiramatsu <mhiramat@xxxxxxxxxx>