moonchen opened a new pull request, #14104: URL: https://github.com/apache/trafficserver/pull/14104
Adds begin and end USDT probes at the three places where the event loop calls a handler: `event_dispatch_*` in `EThread::process_event`, `vio_dispatch_*` where a read or write VIO signals its continuation, and `plugin_dispatch_*` in `INKContInternal::handle_event`. The handler argument is the address of the handler's trampoline, whose symbol names the handler member function, or the plugin's own event function. A new `ContinuationHandler::address()` exposes that address, and the tracing guide documents the arguments. An event thread that does not return to its event loop is held by the handler it is running, and naming that handler on a release build currently needs reads of process memory at build-specific offsets, because `handler_name` exists only in DEBUG builds. The probes sit in the out-of-line dispatch functions rather than in `Continuation::handleEvent`, so the code generated at the many inline `handleEvent` call sites does not change, and a plugin callback is named by the plugin's own function rather than by the generic plugin continuation handler. -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected]
