Enable probes to work with Mac OS X Leopard and other OSes that will
Peter Eisentraut <peter_e@gmx.net>
Enable probes to work with Mac OS X Leopard and other OSes that will support DTrace in the future. Switch from using DTRACE_PROBEn macros to the dynamically generated macros. Use "dtrace -h" to create a header file that contains the dynamically generated macros to be used in the source code instead of the DTRACE_PROBEn macros. A dummy header file is generated for builds without DTrace support. Author: Robert Lor <Robert.Lor@sun.com>
Files
| Path | Change | +/− |
|---|---|---|
| src/backend/access/transam/xact.c | modified | +5 −4 |
| src/backend/Makefile | modified | +13 −2 |
| src/backend/storage/lmgr/lock.c | modified | +4 −3 |
| src/backend/storage/lmgr/lwlock.c | modified | +8 −7 |
| src/backend/utils/Gen_dummy_probes.sed | added | +16 −0 |
| src/backend/utils/Makefile | modified | +13 −3 |
| src/include/c.h | modified | +1 −2 |
| src/include/Makefile | modified | +2 −2 |
| src/include/pg_trace.h | modified | +2 −39 |