• Masami Hiramatsu's avatar
    perf probe: Support multiple probes on different binaries · 7afb3fab
    Masami Hiramatsu authored
    Support multiple probes on different binaries with just
    one command.
    
    In the result, this example sets up the probes on icmp_rcv in
    kernel, on main and set_target in perf, and on pcspkr_event
    in pcspker.ko driver.
      -----
      # perf probe -a icmp_rcv -x ./perf -a main -a set_target \
       -m /lib/modules/4.0.0-rc5+/kernel/drivers/input/misc/pcspkr.ko \
       -a pcspkr_event
      Added new event:
        probe:icmp_rcv       (on icmp_rcv)
    
      You can now use it in all perf tools, such as:
    
              perf record -e probe:icmp_rcv -aR sleep 1
    
      Added new event:
        probe_perf:main      (on main in /home/mhiramat/ksrc/linux-3/tools/perf/perf)
    
      You can now use it in all perf tools, such as:
    
              perf record -e probe_perf:main -aR sleep 1
    
      Added new event:
        probe_perf:set_target (on set_target in /home/mhiramat/ksrc/linux-3/tools/perf/perf)
    
      You can now use it in all perf tools, such as:
    
              perf record -e probe_perf:set_target -aR sleep 1
    
      Added new event:
        probe:pcspkr_event   (on pcspkr_event in pcspkr)
    
      You can now use it in all perf tools, such as:
    
              perf record -e probe:pcspkr_event -aR sleep 1
      -----
    Reported-by: default avatarArnaldo Carvalho de Melo <acme@infradead.org>
    Signed-off-by: default avatarMasami Hiramatsu <masami.hiramatsu.pt@hitachi.com>
    Tested-by: default avatarArnaldo Carvalho de Melo <acme@redhat.com>
    Cc: David Ahern <dsahern@gmail.com>
    Cc: Jiri Olsa <jolsa@redhat.com>
    Cc: Namhyung Kim <namhyung@kernel.org>
    Cc: Peter Zijlstra <peterz@infradead.org>
    Link: http://lkml.kernel.org/r/20150401102539.17137.46454.stgit@localhost.localdomainSigned-off-by: default avatarArnaldo Carvalho de Melo <acme@redhat.com>
    7afb3fab
probe-event.c 64.3 KB