Received: by 2002:a05:6a10:206:0:0:0:0 with SMTP id 6csp2526155pxj; Sun, 6 Jun 2021 05:17:53 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzgjncIDQ8vYTXOOcZ5pr5TJNi9Dvf7SJ2hNYVuEbZOTpPPYqPpibjgjnZL7GHeid463fRc X-Received: by 2002:a50:8e57:: with SMTP id 23mr15157337edx.354.1622981873375; Sun, 06 Jun 2021 05:17:53 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1622981873; cv=none; d=google.com; s=arc-20160816; b=R5fYDXqECbcllSI3MH+0C1Qp3xEXgO3kuRRWnSR0c2MBaoLaHeYQtfHk96U0CMXbWZ EyHF2rvMpXtPzmaTBs4C2Yrk23oiiuLtXQ2GcWXxt+CjXvYs7JytrtkF7kDxP5gzw92q hQk5z3/ct6hXgg0+hLUa6U1ytaUwKuyYc6GBxbRiL22SsTDhmJGA7jAc7s3GwwJLg5E4 78mmkjYZtaLwXSX4c1T7WFnstUGcLLReF5pUL4rfq9NZOsxFkOblvP8veVy4PGbdD38h efWTU2jFEEJ0V7PPjY0u8pFiWXBxpNqTcT2IriC0MlBj28RQtOUJbyAKM17A6OFa5fQL 2RGg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version:date :message-id:subject:references:in-reply-to:cc:to:from; bh=/ah7v7oMSg3y+BWA0HGh8dnCmYWxYpHQpoQ8s/71LEc=; b=aMckKT4+LlGWC+exm+OlyZKP+FbyjwIGgIMq2DjhhVUyycEUX9VKb+posqzrjLpcys 0ZFs+vMyq35yefafZoFmmlZmWo4Ci37IAZxhcuKBzjzL4Ywe8xlZhol2hFaLcHv1w2+g coZk3lsevWLIDi6yHlnt2cQ7V+wDaJoaqNAJE3ItYc8ztJbzioheigDyu2RAFSGMoHY5 2JTk/O/EspcjL32IdFbfL5UnsBr3EKrJK0Kh9+/Bn56C0SDu0ZjvkNS19m97m0XYwch9 VTgPadcjMzF/tiin0f3A1OiEDZPuqjumGTooI7VP3t/RJVX3ovajjlj8S8eJROocb0kL IrzA== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id i16si10429082ejo.417.2021.06.06.05.17.30; Sun, 06 Jun 2021 05:17:53 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230254AbhFFMOo (ORCPT + 99 others); Sun, 6 Jun 2021 08:14:44 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:48838 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230253AbhFFMOC (ORCPT ); Sun, 6 Jun 2021 08:14:02 -0400 Received: from ozlabs.org (ozlabs.org [IPv6:2401:3900:2:1::2]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 91855C06178B for ; Sun, 6 Jun 2021 05:12:12 -0700 (PDT) Received: by ozlabs.org (Postfix, from userid 1034) id 4Fyb3G4c1Kz9sfG; Sun, 6 Jun 2021 22:12:10 +1000 (AEST) From: Michael Ellerman To: naveen.n.rao@linux.ibm.com, anil.s.keshavamurthy@intel.com, mhiramat@kernel.org, davem@davemloft.net, Benjamin Herrenschmidt , Christophe Leroy , Michael Ellerman , Paul Mackerras Cc: linuxppc-dev@lists.ozlabs.org, clang-built-linux@googlegroups.com, linux-kernel@vger.kernel.org In-Reply-To: <40a43d6df1fdf41ade36e9a46e60a4df774ca9f6.1620896780.git.christophe.leroy@csgroup.eu> References: <40a43d6df1fdf41ade36e9a46e60a4df774ca9f6.1620896780.git.christophe.leroy@csgroup.eu> Subject: Re: [PATCH v2 1/2] kprobes: Allow architectures to override optinsn page allocation Message-Id: <162298132158.2353459.12128294246619463248.b4-ty@ellerman.id.au> Date: Sun, 06 Jun 2021 22:08:41 +1000 MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, 13 May 2021 09:07:51 +0000 (UTC), Christophe Leroy wrote: > Some architectures like powerpc require a non standard > allocation of optinsn page, because module pages are > too far from the kernel for direct branches. > > Define weak alloc_optinsn_page() and free_optinsn_page(), that > fall back on alloc_insn_page() and free_insn_page() when not > overriden by the architecture. Applied to powerpc/next. [1/2] kprobes: Allow architectures to override optinsn page allocation https://git.kernel.org/powerpc/c/7ee3e97e00a3893e354c3993c3f7d9dc127e9c5e [2/2] powerpc/kprobes: Replace ppc_optinsn by common optinsn https://git.kernel.org/powerpc/c/b73c8cccd72ac28beaf262fd6ef4b91411fc8335 cheers