Received: by 2002:a05:6358:700f:b0:131:369:b2a3 with SMTP id 15csp1495625rwo; Wed, 2 Aug 2023 15:21:12 -0700 (PDT) X-Google-Smtp-Source: APBJJlFLZyWSSdVsej6cRuJH/naH19IEEHG1XfYeOqSUP+HBFDZB/Nzl/0R1cxjey+Lm/AM0iZ6Y X-Received: by 2002:a17:902:ce8d:b0:1b6:6a14:3734 with SMTP id f13-20020a170902ce8d00b001b66a143734mr24361613plg.29.1691014872076; Wed, 02 Aug 2023 15:21:12 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1691014872; cv=none; d=google.com; s=arc-20160816; b=nFvBQ0aaXzHI2ODaglot85Of60rU4tlyPIzTqYeUeSR+fo59wS9sTo+o18smzyz0J7 2ysU+oYyWya/JAZ6I9XomUGLdHxY2+Wm7mHCefJe0ikpscpYqLa9xayl8DEXLvp1Zn2X qUrXOFzPvleaTajj7qEpjTwH7KezR2KV2nw8aHjgEDQBJJBHMEg8+xwyqsaYPpEEHh4R cYx1eeOeOF4aTL8pfTVAxmgNslpQ6MPn9+A6suqUHaFutsm9gJvbnEVjEE5xeIYBlz1c OQ8mikWoJC6BuRYtnAAMFnQ4Wye+sm2unRVByxhquYYNkkK54N9yKM2A3e80YQ6BFRl1 Aacw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:in-reply-to:references:date:message-id :from:subject:content-transfer-encoding:mime-version:dkim-signature; bh=LRMNweUGqN4GQ4QCS6rayNUgqfDJkBd6Y9GssHQ6ytg=; fh=YP6dEKcBQERrbKUtxuuRhS18nXt7b1DaU4RQDAH60yg=; b=XlK/N4AGFD94QJrzM8n/XKpOPutlSH1+MnNYt8bM9J64WHFHPyfhoLR0+0sWEXS8ry K/zR9Vf45DO+zAqh1LRGrU02z3HIxoY6kzGzI84ReK3BHKfXRrK9OUQ0jBjELCMuQw12 Ei/DVsVhEiXHXlUverJwqsr3VrmJkXj/20BWKG5WgYolXMh7zlubEqLbNxskDP4GkShi 6q3JemYO7K6tB80wp+O9QeGzxK6Oum2LzEgxsbXIG5vRqcWbseRnnYJ1fxw5eV5f/Mue k2xWuotL5gxoF5AVOU+nanrHLo8UkkZ49MqEyjEn6UkhC5W0DH2Kq46fESOreBG62oLV 56Hg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=Y2kTcAN3; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id kb14-20020a170903338e00b001b80643d64dsi11121910plb.145.2023.08.02.15.20.59; Wed, 02 Aug 2023 15:21:12 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=Y2kTcAN3; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232075AbjHBVKj (ORCPT + 99 others); Wed, 2 Aug 2023 17:10:39 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:54250 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231899AbjHBVK0 (ORCPT ); Wed, 2 Aug 2023 17:10:26 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [IPv6:2604:1380:4641:c500::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id D3ADD2D7E for ; Wed, 2 Aug 2023 14:10:22 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id 4FF4B61B2A for ; Wed, 2 Aug 2023 21:10:22 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPS id A16EDC433C8; Wed, 2 Aug 2023 21:10:21 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1691010621; bh=U6fwEY6CTug5r3b9WDLABmO5cBrj/XDZhdVoueKrQtc=; h=Subject:From:Date:References:In-Reply-To:To:Cc:From; b=Y2kTcAN3AYkOVOEGiwmAZkCCdIQ9M9IKrP+EDBGrQD9Ej//4M9AwTvVAUQCnYXhQM NvD/5tevUYJM9WqfvhkC2cseOVDORAh+RnmFQk/8fjlRXlWSSFuwERNeelqnojK8nQ OEBHMgdDM/L8ih49+XTb6rrSyTqsKZbHdFMoBl2uxdGaOwK9KtBxnTjkdvxTLhAV6r oTH7B3n5fAnpJ6x1m8nBpst8c3n9MHn6ZOKsaIOisT5nQyNeU4TdcAB1RVFyxazsXZ mjdsWBCVY9KRtdvFhBbuu/dKs+RuXGWZY1TZ/7ahklfVevr3SPanEy8/KLCmrneEFj +8QDeN634tY6Q== Received: from aws-us-west-2-korg-oddjob-1.ci.codeaurora.org (localhost.localdomain [127.0.0.1]) by aws-us-west-2-korg-oddjob-1.ci.codeaurora.org (Postfix) with ESMTP id 81E99E270D3; Wed, 2 Aug 2023 21:10:21 +0000 (UTC) Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Subject: Re: [PATCH v2] riscv, bpf: Adapt bpf trampoline to optimized riscv ftrace framework From: patchwork-bot+netdevbpf@kernel.org Message-Id: <169101062152.23031.14952859291909120655.git-patchwork-notify@kernel.org> Date: Wed, 02 Aug 2023 21:10:21 +0000 References: <20230721100627.2630326-1-pulehui@huaweicloud.com> In-Reply-To: <20230721100627.2630326-1-pulehui@huaweicloud.com> To: Pu Lehui Cc: linux-riscv@lists.infradead.org, bpf@vger.kernel.org, netdev@vger.kernel.org, linux-kernel@vger.kernel.org, bjorn@kernel.org, palmer@dabbelt.com, ast@kernel.org, daniel@iogearbox.net, andrii@kernel.org, martin.lau@linux.dev, song@kernel.org, yhs@fb.com, john.fastabend@gmail.com, kpsingh@kernel.org, sdf@google.com, haoluo@google.com, jolsa@kernel.org, guoren@kernel.org, suagrfillet@gmail.com, pulehui@huawei.com X-Spam-Status: No, score=-4.4 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_MED, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hello: This patch was applied to bpf/bpf-next.git (master) by Alexei Starovoitov : On Fri, 21 Jul 2023 18:06:27 +0800 you wrote: > From: Pu Lehui > > Commit 6724a76cff85 ("riscv: ftrace: Reduce the detour code size to > half") optimizes the detour code size of kernel functions to half with > T0 register and the upcoming DYNAMIC_FTRACE_WITH_DIRECT_CALLS of riscv > is based on this optimization, we need to adapt riscv bpf trampoline > based on this. One thing to do is to reduce detour code size of bpf > programs, and the second is to deal with the return address after the > execution of bpf trampoline. Meanwhile, we need to construct the frame > of parent function, otherwise we will miss one layer when unwinding. > The related tests have passed. > > [...] Here is the summary with links: - [v2] riscv, bpf: Adapt bpf trampoline to optimized riscv ftrace framework https://git.kernel.org/bpf/bpf-next/c/25ad10658dc1 You are awesome, thank you! -- Deet-doot-dot, I am a bot. https://korg.docs.kernel.org/patchwork/pwbot.html