Introduce sync vs unsync enablers
authorMathieu Desnoyers <mathieu.desnoyers@efficios.com>
Fri, 6 Oct 2023 15:48:01 +0000 (11:48 -0400)
committerMathieu Desnoyers <mathieu.desnoyers@efficios.com>
Sun, 15 Oct 2023 12:35:46 +0000 (08:35 -0400)
commitc70585a3e2369cf109f2ebe76e807977c5bd8828
tree19817a3fd9ec94fc09d00afb34cdbd84d8e96fce
parent4dbeb34bfa909fd7f75ceeca252cf8a9f24b4fa6
Introduce sync vs unsync enablers

Eliminate iteration over unmodified enablers when synchronizing the
enablers vs event state.

The intent is to turn a O(m*n) algorithm (m = number of enablers, n =
number of event probes) into a O(n) when enabling many additional events
when tracing is active.

This change is done both for event enablers and for event notifier
enablers.

Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
Change-Id: Ifdadbafbf899ce5f3c5f8eb22409ac0c4af3139c
src/common/events.h
src/lib/lttng-ust/lttng-events.c
This page took 0.025179 seconds and 4 git commands to generate.