lkml.org 
[lkml]   [2016]   [Jul]   [3]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    /
    Date
    From
    SubjectRe: [PATCH perf/core v13 02/15] perf probe: Show all cached probes
    On Fri, 1 Jul 2016 10:51:04 -0300
    Arnaldo Carvalho de Melo <acme@kernel.org> wrote:

    > Em Fri, Jul 01, 2016 at 05:03:26PM +0900, Masami Hiramatsu escreveu:
    > > From: Masami Hiramatsu <masami.hiramatsu.pt@hitachi.com>
    > >
    > > 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@kernel.org>

    \
     
     \ /
      Last update: 2016-07-04 04:41    [W:2.328 / U:0.552 seconds]
    ©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site