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:04 +0000 (08:35 -0400)
commit8a5c7efa50f9dce0360611b16323462c77f07321
treef2f900593d44eac37e9d61127ed0e17052899d87
parentd1a0fad8df4d6777fabb4eddee71aa0dea3bbddd
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.024901 seconds and 4 git commands to generate.