Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1757076AbbEVOfJ (ORCPT ); Fri, 22 May 2015 10:35:09 -0400 Received: from mx1.redhat.com ([209.132.183.28]:38494 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1755450AbbEVOfH (ORCPT ); Fri, 22 May 2015 10:35:07 -0400 Date: Fri, 22 May 2015 09:35:02 -0500 From: Josh Poimboeuf To: Minfei Huang Cc: sjenning@redhat.com, jkosina@suse.cz, vojtech@suse.cz, live-patching@vger.kernel.org, linux-kernel@vger.kernel.org, mhuang@redhat.com Subject: Re: [Patch v2] livepatch: annotate klp_init() with __init Message-ID: <20150522143502.GC20555@treble.redhat.com> References: <1432304789-6324-1-git-send-email-mnfhuang@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: <1432304789-6324-1-git-send-email-mnfhuang@gmail.com> User-Agent: Mutt/1.5.23.1-rc1 (2014-03-12) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1002 Lines: 31 On Fri, May 22, 2015 at 10:26:29PM +0800, Minfei Huang wrote: > 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 > --- > v1: > - modify the subject to make it more concise Thanks! Acked-by: Josh Poimboeuf -- 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/