APR_HOOK_PROBES_ENABLED is pretty nice, the rub is that, esp in httpd, we have lots of modules which go ahead and include apr_hooks.h on their own, making the setup of "universal" probe hooks difficult.
Anyone have ideas on how to make it easier, either in APR directly or in httpd? Maybe making some kind of httpd_hooks.h file that includes some local local_hooks_probes.h file (depending on some config-time setting) assuming APR_HOOK_PROBES_ENABLED is set (ie: --enable-hook-probes sets APR_HOOK_PROBES_ENABLED and httpd_hooks.h is basically: #ifdef APR_HOOK_PROBES_ENABLED #include "local_hooks_probes.h" #endif #include "apr_hooks.h" and no httpd files include apr_hooks.h directly... That seems a very rough way to do it... :/
