Fix: all lttng-ust source files should be tagged _LGPL_SOURCE
authorMathieu Desnoyers <mathieu.desnoyers@efficios.com>
Wed, 25 May 2016 21:15:21 +0000 (17:15 -0400)
committerMathieu Desnoyers <mathieu.desnoyers@efficios.com>
Wed, 25 May 2016 21:24:01 +0000 (17:24 -0400)
Defining tracepoint call sites and probes as _LGPL_SOURCE allows
inlining RCU code into lttng-ust, which improves performance.

Signed-off-by: Jérémie Galarneau <jeremie.galarneau@efficios.com>
Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
liblttng-ust-cyg-profile/lttng-ust-cyg-profile.c
liblttng-ust-dl/lttng-ust-dl.c
liblttng-ust-java-agent/jni/jul/lttng_ust_jul.c
liblttng-ust-java-agent/jni/log4j/lttng_ust_log4j.c
liblttng-ust-java/LTTngUst.c
liblttng-ust-libc-wrapper/lttng-ust-malloc.c
liblttng-ust-libc-wrapper/lttng-ust-pthread.c
liblttng-ust-python-agent/lttng_ust_python.c
liblttng-ust/lttng-ust-statedump.c

index c63b39b04ba033f808fdc0da4c287a86b4ffe5d5..d19f70a6e69b4be07955bb68a6ee8db439048f9c 100644 (file)
@@ -16,8 +16,8 @@
  * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301 USA
  */
 
-#define _LGPL_SOURCE
 #define _GNU_SOURCE
+#define _LGPL_SOURCE
 #include <dlfcn.h>
 #include <sys/types.h>
 #include <stdio.h>
index 8f2faac00630717ee96bf3fa1e23681075e151ca..e457e7a3cbdfa69697c3794465a82a66681a0ec3 100644 (file)
@@ -17,9 +17,8 @@
  * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301 USA
  */
 
-#define _LGPL_SOURCE
 #define _GNU_SOURCE
-
+#define _LGPL_SOURCE
 #include <limits.h>
 #include <stdio.h>
 #include <sys/types.h>
index 562da6ba2a42c97e7e2d03b3983897f52c7b8351..5acff312f9cbcfad8bdf26adad83bf2bd362eb1c 100644 (file)
@@ -17,6 +17,7 @@
  * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
  */
 
+#define _LGPL_SOURCE
 #include "org_lttng_ust_agent_jul_LttngJulApi.h"
 
 #define TRACEPOINT_DEFINE
index 2537922d106d76b81d42d402a56d4d430d714691..72eca1d4a7c71be6fb3744d969d74b6352ee9766 100644 (file)
@@ -17,6 +17,7 @@
  * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
  */
 
+#define _LGPL_SOURCE
 #include "org_lttng_ust_agent_log4j_LttngLog4jApi.h"
 
 #define TRACEPOINT_DEFINE
index 4549fdea8789f1ab73efdc720c8217aa150b6c38..aab0d162bf0f7ea776d2bbe6a2ad4d7f706fef56 100644 (file)
@@ -16,6 +16,7 @@
  * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
  */
 
+#define _LGPL_SOURCE
 #include "org_lttng_ust_LTTngUst.h"
 
 #define TRACEPOINT_DEFINE
index d1ad3cf5b146260cf93548df5bf2a41ae9358057..4b21c971516d54ce3a5eaac80e63e660f0f14f84 100644 (file)
@@ -18,6 +18,7 @@
  */
 
 #define _GNU_SOURCE
+#define _LGPL_SOURCE
 #include <lttng/ust-dlfcn.h>
 #include <sys/types.h>
 #include <stdio.h>
index c6b8ae09955119ef6ac9ad4eeacc6ca7cbaff4e0..a049d33595a6d367416e627461221f1c8ad8c738 100644 (file)
@@ -17,6 +17,7 @@
  */
 
 #define _GNU_SOURCE
+#define _LGPL_SOURCE
 #include <lttng/ust-dlfcn.h>
 #include <helper.h>
 #include <pthread.h>
index be534c62626ca5dc7eeb8beb554c77b4e189ac2b..532fd14ddab02e243c83c29aa8f5fec1cd79741b 100644 (file)
@@ -15,6 +15,7 @@
  * Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301 USA
  */
 
+#define _LGPL_SOURCE
 #define TRACEPOINT_DEFINE
 #define TRACEPOINT_CREATE_PROBES
 #include "lttng_ust_python.h"
index c2926aecdb78eeaffc097cf6fe27d04f9e89330c..bcb168be45948fc242c82db913ed1dfe052975fc 100644 (file)
@@ -17,9 +17,8 @@
  * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301 USA
  */
 
-#define _LGPL_SOURCE
 #define _GNU_SOURCE
-
+#define _LGPL_SOURCE
 #include <link.h>
 #include <limits.h>
 #include <stdio.h>
This page took 0.027739 seconds and 4 git commands to generate.