From e7f8f551e8f51ababdb6b65a8a3760c619f8ee84 Mon Sep 17 00:00:00 2001 From: bmax Date: Thu, 23 Nov 2023 07:52:20 +0800 Subject: [PATCH] patch: add more boot log --- kernel/patch/patch.c | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/kernel/patch/patch.c b/kernel/patch/patch.c index e40193cf..7d6646d1 100644 --- a/kernel/patch/patch.c +++ b/kernel/patch/patch.c @@ -49,20 +49,32 @@ static void before_kernel_init(hook_fargs4_t *args, void *udata) log_boot("entering kernel init ...\n"); if ((err = linux_sybmol_len_init())) goto out; + log_boot("linux_sybmol_len_init done: %d\n", err); if ((err = linux_libs_symbol_init())) goto out; + log_boot("linux_libs_symbol_init done: %d\n", err); if ((err = linux_misc_symbol_init())) goto out; + log_boot("linux_misc_symbol_init done: %d\n", err); if ((err = syscall_init())) goto out; + log_boot("syscall_init done: %d\n", err); if ((err = resolve_struct())) goto out; + log_boot("resolve_struct done: %d\n", err); if ((err = bypass_kcfi())) goto out; + log_boot("bypass_kcfi done: %d\n", err); if ((err = task_observer())) goto out; + log_boot("task_observer done: %d\n", err); if ((err = selinux_hook_install())) goto out; + log_boot("selinux_hook_install done: %d\n", err); if ((err = module_init())) goto out; + log_boot("module_init done: %d\n", err); if ((err = supercall_install())) goto out; + log_boot("supercall_install done: %d\n", err); #ifdef ANDROID if ((err = kpuserd_init())) goto out; + log_boot("kpuserd_init done: %d\n", err); if ((err = su_compat_init())) goto out; + log_boot("su_compat_init done: %d\n", err); #endif out: