[PATCH 08/13] src/qemu/qemu_driver.c: Init ftrace backend in qemu driver so that qemu driver can support ftrace

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



From: Xinghai Yu <yuxinghai@xxxxxxxxxxxxxx>

Signed-off-by: Xinghai Yu <yuxinghai@xxxxxxxxxxxxxx>
---
 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@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/libvir-list




[Index of Archives]     [Virt Tools]     [Libvirt Users]     [Lib OS Info]     [Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [KDE Users]     [Fedora Tools]