Fix: lttng-ust 2.13 should not try to use notifiers from 2.12 or prior probes
authorMathieu Desnoyers <mathieu.desnoyers@efficios.com>
Thu, 17 Dec 2020 19:36:54 +0000 (14:36 -0500)
committerMathieu Desnoyers <mathieu.desnoyers@efficios.com>
Thu, 17 Dec 2020 19:50:20 +0000 (14:50 -0500)
commit4296085ed28955001e74ac2c0cf6817ab9ecdb5f
treebf0ec00ea27ae335cc434c191b0d4b66f6b11641
parent8406222c45d29b23064d688e33be84894a51baac
Fix: lttng-ust 2.13 should not try to use notifiers from 2.12 or prior probes

Probe providers built against lttng-ust 2.12 or prior do not implement
the event notifier callback, and accessing desc->u.ext.event_notifier_callback
accesses beyond the size of struct lttng_event_desc.

Therefore, skip those older probe providers from the list of providers
considered for event notifications, and print an error when this
situation is encountered.

Currently, the error reporting of lttng-ust is performed through ERR(),
which is only observable on the console of the application when run with
LTTNG_UST_DEBUG=1.

Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
Reviewed-by: Francis Deslauriers <francis.deslauriers@efficios.com>
Change-Id: Ia8a9bae1a471ae5d30ff0364b28e1cd3a8b4e396
liblttng-ust/lttng-events.c
This page took 0.025194 seconds and 4 git commands to generate.