[PATCH 10/13] src/util/iohelper.c: Init ftrace backend in program 'libvirt_iohelper'

[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/util/iohelper.c | 9 +++++++++
 1 file changed, 9 insertions(+)

diff --git a/src/util/iohelper.c b/src/util/iohelper.c
index 9610063..3b33c07 100644
--- a/src/util/iohelper.c
+++ b/src/util/iohelper.c
@@ -42,6 +42,10 @@
 #include "virrandom.h"
 #include "virstring.h"
 
+#ifdef WITH_FTRACE_PROBES
+# include "ftrace.h"
+#endif
+
 #define VIR_FROM_THIS VIR_FROM_STORAGE
 
 static int
@@ -243,6 +247,11 @@ main(int argc, char **argv)
         exit(EXIT_FAILURE);
     }
 
+#ifdef WITH_FTRACE_PROBES
+    if(!trace_backend_init())
+        exit(EXIT_FAILURE);
+#endif
+
     path = argv[1];
 
     if (argc > 1 && STREQ(argv[1], "--help"))
-- 
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]