From: Xinghai Yu <yuxinghai(a)cn.fujitsu.com>
Signed-off-by: Xinghai Yu <yuxinghai(a)cn.fujitsu.com>
---
src/security/virt-aa-helper.c | 9 +++++++++
1 file changed, 9 insertions(+)
diff --git a/src/security/virt-aa-helper.c b/src/security/virt-aa-helper.c
index e7f1359..fa8894f 100644
--- a/src/security/virt-aa-helper.c
+++ b/src/security/virt-aa-helper.c
@@ -56,6 +56,10 @@
#include "virrandom.h"
#include "virstring.h"
+#ifdef WITH_FTRACE_PROBES
+# include "ftrace.h"
+#endif
+
#define VIR_FROM_THIS VIR_FROM_SECURITY
static char *progname;
@@ -1215,6 +1219,11 @@ main(int argc, char **argv)
exit(EXIT_FAILURE);
}
+#ifdef WITH_FTRACE_PROBES
+ if(!trace_backend_init())
+ exit(EXIT_FAILURE);
+#endif
+
/* clear the environment */
environ = NULL;
if (setenv("PATH", "/sbin:/usr/sbin", 1) != 0) {
--
1.8.3.1