Merge tag 'trace-v4.17' of git://git.kernel.org/pub/scm/linux/kernel/git/rostedt...
[muen/linux.git] / security / security.c
index d2a84cda7e8d4de1d650a5da1d899a5f5caf0960..7bc2fde023a797e7a941622a0a6d45c11fdb8b6b 100644 (file)
@@ -30,6 +30,8 @@
 #include <linux/string.h>
 #include <net/flow.h>
 
+#include <trace/events/initcall.h>
+
 #define MAX_LSM_EVM_XATTR      2
 
 /* Maximum number of letters for an LSM name string */
@@ -45,10 +47,14 @@ static __initdata char chosen_lsm[SECURITY_NAME_MAX + 1] =
 
 static void __init do_security_initcalls(void)
 {
+       int ret;
        initcall_t *call;
        call = __security_initcall_start;
+       trace_initcall_level("security");
        while (call < __security_initcall_end) {
-               (*call) ();
+               trace_initcall_start((*call));
+               ret = (*call) ();
+               trace_initcall_finish((*call), ret);
                call++;
        }
 }