Received: by 2002:a5b:505:0:0:0:0:0 with SMTP id o5csp550384ybp; Fri, 11 Oct 2019 00:02:33 -0700 (PDT) X-Google-Smtp-Source: APXvYqzPP2Ml8rlUpJ++97+KwtR41J8RCpSKTBxK7/38WfJ+2vB13uY5lpioDImhi/vAohIs/9WV X-Received: by 2002:aa7:dd0f:: with SMTP id i15mr12503814edv.0.1570777353333; Fri, 11 Oct 2019 00:02:33 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1570777353; cv=none; d=google.com; s=arc-20160816; b=Fp1w49Wtr/+DTah0PUm68NlBMlu9qW/Woe0aVXNbyRlMeFS+zM0xLcWPxxiULzY2Zz DDCymh4JEpV7dKAZpGzLgcj1Cy7I4SriYuUiX6d+O4KUhTTJ8RE/VxkgBAE+CGERHDcj V40lsSFqJ5pI7q5jpykLj9uCUoS7LWTQjf5+HBoR4szUCCAO0i5sVCLGqpQ+uGVgndsf HkO7iCxF4tuAbIgF5+TbRx9bu6cZNW/qLdG/sgy9U6x9fa0XUAs19VWDFv73m7JCjqud rRrUox8QThfQQg4TB1MyfboUHUkWqddOt4Ad1N/Uta5b0X6g5xodWdq21IhOj/tv6hik ldXA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature; bh=BjeZot4fEwwx6gNj+xVZ6oahHmQIIs1To0+8L06kqK0=; b=hdsxVqasYKyEfj8HGyDTH3lfvOrf2B8afqiaRPhNfigf3iIRqUfZv3IKe+yvDK+prS u/yxS1gXXFVPnTgjbz57VurW4gQHWhKbjirzzsoNv3BviiUu00JEUzf8lEZjtt6EgNdY 7HSPhYKHs0pki0DVqaplTsAZIRdJkHRbmUQvBJCerr/+hPFAAtznezNSvfm1z93AttcX Fk7peRgzILZvkPxEZ8Aj8quEfTlfKRhuhU+iValrXIqaf+UFqrVDHL564ZyLL8NObzuL 6DDi9hAwRxXAOT2VdkeZG7W/T1UAcTKGwoyHmtkEcceuMmg/P9AAkugQ2EPg1ukZml1d FEbg== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@infradead.org header.s=merlin.20170209 header.b=KsTf+DZx; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id qq14si4736778ejb.437.2019.10.11.00.02.09; Fri, 11 Oct 2019 00:02:33 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=fail header.i=@infradead.org header.s=merlin.20170209 header.b=KsTf+DZx; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727402AbfJKHBo (ORCPT + 99 others); Fri, 11 Oct 2019 03:01:44 -0400 Received: from merlin.infradead.org ([205.233.59.134]:40226 "EHLO merlin.infradead.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726679AbfJKHBn (ORCPT ); Fri, 11 Oct 2019 03:01:43 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=merlin.20170209; h=In-Reply-To:Content-Type:MIME-Version: References:Message-ID:Subject:Cc:To:From:Date:Sender:Reply-To: Content-Transfer-Encoding:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Id: List-Help:List-Unsubscribe:List-Subscribe:List-Post:List-Owner:List-Archive; bh=BjeZot4fEwwx6gNj+xVZ6oahHmQIIs1To0+8L06kqK0=; b=KsTf+DZxFxL1gpCNRT2SyZmSl sBQrx1xu+ruwGBTHODo5HvWK3I9SbFBZutGNCsfO3N1vzT3G3fo5S/eg/6IoooI6lyqU10DusR11Q Uu3ZzuqP6jCiE3g9Nq0OW0miViyxIU+Qn89/mRYaAQbknKzRzhI11Rb1Nw51QQGexN96lV0STVwlo Rcv8WU2NhZHUSbWbOuvrrURDicJE/WBwmi6yiP+jOhrK4F9OifaoaBusw8eXx7Mq0a3pKzaMHFv0p mMj1Pc6aplKtZF6dQTtDFlnLCwISVocMjIDtJfdV4Jv63ufNGw/is5+NQJytbRCGiDIlCYDyuTIGG TdvOco/Iw==; Received: from j217100.upc-j.chello.nl ([24.132.217.100] helo=noisy.programming.kicks-ass.net) by merlin.infradead.org with esmtpsa (Exim 4.92.3 #3 (Red Hat Linux)) id 1iIovZ-00049f-Il; Fri, 11 Oct 2019 07:01:29 +0000 Received: from hirez.programming.kicks-ass.net (hirez.programming.kicks-ass.net [192.168.1.225]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by noisy.programming.kicks-ass.net (Postfix) with ESMTPS id 0828F3008C1; Fri, 11 Oct 2019 09:00:33 +0200 (CEST) Received: by hirez.programming.kicks-ass.net (Postfix, from userid 1000) id 86E0720C04742; Fri, 11 Oct 2019 09:01:26 +0200 (CEST) Date: Fri, 11 Oct 2019 09:01:26 +0200 From: Peter Zijlstra To: Daniel Bristot de Oliveira Cc: Steven Rostedt , linux-kernel@vger.kernel.org, x86@kernel.org, Nadav Amit , Andy Lutomirski , Dave Hansen , Song Liu , Masami Hiramatsu Subject: Re: [PATCH 3/3] x86/ftrace: Use text_poke() Message-ID: <20191011070126.GU2328@hirez.programming.kicks-ass.net> References: <20190827180622.159326993@infradead.org> <20190827181147.166658077@infradead.org> <20191002182106.GC4643@worktop.programming.kicks-ass.net> <20191003181045.7fb1a5b3@gandalf.local.home> <7b4196a4-b6e1-7e55-c3e1-a02d97c262c7@redhat.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <7b4196a4-b6e1-7e55-c3e1-a02d97c262c7@redhat.com> User-Agent: Mutt/1.10.1 (2018-07-13) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, Oct 04, 2019 at 10:10:47AM +0200, Daniel Bristot de Oliveira wrote: > Currently, ftrace_rec entries are ordered inside the group of functions, but > "groups of function" are not ordered. So, the current int3 handler does a (*): We can insert a sort() of the vector right before doing text_poke_bp_batch() of course...