Received: by 2002:a05:6359:c8b:b0:c7:702f:21d4 with SMTP id go11csp1243667rwb; Thu, 6 Oct 2022 10:13:06 -0700 (PDT) X-Google-Smtp-Source: AMsMyM5LlzGLT3Dbx1xAjVJ5ms8kXAq1ScXvAXe4E5M1X0W8HDrkYpAjAOlfyqo2iOgHdfBXl852 X-Received: by 2002:a05:6402:484:b0:457:e19f:bdd2 with SMTP id k4-20020a056402048400b00457e19fbdd2mr752656edv.115.1665076386130; Thu, 06 Oct 2022 10:13:06 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1665076386; cv=none; d=google.com; s=arc-20160816; b=Krbn9djTugCUhsTsVqUY+Rwi1cLI9WaQH/Fee+Tv+Tp1zUby5KCoDAeddzriZv8BkM lFYmwaUbteoKz8exs3WdSawscTlKLnHP5xox2RIIZmX9ZOOIxygCiR7ZQdxiQJPbSwEb hS90ILNrFTta3OyiEGH3GNQX/JUAGkHLObrwLmsL4+dDJF1f7oi9+3PKZ+DUjfs6zSQn 1UkKZjS2xqECeiDEQDcdgc7T0p/bYQ/jkUQVkN29DFFxZyPS7b5sjfNQVA04qzexLAcd LGeouW8/INheCtzYTLkePj6LakRnJ3JFlY7ANM2V31O67Fht6Mc8n02kgfvNo2ErMRag GPTQ== 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 :references:in-reply-to:message-id:subject:cc:to:from:date; bh=IkZR8SNTLxPKFVN7V4/kS5D+SdvyDQgYZWl3G6IGI5E=; b=Ry4//92n0732ROmQlcdhMxlFK3MxbeklI/QBeP2tDgt64U9Bq3G9wMmfumxcIDzukO O436Gj3jdLrZNs4V/DTg3yjhZRxcGsQKmUeGDLk7eOe9p0T41aRAPhrHsKBsIdIQqN8D pCSfYDZA2P6GmmyZibN/Z+j8w5gLBZ77Z89DYZLCJ3L/KxjjuZ3R0cCo0Yr2JeAKXN6+ gy71KOUlZn/AvhAwT3Db4o5xm4IoQJ9xw2bdvDPxD5EUIWVKw62Mx3UD0Ulz6b9K1voe EQWcSky1ozFALHGV0vPH9kmcr6N3JZZce18f3+3PufwKSQcBFvDfgZcx9YASlPY1WLGL +y8g== ARC-Authentication-Results: i=1; mx.google.com; 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 Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id w18-20020a056402269200b00459bcf974f3si4781565edd.553.2022.10.06.10.12.35; Thu, 06 Oct 2022 10:13:06 -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; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230404AbiJFQ30 (ORCPT + 99 others); Thu, 6 Oct 2022 12:29:26 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:37294 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229484AbiJFQ3Y (ORCPT ); Thu, 6 Oct 2022 12:29:24 -0400 Received: from sin.source.kernel.org (sin.source.kernel.org [145.40.73.55]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 292F124084; Thu, 6 Oct 2022 09:29:23 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by sin.source.kernel.org (Postfix) with ESMTPS id 8606DCE149D; Thu, 6 Oct 2022 16:29:21 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id BB7BEC433D6; Thu, 6 Oct 2022 16:29:16 +0000 (UTC) Date: Thu, 6 Oct 2022 12:29:22 -0400 From: Steven Rostedt To: Florent Revest Cc: Xu Kuohai , Mark Rutland , Catalin Marinas , Daniel Borkmann , Xu Kuohai , linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, bpf@vger.kernel.org, Will Deacon , Jean-Philippe Brucker , Ingo Molnar , Oleg Nesterov , Alexei Starovoitov , Andrii Nakryiko , Martin KaFai Lau , Song Liu , Yonghong Song , John Fastabend , KP Singh , Stanislav Fomichev , Hao Luo , Jiri Olsa , Zi Shen Lim , Pasha Tatashin , Ard Biesheuvel , Marc Zyngier , Guo Ren , Masami Hiramatsu Subject: Re: [PATCH bpf-next v2 0/4] Add ftrace direct call for arm64 Message-ID: <20221006122922.53802a5c@gandalf.local.home> In-Reply-To: References: <20220913162732.163631-1-xukuohai@huaweicloud.com> <970a25e4-9b79-9e0c-b338-ed1a934f2770@huawei.com> <2cb606b4-aa8b-e259-cdfd-1bfc61fd7c44@huawei.com> <7f34d333-3b2a-aea5-f411-d53be2c46eee@huawei.com> <20221005110707.55bd9354@gandalf.local.home> <20221005113019.18aeda76@gandalf.local.home> X-Mailer: Claws Mail 3.17.8 (GTK+ 2.24.33; x86_64-pc-linux-gnu) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-6.7 required=5.0 tests=BAYES_00, HEADER_FROM_DIFFERENT_DOMAINS,RCVD_IN_DNSWL_HI,SPF_HELO_NONE,SPF_PASS 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 On Thu, 6 Oct 2022 18:19:12 +0200 Florent Revest wrote: > Sure, we can give this a try, I'll work on a macro that generates the > 7 callbacks and we can check how much that helps. My belief right now > is that ftrace's iteration over all ops on arm64 is where we lose most > time but now that we have numbers it's pretty easy to check hypothesis > :) Ah, I forgot that's what Mark's code is doing. But yes, that needs to be fixed first. I forget that arm64 doesn't have the dedicated trampolines yet. So, let's hold off until that is complete. -- Steve