]> git.ipfire.org Git - thirdparty/haproxy.git/commit
MINOIR: mux-pt/trace: Register a new trace source with its events
authorChristopher Faulet <cfaulet@haproxy.com>
Thu, 8 Apr 2021 14:45:11 +0000 (16:45 +0200)
committerChristopher Faulet <cfaulet@haproxy.com>
Fri, 9 Apr 2021 15:46:58 +0000 (17:46 +0200)
commitc0ae097b95ab4b4961790e57069a374a1cdbef4a
tree47b54d9d19e04929310bd4336daf80c13923f196
parent86512dd152587ccde44349a496076e35ad20d608
MINOIR: mux-pt/trace: Register a new trace source with its events

As for the other muxes, traces are now supported in the pt mux. All parts of
the multiplexer is covered by these traces. Events are splitted by
categories (connection, stream, rx and tx).

In traces, the first argument is always a connection. So it is easy to get
the mux context (conn->ctx). The second argument is always a conn-stream and
mau be NUUL. The third one is a buffer and it may also be NULL. Depending on
the context it is the request or the response. In all cases it is owned by a
channel. Finally, the fourth argument is an integer value. Its meaning
depends on the calling context.
src/mux_pt.c