On 20.03.21 01:29, Craig Ringer wrote:
There is already support for that. See the documentation at the end of
this page:
https://www.postgresql.org/docs/devel/dynamic-trace.html#DEFINING-TRACE-POINTS
<https://www.postgresql.org/docs/devel/dynamic-trace.html#DEFINING-TRACE-POINTS>
Pretty sure it won't work right now.
To use systemtap semaphores (the _ENABLED macros) you need to run dtrace
-g to generate a probes.o then link that into postgres.
I don't think we do that. I'll double check soon.
We do that. (It's -G.)