Received: by 2002:a05:7412:8d06:b0:f9:332d:97f1 with SMTP id bj6csp46507rdb; Mon, 18 Dec 2023 08:32:00 -0800 (PST) X-Google-Smtp-Source: AGHT+IF7YHWmIFL6mPwMfHUzQVA5YB5jHBLZaVuzd3Rt/U6juKxxqzRcgQD5iQ/FoEGe7zOujVEU X-Received: by 2002:a05:6a20:9149:b0:187:ce5a:2a87 with SMTP id x9-20020a056a20914900b00187ce5a2a87mr7315876pzc.12.1702917120017; Mon, 18 Dec 2023 08:32:00 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1702917120; cv=none; d=google.com; s=arc-20160816; b=xV5kfkWDf6AiyYshm6LRP9WG56FR218hd2HL0LqvfGrMCTagbtAiGGoJY0aem2MlPv ZzOcjGG0MZWkYTL6jxwz46EzEgYt0ryK3sA6pP5rzbLpY36KPoQw01ukykNE5SJqpi9b Iupggjueg7uhb4RmxvHliOlEtB/6JAqf1nflCZhH2jcDG2f8Lpq9oKYlbq4v9Kuisw8S 0Qf/HYoKvfXw56PxXXWrjxGwI9yFp9zoaaUY0Q/h37MoezNuoC/q1DO2EAB0t48CA3Ur kZr2+U8jfJPXY+0oqhTq2W4E7Q880lVFSzNrTBgjkorB95Jgc/h38gg9+L/DXlaO75ct s4qA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:in-reply-to:message-id :subject:cc:to:from:date; bh=Wx/gpUgMUYIpnEPAymqG7nyHPkGs0nW3hDMXP2R9Oe4=; fh=H7rhZUnZ+NlyyU7vxDXWwpu6VPK6D0cjPor36M8Xy6o=; b=RbPI/g9lbO+ccaJjhPmMbryoBQDTVlShhh4VhKS4Yu3PyoeFQnIm7UUrGROV7f14Pp RDEI23SrJuXpP0KhsymRC/mDu07lpaQZjJ5O7wljOoKR2dPHO9OAzm2cIwTUiF4AEOSy GIfsUv/o41HMWpf8vlUTsnB/x7pGZAyniKy5DytNpoL+BPWFTgvg27l6zI10lu0TTbSB SC2mVwiEHRx+f9YggAG4fHYgRwLjk/302QeiWmd1stQdLu4cqqm2PgTkdmdhfQ2/Ua3Z G9muRomGXKmWYE8n2RgnmsZvChdyj8/3uXRVQS+AWkKWXSMoH+eqtbOH1duo1S28jb49 LFZg== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel+bounces-4063-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-4063-linux.lists.archive=gmail.com@vger.kernel.org" Return-Path: Received: from sy.mirrors.kernel.org (sy.mirrors.kernel.org. [2604:1380:40f1:3f00::1]) by mx.google.com with ESMTPS id y9-20020a63e249000000b005c1b2d93e52si18294623pgj.368.2023.12.18.08.31.59 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 18 Dec 2023 08:32:00 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-4063-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) client-ip=2604:1380:40f1:3f00::1; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel+bounces-4063-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-4063-linux.lists.archive=gmail.com@vger.kernel.org" Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by sy.mirrors.kernel.org (Postfix) with ESMTPS id E0808B228B3 for ; Mon, 18 Dec 2023 16:27:42 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id C6BAE49891; Mon, 18 Dec 2023 16:27:22 +0000 (UTC) X-Original-To: linux-kernel@vger.kernel.org Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 50AFD36B04; Mon, 18 Dec 2023 16:27:22 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 3E68CC433C8; Mon, 18 Dec 2023 16:27:21 +0000 (UTC) Date: Mon, 18 Dec 2023 11:28:17 -0500 From: Steven Rostedt To: Vincent Donnefort Cc: mhiramat@kernel.org, linux-kernel@vger.kernel.org, linux-trace-kernel@vger.kernel.org, kernel-team@android.com Subject: Re: [PATCH v7 0/2] ring-buffer: Rename sub-buffer into buffer page Message-ID: <20231218112817.7f3c8847@gandalf.local.home> In-Reply-To: <20231218154618.954997-1-vdonnefort@google.com> References: <20231218151451.944907-1-vdonnefort@google.com> <20231218154618.954997-1-vdonnefort@google.com> X-Mailer: Claws Mail 3.19.1 (GTK+ 2.24.33; x86_64-pc-linux-gnu) Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit On Mon, 18 Dec 2023 15:46:18 +0000 Vincent Donnefort wrote: > Previously was introduced the ability to change the ring-buffer page > size. It also introduced the concept of sub-buffer that is, a contiguous > virtual memory space which can now be bigger than the system page size > (4K on most systems). But behind the scene this is really just a page > with an order > 0 and a struct buffer_page (often refered as "bpage") > already exists. We have then an unnecessary duplicate subbuffer == > bpage. > > Remove all references to sub-buffer and replace them with either bpage > or ring_buffer_page. No! I think you misunderstood me before. I want it the other way around. In Linux, "page" usually means the architecture page (4096 on x86). If we are going to remove the duplicate of subbuffer == bpage, remove the "page" part, *not* the subbuffer part. The "subbuf" part is part of the design, not an implementation detail. The page part, was just an implementation detail that we do not want to expose! When you say "page" you mean a single page. If you say buffer_page_size, one will think this is an architecture page, not the subbuffer size. The ring buffer is broken up into subbuffers, The page is just an implementation detail. Let's not confuse that with the design. Thanks, -- Steve