On Tue, 2009-01-06 at 19:18 -0600, Mike Abbott wrote:
I don't see dtrace-dovecot.h included in it.
dtrace-dovecot.h is generated from dtrace-dovecot.d by the command
"dtrace -h -s $(DTRACE_SOURCE)" in src/lib/Makefile.am. See the
section "BUILDING CODE CONTAINING USDT PROBES" in http://developer.apple.com/documentation/Darwin/Reference/ManPages/man1/dtra... . Sorry I should have mentioned that up front.Couldn't the DOVECOT_OD_LOOKUP_START() macro be changed
Unfortunately that's out of my control: those macros are generated.
But I suppose they could be replaced with an intermediate level of
macros that are undefined when not wanted, and combine the enabled- check and the probe-trigger when wanted, just to remove the in-line
ifdefs.
PostgreSQL is doing something like this: http://archives.postgresql.org/pgsql-patches/2008-02/msg00159.php
For example:
PG_TRACE2(lwlock__startwait, lockid, mode);
Would that be possible with Dovecot too?