Fix: typo in macro name DECLACE->DEFINE
A message that is not in the archive (sent off-list or not yet received): [email protected]
Good catch, incorrect fix. Only the C file needs the "DEFINE_URCU_TLS_IE". The headers were fine with DECLARE_URCU_TLS.
I spinned my own version of the fix.
Thanks!
Mathieu
Quoted 50 lines · ----- On Oct 20, 2017, at 11:48 PM, Michael Jeanson [email protected] wrote:
Signed-off-by Michael Jeanson <[email protected]>---
liblttng-ust-java-agent/jni/common/lttng_ust_context.c | 2 +- liblttng-ust-java-agent/jni/common/lttng_ust_context.h | 2 +- libringbuffer/frontend_internal.h | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-)liblttng-ust-java-agent/jni/common/lttng_ust_context.c +1
-1@@ -57,7 +57,7 @@ struct lttng_ust_jni_ctx_entry { } __attribute__((packed));/* TLS passing context info from JNI to callbacks. */ -DECLARE_URCU_TLS_IE(struct lttng_ust_jni_tls, lttng_ust_context_info_tls); +DEFINE_URCU_TLS_IE(struct lttng_ust_jni_tls, lttng_ust_context_info_tls);static const char *get_ctx_string_at_offset (int32_t offset) {liblttng-ust-java-agent/jni/common/lttng_ust_context.h +1
-1@@ -30,6 +30,6 @@ struct lttng_ust_jni_tls {int32_t ctx_strings_len; }; -extern DECLARE_URCU_TLS(struct lttng_ust_jni_tls, lttng_ust_context_info_tls); +extern DEFINE_URCU_TLS(struct lttng_ust_jni_tls, lttng_ust_context_info_tls);#endif /* LIBLTTNG_UST_JAVA_AGENT_JNI_COMMON_LTTNG_UST_CONTEXT_H_ */ libringbuffer/frontend_internal.h +1
-1@@ -331,6 +331,6 @@ extern void lib_ring_buffer_free(structlttng_ust_lib_ring_buffer *buf, struct lttng_ust_shm_handle *handle);/* Keep track of trap nesting inside ring buffer code */ -extern DECLARE_URCU_TLS(unsigned int, lib_ring_buffer_nesting); +extern DEFINE_URCU_TLS(unsigned int, lib_ring_buffer_nesting);#endif /*
_LTTNG_RING_BUFFER_FRONTEND_INTERNAL_H*/ --
2.7.4
Signature · 7 lines
Mathieu Desnoyers EfficiOS Inc. http://www.efficios.com _______________________________________________ lttng-dev mailing list [email protected] https://lists.lttng.org/cgi-bin/mailman/listinfo/lttng-dev