Received: by 2002:a05:6358:9144:b0:117:f937:c515 with SMTP id r4csp1407283rwr; Thu, 27 Apr 2023 17:51:11 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ4kbSyjotH8dsfp+7BzS6g5CCjRgR+owuRcRA6ILm5UMy6vN1y+rQ6bIP9UX/37sjlZnyy+ X-Received: by 2002:a05:6a20:be8a:b0:f2:f505:951 with SMTP id gf10-20020a056a20be8a00b000f2f5050951mr3057001pzb.13.1682643070831; Thu, 27 Apr 2023 17:51:10 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1682643070; cv=none; d=google.com; s=arc-20160816; b=FJp2/N4KdvWDikIpi/ZltiQpxJgvtnlvsPSIdoZN/ek7BFpNHITnzbU3dAIUYyYU62 yrcsesHKd8CFaD++VfkHg4s59nWPZA1KjPej06o6tcoSroyWBPdpgDAk9+GUxxVCpxhD +T9FJNDWav8JEYQevIqw3iHpYYO2/wO+Y1+t3VfOew2iP93jkFL4ao7oAiBvfheb4rag NuSqPXEPxZD7APILCqOiK1bluJELII+NpDhkNEsLNnOR/ffsOukDLnh+/GsBn6Si9r9K SOZKHkC/bsMt7tKgTEd74X9XGQozdN+L4QvRpfnLNhdsp8y6wZy0s5T2tk/zIii/ShsW jNnw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:cc:to:subject :message-id:date:from:in-reply-to:references:mime-version :dkim-signature; bh=eYJ9Gq0jRLdthT3KT6+pUq4WeVXKnPD2vRhwxoOwfLM=; b=rCwSXSVYM70M8L5WtWEQw6GFSKR3PVexX7UB9j+vG5SlUjcExHbfyLsa3uLZlJjItt d40roBHo1U9nEJzqwQvS4oSved84LS7ShrPVM7xxQiIqhiL/0UNwymQugHfjSlqi4PFy xhcqy4zWS2+IVy4R9AoZusPdotuoyVactVOIA7Vz1sJxdP7E7101B/TreYnY3Xq872gG d8Wgs9aN/+vfjITYCzwYC1u5+XNl6g9AUAgFUzbjSElwdP2CJxMHoFFXlSTHmrvSfw4M dBxZYDO0eQygSB3yHX+cFGQEGH+KdsQ/e0Inwktd5Ho6k/eYLXL2J+3sPUZmcAF3UJRH V9hA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@google.com header.s=20221208 header.b=VAXP1WEM; 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=REJECT sp=REJECT dis=NONE) header.from=google.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id a21-20020a63e855000000b005135d3abc6asi21004711pgk.90.2023.04.27.17.50.58; Thu, 27 Apr 2023 17:51:10 -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=@google.com header.s=20221208 header.b=VAXP1WEM; 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=REJECT sp=REJECT dis=NONE) header.from=google.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1344485AbjD1As0 (ORCPT + 99 others); Thu, 27 Apr 2023 20:48:26 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:42292 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229508AbjD1AsY (ORCPT ); Thu, 27 Apr 2023 20:48:24 -0400 Received: from mail-pg1-x52b.google.com (mail-pg1-x52b.google.com [IPv6:2607:f8b0:4864:20::52b]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id CDC3B2726 for ; Thu, 27 Apr 2023 17:48:23 -0700 (PDT) Received: by mail-pg1-x52b.google.com with SMTP id 41be03b00d2f7-51f3289d306so7023325a12.3 for ; Thu, 27 Apr 2023 17:48:23 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20221208; t=1682642903; x=1685234903; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:from:to:cc:subject:date :message-id:reply-to; bh=eYJ9Gq0jRLdthT3KT6+pUq4WeVXKnPD2vRhwxoOwfLM=; b=VAXP1WEMBqFyWeIoabfqwWglRbZ4HdOWER+eOB5RWEer/jpI0svg/f4iWi3c8Cg+Pt by2DSZbfQZ5DKECFJtxEVAvZP00YYuj8SzpYP5frO7HeB/evzIiSXJiYt3uP1AgW6Z/o t4C/VnCsfpRqyoXAvRlPeT9bKt0XI3Ilupw3Lpt0+ypUfNvaXw70RtwacEi3QW5bC93A LD8UutIlcg+pO1Nr1Edae+tN1Cff+2S7B+/D+zIIHdM0zzUfcdgfJeIwzJVmI36PVyU/ HkzP2LpUvgBQhHOexE8LxayxI4ASWaOUCXe+UEfkHJxLKREaLYRvtUXxfqKXe00TIYH9 TjRg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1682642903; x=1685234903; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=eYJ9Gq0jRLdthT3KT6+pUq4WeVXKnPD2vRhwxoOwfLM=; b=eR+ChV52a5kgtqQXz5JAFJUQaGdWcb4/cKjeB4gcndNRDFuzE7QNp1VQc9ExgXTqih rPeV7VaT/Sqm+JA/HJWZ3s3OvKD4OzR2u+/xskpHww/rIkA3k1izUvg7XFhyi85AfdU8 3xhlt8gxbXHS2vIY12fWHbT+KtgV1MUNqQDY+U0OOfJBVQoW+b5H/tP6cMve84DgbXGQ o3qKnkbl3pvfO/uefDRIfs3gRuR89RQDlvS5GxV658/7demAa2LUZ45KT/NuWPKhfDGD f9nCavz6DrLJscTJQ0dJS/AwGMr+hx3GTpmx5X4UdGAJ9oBWRo5jqlJcTuK5h3fL9jOU itKA== X-Gm-Message-State: AC+VfDx/yIWcPKkFwpdS1xihNOsNVoW7eTZ8CT8lBkUyopNPCGRJSqxA ec34pLivwErRmZ2X4vTDppkPYEX0xddoAGx/5gHgsQ== X-Received: by 2002:a17:90a:fc82:b0:247:25d6:b849 with SMTP id ci2-20020a17090afc8200b0024725d6b849mr3639718pjb.8.1682642903149; Thu, 27 Apr 2023 17:48:23 -0700 (PDT) MIME-Version: 1.0 References: <20230418014037.2412394-1-drosen@google.com> <20230418014037.2412394-36-drosen@google.com> In-Reply-To: From: Daniel Rosenberg Date: Thu, 27 Apr 2023 17:48:11 -0700 Message-ID: Subject: Re: [RFC PATCH v3 35/37] tools: Add FUSE, update bpf includes To: Andrii Nakryiko Cc: Miklos Szeredi , bpf@vger.kernel.org, Alexei Starovoitov , Amir Goldstein , linux-kernel@vger.kernel.org, linux-fsdevel@vger.kernel.org, linux-unionfs@vger.kernel.org, Daniel Borkmann , John Fastabend , Andrii Nakryiko , Martin KaFai Lau , Song Liu , Yonghong Song , KP Singh , Stanislav Fomichev , Hao Luo , Jiri Olsa , Shuah Khan , Jonathan Corbet , Joanne Koong , Mykola Lysenko , kernel-team@android.com Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Spam-Status: No, score=-17.6 required=5.0 tests=BAYES_00,DKIMWL_WL_MED, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF, ENV_AND_HDR_SPF_MATCH,RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,SPF_PASS, T_SCC_BODY_TEXT_LINE,USER_IN_DEF_DKIM_WL,USER_IN_DEF_SPF_WL 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 Wed, Apr 26, 2023 at 9:24=E2=80=AFPM Andrii Nakryiko wrote: > > On Mon, Apr 17, 2023 at 6:42=E2=80=AFPM Daniel Rosenberg wrote: > > > > +/* Return Codes for Fuse BPF struct_op programs */ > > +#define BPF_FUSE_CONTINUE 0 > > +#define BPF_FUSE_USER 1 > > +#define BPF_FUSE_USER_PREFILTER 2 > > +#define BPF_FUSE_POSTFILTER 3 > > +#define BPF_FUSE_USER_POSTFILTER 4 > > nit: can this be an enum instead? It would be more self-documenting, > IMO. At given it's FUSE BPF-specific, why is it not in > uapi/linux/fuse.h? > An enum would be nicer. And I'm sure there are plenty of things that are probably in the wrong place right now. I'll be moving most of the changes in bpf specific areas over to fuse specific areas when struct_ops can handle modules. This particular one can move now though.