From 74dd69a9ffc078654c3323f1796a678cf279dc38 Mon Sep 17 00:00:00 2001 From: xianzhu Date: Mon, 28 Jan 2019 14:28:20 +0800 Subject: [PATCH] init: do_mounts: add boot marker add boot marker in filesystem mounting process for start-up time measurement. Change-Id: I92be2bf7698bc8258f2524eaa68dc9e3169b621c Signed-off-by: xianzhu --- init/do_mounts.c | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/init/do_mounts.c b/init/do_mounts.c index 27826694ea26..ca5de99f311c 100644 --- a/init/do_mounts.c +++ b/init/do_mounts.c @@ -32,6 +32,7 @@ #include #include #include +#include #include "do_mounts.h" @@ -363,7 +364,13 @@ static void __init get_fs_names(char *page) static int __init do_mount_root(char *name, char *fs, int flags, void *data) { struct super_block *s; - int err = sys_mount(name, "/root", fs, flags, data); + int err; + + place_marker("M - DRIVER F/S Init"); + + err = sys_mount((char __user *)name, (char __user *)"/root", + (char __user *)fs, (unsigned long)flags, + (void __user *)data); if (err) return err; @@ -375,6 +382,9 @@ static int __init do_mount_root(char *name, char *fs, int flags, void *data) s->s_type->name, sb_rdonly(s) ? " readonly" : "", MAJOR(ROOT_DEV), MINOR(ROOT_DEV)); + + place_marker("M - DRIVER F/S Ready"); + return 0; }