Skip to content

Commit

Permalink
patch: add more boot log
Browse files Browse the repository at this point in the history
  • Loading branch information
bmax committed Nov 22, 2023
1 parent 6ebbab2 commit e7f8f55
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions kernel/patch/patch.c
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down

0 comments on commit e7f8f55

Please sign in to comment.