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:39 +0000 (16:06 -0400)
commit577f6dfc5dc2cbd4d6d82b453dabca36c4b78d1d
treea36fd13aebe4966f43b952c4a99ad7f51ef2d438
parentd6f956db3c0e55643fa547b6bebb82089a6615a7
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.026046 seconds and 4 git commands to generate.