Record event as soon as one filter evaluates to TRUE
authorFrancis Deslauriers <francis.deslauriers@efficios.com>
Fri, 20 Mar 2020 20:23:17 +0000 (16:23 -0400)
committerMathieu Desnoyers <mathieu.desnoyers@efficios.com>
Fri, 20 Mar 2020 20:54:15 +0000 (16:54 -0400)
commit8904bcfacc9114c2260bb1f24d8c9db8df5ebe9e
tree0428bd4705cef5c1828b831161b143ff959d7491
parentf6dd81c59af60aa89776917bd4970283b4d5e4ec
Record event as soon as one filter evaluates to TRUE

This is a tiny optimization but it can reduce tracing cost in cases
where multiple filters are attached to a probe.

Since we want to trace an event if any of its filter expressions
evaluates to TRUE, there is no need to keep on evaluating expressions
once one is found to be TRUE.

Signed-off-by: Francis Deslauriers <francis.deslauriers@efficios.com>
Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
Change-Id: I6b5b7697869d3e25dc24d38dc39c34ae1d49dcc9
probes/lttng-tracepoint-event-impl.h
This page took 0.025249 seconds and 4 git commands to generate.