Received: by 2002:a05:6358:489b:b0:bb:da1:e618 with SMTP id x27csp3450527rwn; Sat, 10 Sep 2022 12:00:25 -0700 (PDT) X-Google-Smtp-Source: AA6agR7ow2toLthuntZXTMN67NezddjtdNzshjDZS8qT+eP6BVj70pJlZfdQE9BNXVDQbklUA5f9 X-Received: by 2002:a05:6402:5c9:b0:446:fb0:56bb with SMTP id n9-20020a05640205c900b004460fb056bbmr16525440edx.173.1662836425311; Sat, 10 Sep 2022 12:00:25 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1662836425; cv=none; d=google.com; s=arc-20160816; b=wWUjN41FWrpCTqdeqRvB7ZYbKvJAIR6dvgWfi3wuMA3Bj2YzxjnmW1FjYmY++uAZz3 jvCLPwUd9g+U8w5UpJapZeerYvzH0KS6QJolYd5D6qOUeDKpOayGFX3qYCX4JJsdfhv8 Zng2Spipib/xJn4RpRfFl9Wk/GVFquwmmr6eZNzc+7Kx0o4i6waVA5xI5xMIAxMLw3il fIkP7E1KRBPcYIFo0iwwM88hF4ycfZFtj9W11F8WWAn4GaeuzaFqRPVdqKCzXi+DXeyO /ehwUHu6x+lirIp0qLo/SrEHhMGXR4w6WI94Wxn+AFQMDYWU4PPN6uLRenHh9Gq+rR9O DP9Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:subject:message-id:date:from:in-reply-to :references:mime-version:dkim-signature; bh=J3D/ARkSkqKI85ccm0AMVtwEb1skGkqx7TLvFxAbwM0=; b=gReZ7Dz7gFNAppEzS/Q2JNt6+/ubH6yhJjgbzE5H4chvHpJ0lCMmykvUFgg42yE0rX t6VG74AU4yRrU0mTkBojZK0j5e8iTz15674CXFkdcfMcyMvu8QxJxGzdiI89/v6eCuHN c+fbrWHmA+L9JHTItrXEeY4PA2Qog7sSpqn37Ei4hSM1Xg2GqE2T+D6oyBplO82oaHye He6+OwR0pUFIwZrydmyqfPdk6GY5g0CpmCIskT5EJUF/GVUywtKHZ6Br9r6dmsFaz5i5 g2StnAO3XeO3SKKWKBkPhckA/G+XxJ0TJBKittJfLnA9D4msDHlSG0Mmit50YZN0R7Nu V3DA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=GiIm7U3J; 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=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id c8-20020a50d648000000b00450e9be0e3csi3188163edj.410.2022.09.10.11.59.58; Sat, 10 Sep 2022 12:00:25 -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=@gmail.com header.s=20210112 header.b=GiIm7U3J; 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=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229629AbiIJShz (ORCPT + 99 others); Sat, 10 Sep 2022 14:37:55 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:44508 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229547AbiIJShx (ORCPT ); Sat, 10 Sep 2022 14:37:53 -0400 Received: from mail-ej1-x636.google.com (mail-ej1-x636.google.com [IPv6:2a00:1450:4864:20::636]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 9B236481C7; Sat, 10 Sep 2022 11:37:52 -0700 (PDT) Received: by mail-ej1-x636.google.com with SMTP id v16so11266135ejr.10; Sat, 10 Sep 2022 11:37:52 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:from:to:cc:subject:date; bh=J3D/ARkSkqKI85ccm0AMVtwEb1skGkqx7TLvFxAbwM0=; b=GiIm7U3J5Reg7owAgAksi+e0a1Tid5Z/3k/dq7aNDlhkQYPwnAtIolQT/WmItfeFl9 X0HRuJvuWggo1GjcBohcNNBqtV9FqUDXJWh9ly1gC50deEwre8P7XbAxiOrd/pB9oc8r 2acUpW5u+l2DtPqbNsPSGQp5BP0Ga7N490AvmQqCrIscPmNV1W2gswzHiZu+v8dHkCjl CZfrjZpfJG3OUeLWu9933KTlbNKX/s9ti9vXcksXiyqfC9ZiWyQXV7XKzzM4hauoTU5U RIzyqLYJndMqDPCSZd3L9Mx8pRIB08yyMv9DP39XLlVzBc/Y3N3zI5yj9G2evWN3czQ8 Pnwg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:x-gm-message-state:from:to:cc:subject:date; bh=J3D/ARkSkqKI85ccm0AMVtwEb1skGkqx7TLvFxAbwM0=; b=iS8FHHUN2Ozr4jZoAsX9PPBogbHbT/LHhtTbP6rFrbYQQ4QK4AMekU9wLPxhtuIUYF n9eb6Of7CiRBlRG8sP7dKLvWzzlw91jJXUgSuAsotYHLpbRtardNOmTIl0jpYEgrSz56 PtLwZbdPh1QLl98qO/ZQco/ep0vAGl7MYn4VuLUW9Xi8RlVUxKLwLKQbYSNmmVjXIr0x +9w+iVor551T+UtI35q/1TlU5wpaDzqhThYyaUzvtwqw2yJF3ap677GHclxkc9E3GpZL wvCKu5TWKNAtaL5QVO3CqYvOQdp6HTkSFKeMMtxSV3f7rdrSxTKATT7bCPgFTeliqWzm uNzg== X-Gm-Message-State: ACgBeo2dCFVeMU6WR7GroTtTvv/1KSv0KTMrIBJINMZjO0bgR8Lvb6WH 9a7HpsQpW2coNWrzjnYP6MroD//oLzqrUd7Xci8= X-Received: by 2002:a17:906:58d1:b0:76d:af13:5ae3 with SMTP id e17-20020a17090658d100b0076daf135ae3mr14321706ejs.708.1662835071050; Sat, 10 Sep 2022 11:37:51 -0700 (PDT) MIME-Version: 1.0 References: <20220829210546.755377-1-james.hilliard1@gmail.com> <871qsjyb41.fsf@oracle.com> <87r10j7h8r.fsf@oracle.com> In-Reply-To: <87r10j7h8r.fsf@oracle.com> From: Alexei Starovoitov Date: Sat, 10 Sep 2022 11:37:39 -0700 Message-ID: Subject: Re: [PATCH v2] libbpf: add GCC support for bpf_tail_call_static To: "Jose E. Marchesi" Cc: James Hilliard , Andrii Nakryiko , "Jose E. Marchesi" , David Faust , bpf , Andrii Nakryiko , Alexei Starovoitov , Daniel Borkmann , Martin KaFai Lau , Song Liu , Yonghong Song , John Fastabend , KP Singh , Stanislav Fomichev , Hao Luo , Jiri Olsa , Nathan Chancellor , Nick Desaulniers , Tom Rix , LKML , clang-built-linux , elena.zannoni@oracle.com Content-Type: text/plain; charset="UTF-8" X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_FROM, RCVD_IN_DNSWL_NONE,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 On Sat, Sep 10, 2022 at 1:43 AM Jose E. Marchesi wrote: > > 2) If/when we support the C-like assembly syntax in GCC, Thank you for considering supporting the standard BPF assembly syntax in GCC. I agree that C-like asm looks unusual. The main reason to pick that style was the ease of understanding and to avoid gnu vs intel asm order confusion. We didn't want to deal with question whether 'mov r1, r2' means r1->r2 or r2->r1. The C style asm r1=r2 is unambiguous.