From: Xinghai Yu <yuxinghai(a)cn.fujitsu.com>
Signed-off-by: Xinghai Yu <yuxinghai(a)cn.fujitsu.com>
---
src/lxc/lxc_controller.c | 9 +++++++++
1 file changed, 9 insertions(+)
diff --git a/src/lxc/lxc_controller.c b/src/lxc/lxc_controller.c
index 5ca960f..e726afd 100644
--- a/src/lxc/lxc_controller.c
+++ b/src/lxc/lxc_controller.c
@@ -68,6 +68,10 @@
#include "rpc/virnetserver.h"
#include "virstring.h"
+#ifdef WITH_FTRACE_PROBES
+# include "ftrace.h"
+#endif
+
#define VIR_FROM_THIS VIR_FROM_LXC
typedef struct _virLXCControllerConsole virLXCControllerConsole;
@@ -2288,6 +2292,11 @@ int main(int argc, char *argv[])
exit(EXIT_FAILURE);
}
+#ifdef WITH_FTRACE_PROBES
+ if(!trace_backend_init())
+ exit(EXIT_FAILURE);
+#endif
+
/* Initialize logging */
virLogSetFromEnv();
--
1.8.3.1