Fix: Java application context: pass application context argument to callbacks
authorMathieu Desnoyers <mathieu.desnoyers@efficios.com>
Tue, 11 May 2021 18:59:49 +0000 (14:59 -0400)
committerMathieu Desnoyers <mathieu.desnoyers@efficios.com>
Tue, 11 May 2021 20:06:32 +0000 (16:06 -0400)
commita5d437c5f61a1b089e3ea76e4d124683b3aa456e
treea36fd13aebe4966f43b952c4a99ad7f51ef2d438
parent239128ca4ff4270a87d03f7098ebb6bf48b6aec7
Fix: Java application context: pass application context argument to callbacks

The callbacks require the complete application context field names to
compare against the tables received from the TLS area.

We also need to free memory allocated by for the context event field and
context name in a destroy callback.

Therefore, allocate a data structure for each application context, and
use that data structure as private data. This allows callback to reach
the context name, and a destroy callback to free the allocated memory.

Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
Change-Id: Ia34fe00f5945fb58ef991f9d40dec36ac9ab322c
src/common/ust-context-provider.h
src/lib/lttng-ust-java-agent/jni/common/lttng_ust_context.c
src/lib/lttng-ust/context-provider-internal.h
src/lib/lttng-ust/events.h
src/lib/lttng-ust/lttng-context-provider.c
src/lib/lttng-ust/lttng-context.c
src/lib/lttng-ust/lttng-events.c
This page took 0.025989 seconds and 4 git commands to generate.