Skip to contentSkip to conversation

Tracing patches

GIT PULL Applied Stefan Hajnoczi 2 participants 3 messages Nov 29, 2016

lore
Share & tools
lore
#0 lore raw

The following changes since commit 00227fefd2059464cd2f59aed29944874c630e2f:

Update version for v2.8.0-rc1 release (2016-11-22 22:29:08 +0000)

are available in the git repository at:

git://github.com/stefanha/qemu.git tags/tracing-pull-request

for you to fetch changes up to c79ed23df5090294a81fd66f67632e4535fb3164:

configure: fix LTTng UST tracing backend detection (2016-11-29 09:36:12 +0000)

----------------------------------------------------------------

----------------------------------------------------------------

Francis Deslauriers (1):
configure: fix LTTng UST tracing backend detection

 configure | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
Signature · 1 line
2.9.3
#1 lore raw

[Qemu-devel] [PULL 1/1] configure: fix LTTng UST tracing backend detection

From: Francis Deslauriers <[email protected]>

The detection program needs to be linked with -ldl to build succesfully with recent versions of LTTng-UST.

We also need to add -ldl to the libs required to build the LTTng-UST backend (lttng_ust_libs).

Message-id: 1480348337-24271-1-git-send-email-francis.deslauriers@efficios.com

---
 configure | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
configure +2 -2
index 5e66828..89df5c4 100755
@@ -4305,11 +4305,11 @@ if have_backend "ust"; then
 #include <lttng/tracepoint.h>
 int main(void) { return 0; }
 EOF
-  if compile_prog "" "" ; then
+  if compile_prog "" "-Wl,--no-as-needed -ldl" ; then
     if $pkg_config lttng-ust --exists; then
       lttng_ust_libs=$($pkg_config --libs lttng-ust)
     else
-      lttng_ust_libs="-llttng-ust"
+      lttng_ust_libs="-llttng-ust -ldl"
     fi
     if $pkg_config liburcu-bp --exists; then
       urcu_bp_libs=$($pkg_config --libs liburcu-bp)
Signature · 1 line
2.9.3
#2 lore raw
In reply to Stefan Hajnoczi
Quoted 14 lines · Stefan Hajnoczi

The following changes since commit 00227fefd2059464cd2f59aed29944874c630e2f:

Update version for v2.8.0-rc1 release (2016-11-22 22:29:08 +0000)

are available in the git repository at:

git://github.com/stefanha/qemu.git tags/tracing-pull-request

for you to fetch changes up to c79ed23df5090294a81fd66f67632e4535fb3164:

configure: fix LTTng UST tracing backend detection (2016-11-29 09:36:12 +0000)

----------------------------------------------------------------

Quoted 12 lines

----------------------------------------------------------------

Francis Deslauriers (1):
configure: fix LTTng UST tracing backend detection

 configure | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
Signature · 1 line
2.9.3

Thanks, applied to my staging tree:
https://github.com/stefanha/qemu/commits/staging

Stefan