# \[PATCH v5 10/10\] perf probe: Support SDT markers having reference counter (semaphore)

- From: Srikar Dronamraju \<hidden\>
- Date: 2018-07-02 14:45:49 
- List: linux-arm-kernel
- Page: https://ratatoskr.run/linux-arm-kernel/2018/07/5322099
- Thread: https://ratatoskr.run/linux-doc/2018/06/5318768/t.md

```text
* Ravi Bangoria [ref] [2018-06-28 10:52:09]:

> 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
> 
> Signed-off-by: Ravi Bangoria <redacted>
> Acked-by: Masami Hiramatsu <mhiramat@kernel.org>
> 

Looks good to me.

Acked-by: Srikar Dronamraju <redacted>
```
