From: Xinghai Yu <yuxing...@cn.fujitsu.com>

Signed-off-by: Xinghai Yu <yuxing...@cn.fujitsu.com>
---
 src/qemu/qemu_driver.c | 10 ++++++++++
 1 file changed, 10 insertions(+)

diff --git a/src/qemu/qemu_driver.c b/src/qemu/qemu_driver.c
index 9aad2dc..6c5299f 100644
--- a/src/qemu/qemu_driver.c
+++ b/src/qemu/qemu_driver.c
@@ -96,6 +96,10 @@
 #include "viraccessapicheckqemu.h"
 #include "storage/storage_driver.h"
 
+#ifdef WITH_FTRACE_PROBES
+# include "ftrace.h"
+#endif
+
 #define VIR_FROM_THIS VIR_FROM_QEMU
 
 #define QEMU_NB_MEM_PARAM  3
@@ -843,6 +847,12 @@ qemuStateInitialize(bool privileged,
     virObjectUnref(conn);
 
     virNWFilterRegisterCallbackDriver(&qemuCallbackDriver);
+
+#ifdef WITH_FTRACE_PROBES
+    if(!trace_backend_init())
+        goto error;
+#endif
+
     return 0;
 
 error:
-- 
1.8.3.1

--
libvir-list mailing list
libvir-list@redhat.com
https://www.redhat.com/mailman/listinfo/libvir-list

Reply via email to