Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1757351AbbEVODN (ORCPT ); Fri, 22 May 2015 10:03:13 -0400 Received: from mail-qc0-f196.google.com ([209.85.216.196]:36055 "EHLO mail-qc0-f196.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1757210AbbEVODI (ORCPT ); Fri, 22 May 2015 10:03:08 -0400 Date: Fri, 22 May 2015 22:03:02 +0800 From: Minfei Huang To: Josh Poimboeuf Cc: Minfei Huang , sjenning@redhat.com, jkosina@suse.cz, vojtech@suse.cz, live-patching@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH] livepatch: Let compiler put module initialized function to section ".init.text" Message-ID: <20150522140302.GA6104@huangminfeis-MacBook-Pro.local> References: <1432275032-20678-1-git-send-email-mhuang@redhat.com> <20150522132528.GA20555@treble.redhat.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20150522132528.GA20555@treble.redhat.com> User-Agent: Mutt/1.5.23 (2014-03-12) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1223 Lines: 40 On 05/22/15 at 08:25P, Josh Poimboeuf wrote: > On Fri, May 22, 2015 at 02:10:32PM +0800, Minfei Huang wrote: > > From: Minfei Huang > > > > Usually we prefer to let compiler put the module initialized function to > > section ".init.text". Thus this text in memory will be freed in future. > > > > Once we add the "__init" preceding function name, we can use following > > command to find it in specfied section. > > > > $ objdump -t -j .init.text built-in.o > > > > built-in.o: file format elf64-x86-64 > > > > SYMBOL TABLE: > > 0000000000000000 l d .init.text 0000000000000000 .init.text > > 0000000000000000 l F .init.text 000000000000004e klp_init > > > > Signed-off-by: Minfei Huang > > The patch looks good but can you make the subject more concise? Maybe > something like: > > livepatch: annotate klp_init() with __init Sure. Will modify the subject. Thanks Minfei > > Thanks. > > -- > Josh -- 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/