Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1755225AbcKOPUX (ORCPT ); Tue, 15 Nov 2016 10:20:23 -0500 Received: from smtprelay0128.hostedemail.com ([216.40.44.128]:36794 "EHLO smtprelay.hostedemail.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1752186AbcKOPUV (ORCPT ); Tue, 15 Nov 2016 10:20:21 -0500 X-Session-Marker: 726F737465647440676F6F646D69732E6F7267 X-Spam-Summary: 2,0,0,,d41d8cd98f00b204,rostedt@goodmis.org,:::::::::::,RULES_HIT:41:196:355:379:541:599:800:960:968:973:982:988:989:1260:1277:1311:1313:1314:1345:1359:1431:1437:1515:1516:1518:1534:1541:1593:1594:1711:1730:1747:1777:1792:2198:2199:2393:2553:2559:2562:2890:3138:3139:3140:3141:3142:3353:3622:3865:3866:3867:3868:3870:3873:3874:4042:4321:4605:5007:6261:7875:7903:10004:10400:10848:10967:11026:11232:11658:11914:12043:12291:12555:12663:12683:12740:12760:12986:13069:13311:13357:13439:14181:14659:14721:21080:21450:21451:30001:30054:30090:30091,0,RBL:none,CacheIP:none,Bayesian:0.5,0.5,0.5,Netcheck:none,DomainCache:0,MSF:not bulk,SPF:fn,MSBL:0,DNSBL:none,Custom_rules:0:0:0,LFtime:4,LUA_SUMMARY:none X-HE-Tag: run42_1f94a94f59904 X-Filterd-Recvd-Size: 2585 Date: Tue, 15 Nov 2016 10:20:15 -0500 From: Steven Rostedt To: Ard Biesheuvel Cc: Stephen Boyd , Andrew Morton , Russell King , "linux-kernel@vger.kernel.org" , "linux-arm-kernel@lists.infradead.org" Subject: Re: [PATCH/RESEND] recordmcount: arm: Implement make_nop Message-ID: <20161115102015.3392420e@gandalf.local.home> In-Reply-To: References: <20161018234200.5804-1-sboyd@codeaurora.org> X-Mailer: Claws Mail 3.14.0 (GTK+ 2.24.31; x86_64-pc-linux-gnu) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1421 Lines: 37 On Tue, 15 Nov 2016 14:19:44 +0000 Ard Biesheuvel wrote: > On 19 October 2016 at 00:42, Stephen Boyd wrote: > > In similar spirit to x86 and arm64 support, add a make_nop_arm() > > to replace calls to mcount with a nop in sections that aren't > > traced. > > > > Cc: Russell King > > Acked-by: Rabin Vincent > > Signed-off-by: Stephen Boyd > > --- > > scripts/recordmcount.c | 65 ++++++++++++++++++++++++++++++++++++++++++++++++++ > > 1 file changed, 65 insertions(+) > > > > diff --git a/scripts/recordmcount.c b/scripts/recordmcount.c > > index 5423a58d1b06..aeb34223167c 100644 > > --- a/scripts/recordmcount.c > > +++ b/scripts/recordmcount.c > > @@ -213,6 +213,59 @@ static int make_nop_x86(void *map, size_t const offset) > > return 0; > > } > > > > +static unsigned char ideal_nop4_arm_le[4] = { 0x00, 0x00, 0xa0, 0xe1 }; /* mov r0, r0 */ > > +static unsigned char ideal_nop4_arm_be[4] = { 0xe1, 0xa0, 0x00, 0x00 }; /* mov r0, r0 */ > > Shouldn't you be taking the difference between BE8 and BE32 into > account here? IIRC, BE8 uses little endian encoding for instructions. > I was just about to push this to linux-next (where I don't rebase). I'm guessing I should hold off then. Luckily, this was the last patch of my tree that I tested, and I can just remove that one. -- Steve