[PATCH 13/13] src/security/virt-aa-helper.c: Init ftrace backend in program 'virt-aa-helper'

[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/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

--
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]