[PATCH 09/13] src/locking/lock_daemon.c: Init ftrace backend in program 'virtlockd'

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

diff --git a/src/locking/lock_daemon.c b/src/locking/lock_daemon.c
index e047751..2de5331 100644
--- a/src/locking/lock_daemon.c
+++ b/src/locking/lock_daemon.c
@@ -52,6 +52,10 @@
 
 #include "configmake.h"
 
+#ifdef WITH_FTRACE_PROBES
+# include "ftrace.h"
+#endif
+
 #define VIR_FROM_THIS VIR_FROM_LOCKING
 
 #define VIR_LOCK_DAEMON_NUM_LOCKSPACES 3
@@ -1223,6 +1227,11 @@ int main(int argc, char **argv) {
         exit(EXIT_FAILURE);
     }
 
+#ifdef WITH_FTRACE_PROBES
+    if(!trace_backend_init())
+        exit(EXIT_FAILURE);
+#endif
+
     while (1) {
         int optidx = 0;
         int c;
-- 
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]