]> git.baikalelectronics.ru Git - kernel.git/commit
perf probe: Support SDT markers having reference counter (semaphore)
authorRavi Bangoria <ravi.bangoria@linux.ibm.com>
Mon, 20 Aug 2018 04:42:50 +0000 (10:12 +0530)
committerSteven Rostedt (VMware) <rostedt@goodmis.org>
Mon, 24 Sep 2018 08:44:54 +0000 (04:44 -0400)
commit62bcd6e9640aab897b70a9711e73a433a2aa0173
tree8aaaa9e1c859d86f0809454659dc5eaa68c13ebf
parent34114eea48b8444cda1862d99e457cfa24b362e9
perf probe: Support SDT markers having reference counter (semaphore)

With this, perf buildid-cache will save SDT markers with reference
counter in probe cache. Perf probe will be able to probe markers
having reference counter. Ex,

  # readelf -n /tmp/tick | grep -A1 loop2
    Name: loop2
    ... Semaphore: 0x0000000010020036

  # ./perf buildid-cache --add /tmp/tick
  # ./perf probe sdt_tick:loop2
  # ./perf stat -e sdt_tick:loop2 /tmp/tick
    hi: 0
    hi: 1
    hi: 2
    ^C
     Performance counter stats for '/tmp/tick':
                 3      sdt_tick:loop2
       2.561851452 seconds time elapsed

Link: http://lkml.kernel.org/r/20180820044250.11659-5-ravi.bangoria@linux.ibm.com
Acked-by: Arnaldo Carvalho de Melo <acme@redhat.com>
Acked-by: Masami Hiramatsu <mhiramat@kernel.org>
Acked-by: Srikar Dronamraju <srikar@linux.vnet.ibm.com>
Reviewed-by: Song Liu <songliubraving@fb.com>
Tested-by: Song Liu <songliubraving@fb.com>
Signed-off-by: Ravi Bangoria <ravi.bangoria@linux.ibm.com>
Signed-off-by: Steven Rostedt (VMware) <rostedt@goodmis.org>
tools/perf/util/probe-event.c
tools/perf/util/probe-event.h
tools/perf/util/probe-file.c
tools/perf/util/probe-file.h
tools/perf/util/symbol-elf.c
tools/perf/util/symbol.h