From: Xinghai Yu <yuxinghai(a)cn.fujitsu.com>
Signed-off-by: Xinghai Yu <yuxinghai(a)cn.fujitsu.com>
---
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