From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S932780AbdC1WTN (ORCPT ); Tue, 28 Mar 2017 18:19:13 -0400 Received: from mail.kernel.org ([198.145.29.136]:39110 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S932157AbdC1WRe (ORCPT ); Tue, 28 Mar 2017 18:17:34 -0400 Message-Id: <20170328221729.164667918@goodmis.org> User-Agent: quilt/0.63-1 Date: Tue, 28 Mar 2017 18:16:47 -0400 From: Steven Rostedt To: linux-kernel@vger.kernel.org Cc: Ingo Molnar , Andrew Morton Subject: [for-next][PATCH 2/7] ftrace: Move ftrace_init() to right after memory initialization References: <20170328221645.326712684@goodmis.org> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-15 Content-Disposition: inline; filename=0002-ftrace-Move-ftrace_init-to-right-after-memory-initia.patch Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: "Steven Rostedt (VMware)" Initialize the ftrace records immediately after memory initialization, as that is all that is required for the records to be created. This will allow for future work to get function tracing started earlier in the boot process. Signed-off-by: Steven Rostedt (VMware) --- init/main.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/init/main.c b/init/main.c index 81a49e8d54cc..c0137b916aa1 100644 --- a/init/main.c +++ b/init/main.c @@ -545,6 +545,8 @@ asmlinkage __visible void __init start_kernel(void) trap_init(); mm_init(); + ftrace_init(); + /* trace_printk can be enabled here */ early_trace_init(); @@ -673,8 +675,6 @@ asmlinkage __visible void __init start_kernel(void) efi_free_boot_services(); } - ftrace_init(); - /* Do the rest non-__init'ed, we're now alive */ rest_init(); } -- 2.10.2