Received: by 2002:a05:6358:701b:b0:131:369:b2a3 with SMTP id 27csp215732rwo; Fri, 21 Jul 2023 10:42:12 -0700 (PDT) X-Google-Smtp-Source: APBJJlHW3AhcYByGzrBnk43/trzpMEKBvXTy5A3lk6ffLYUpjPEF4IjseRP2KCBx5ay/bkpYDujv X-Received: by 2002:a17:906:11a:b0:991:fef4:bb9 with SMTP id 26-20020a170906011a00b00991fef40bb9mr2206542eje.58.1689961331758; Fri, 21 Jul 2023 10:42:11 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1689961331; cv=none; d=google.com; s=arc-20160816; b=PaT1PetOamwjcPYWI+Q6BhDqkguOnIdIt+mncGU+f9wvVKm+pD7WL+gYJJuevsqMxY tC4rJdKM1qmnsvI80rn1wxcx6vojSFaxfl/LXnOYerjSALSf8o9vsDSEwTgDxz5rUkdD vrjAh72hESFvfF8YfbOomfom4/ieIR50tx1CxAbOc2ywBMU05yYTQcnlFxt6TsTrKy3+ 6dagjnENUBJ5Evhz5IQAhWiMTCIUyJFEQzqDEJsQSblA35L+riKu3Fzde4f5Ys4FiEC3 yUq3g076HK74gdESIemiJQqJBxEzGSCxQfENfqmgQ/4iZWQAGb085+/0oWVVA10W2NoN mhrA== 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=pQtClfCjV9rtqrEfz2tbCvEGEfg31yExZybq6CGhVo4=; fh=9qHAUW5LnO7c4m4PbMW4WW66E5AiVu6LfmPXOlSW0Xo=; b=ZYBIAc0+Dz1qrZXygpDZiZBKqRa35wwrjLoFd56te1Ug67QjfEGBGECRtxb2ina7Pm gRJPC0jIc+Nab1tz7K8xKcubR+SX02bLGPjH9s17k//xWfm67EuSiwZBcUnWIncLtNsj fG/4ovSpJnC7ScRRnnfQHwCmVPX0UQFXJdX0BUg4pF2RZrbz1OMXNt75Zn2ihonSdonP VYQ33Dz1N0Go/aKJndeUJqy/oZhLYlKDRRyHZ1LL/HD3ons3wb6/Ahl3xYuKM1K03zeB L4uLPn+ObfKWYyJX0AMGU3UYCdgRXF5AWLweZ1ncaa5jzm0PSwi2tdGyvAeTbo0gje9w k+vg== 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 b13-20020a170906490d00b00992b75dedafsi2261777ejq.507.2023.07.21.10.41.44; Fri, 21 Jul 2023 10:42:11 -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 S231357AbjGURZM convert rfc822-to-8bit (ORCPT + 99 others); Fri, 21 Jul 2023 13:25:12 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:37346 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229902AbjGURZA (ORCPT ); Fri, 21 Jul 2023 13:25:00 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [139.178.84.217]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 968F026BF; Fri, 21 Jul 2023 10:24:58 -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 312D461D5E; Fri, 21 Jul 2023 17:24:58 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 17FEDC433C7; Fri, 21 Jul 2023 17:24:55 +0000 (UTC) Date: Fri, 21 Jul 2023 13:24:54 -0400 From: Steven Rostedt To: Nadav Amit Cc: Ajay Kaher , "shuah@kernel.org" , "mhiramat@kernel.org" , Ching-lin Yu , Linux Kernel Mailing List , "linux-kselftest@vger.kernel.org" , "linux-trace-kernel@vger.kernel.org" , kernel test robot , "oe-lkp@lists.linux.dev" , Alexey Makhalov , "er.ajay.kaher@gmail.com" , "srivatsa@csail.mit.edu" , Tapas Kundu , Vasavi Sirnapalli Subject: Re: [PATCH v4 00/10] tracing: introducing eventfs Message-ID: <20230721132454.07d6c8b2@gandalf.local.home> In-Reply-To: <66DACCE8-1C57-4A30-8ACF-D88179CA6381@vmware.com> References: <1689248004-8158-1-git-send-email-akaher@vmware.com> <20230714185824.62556254@gandalf.local.home> <883F9774-3E76-4346-9988-2788FAF0D55E@vmware.com> <20230718094005.32516161@gandalf.local.home> <2CD72098-08E2-4CAA-B74D-D8C44D318117@vmware.com> <20230719102310.552d3356@gandalf.local.home> <899D0823-A1B2-4A6F-A5BA-0D707F41C3D4@vmware.com> <20230719144046.746af82e@gandalf.local.home> <20230721084839.4a97a595@gandalf.local.home> <20230721091947.0df9fd73@gandalf.local.home> <66DACCE8-1C57-4A30-8ACF-D88179CA6381@vmware.com> X-Mailer: Claws Mail 3.19.1 (GTK+ 2.24.33; x86_64-pc-linux-gnu) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8BIT X-Spam-Status: No, score=-1.7 required=5.0 tests=BAYES_00, HEADER_FROM_DIFFERENT_DOMAINS,RCVD_IN_DNSWL_BLOCKED,SPF_HELO_NONE, SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=no 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 Fri, 21 Jul 2023 17:17:24 +0000 Nadav Amit wrote: > > I also added a "is_freed" field that is part of the union and is set if > > list elements have content. Note, since the union was criticized before, I > > will state the entire purpose of doing this patch set is to save memory. > > This structure will be used for every event file. What's the point of > > getting rid of dentries if we are replacing it with something just as big? > > Anyway, struct dentry does the exact same thing! > > Hey, don’t shoot me… ;-) > > [And admittedly, I didn’t review the whole series after v1.] > > I understand your position, but I think that at least is_freed should not > be in the union, and you can just put it after umode_t. > > Even for the matter of size, it should not matter in most architectures > since umode_t is 16-bit, as natural alignment is at least 32-bits. My new code I'm working on removes the umode_t and will require this then. I rather have that part tested before adding other drastic changes. -- Steve > > [ And “bool" is clearer type for is_freed. ] >