Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752542AbaFFRTp (ORCPT ); Fri, 6 Jun 2014 13:19:45 -0400 Received: from thoth.sbs.de ([192.35.17.2]:52020 "EHLO thoth.sbs.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752497AbaFFRTn (ORCPT ); Fri, 6 Jun 2014 13:19:43 -0400 From: Jan Kiszka To: Thomas Gleixner , Andrew Morton , linux-kernel@vger.kernel.org Cc: Jason Wessel , kgdb-bugreport@lists.sourceforge.net, Andi Kleen , Tom Tromey , Ben Widawsky , Borislav Petkov , Tatiana Al-Chueyr Martins , Rusty Russell Subject: [PATCH v8 06/22] module: Do not inline do_init_module Date: Fri, 6 Jun 2014 19:18:47 +0200 Message-Id: <76b0a984fb41ee5fa7aecaed4e4d94ee760c39ab.1402075139.git.jan.kiszka@siemens.com> X-Mailer: git-send-email 1.8.1.1.298.ge7eed54 In-Reply-To: References: In-Reply-To: References: Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org This provides a reliable breakpoint target, required for automatic symbol loading via the gdb helper command 'lx-symbols'. CC: Rusty Russell Signed-off-by: Jan Kiszka --- kernel/module.c | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/kernel/module.c b/kernel/module.c index 079c461..a5a5734 100644 --- a/kernel/module.c +++ b/kernel/module.c @@ -3009,8 +3009,13 @@ static void do_mod_ctors(struct module *mod) #endif } -/* This is where the real work happens */ -static int do_init_module(struct module *mod) +/* + * This is where the real work happens. + * + * Keep it uninlined to provide a reliable breakpoint target, e.g. for the gdb + * helper command 'lx-symbols'. + */ +static noinline int do_init_module(struct module *mod) { int ret = 0; -- 1.8.1.1.298.ge7eed54 -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/