Received: by 2002:a05:7412:e794:b0:fa:551:50a7 with SMTP id o20csp647748rdd; Tue, 9 Jan 2024 15:42:46 -0800 (PST) X-Google-Smtp-Source: AGHT+IH+MYxFl43cK1NIJvXeg3yEfSHV3sFO7N3tDJ0joUXVJvqZlPygVHxp07T5X0N6EBX5behA X-Received: by 2002:a05:600c:35cc:b0:40e:3532:2f6f with SMTP id r12-20020a05600c35cc00b0040e35322f6fmr42012wmq.182.1704843766721; Tue, 09 Jan 2024 15:42:46 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1704843766; cv=none; d=google.com; s=arc-20160816; b=iDohYmkqL0mADIFM58yT7TTcBwpeV1EseW+8OzvOSik0swaKepVDntYhA0up3/aEK6 nUfnhnJc5kCJ2xuYS/PYVC3ELzZKk1pcCThdPVdphVXUuWVduidkdsePVWx/13tyN+Q4 vNa7/72CE47AvmpKuoPWl+duxg5+eTOPX9J4s4CVcL3jdvlUEc/t+1RoB8Zq/1Rnhvx2 X1Q3qCkkTyDeBrSm4eJZOVG9JmlGaPRfROUIWWJpNLQPBo83OUG19hSe5Nr6OKCCfjXJ mYCv1ZZZxAO6QaVpDAyiqYmtUcU9BFEpMOCDPP+fACLzfr3L/HgMHlO8SBs4nwwJ3RNi HDJg== 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:dkim-signature; bh=yf5koet8rWGWa/qOzgs8cxgZN1ceIFsZa4xJ6Mgiyfw=; fh=m81CCTuCbCiEBQNSfKwMhBKHJZmcJ/zxh0iGF2IisCs=; b=H8HVjkPN1Rko7bq7qityOVC+x5dJjvxtro32rXVKkFEGgmU8nbD6QvRjIvHT8wNQ8h 318dep+Ub7Egl6G44kUOAFWGGEhivhBtpKjmmAEzi86pBPtHz1os5EIDennJTeWgXQfN oWjFUsxziZCukeyBdU89lJ408BCqaTbRyI8j9vHl79wbrpLt2TzIfQRFhow6tx+whvfA UTQJrkRbEtDNtiWzZhF4wJi/3hPfnCsi7E9OASKH8VZo1HyIsoRZ6Vxlotv69TQOCCll IDN/5na7mVd0vlWqgEL6uZG/WbKXQcPbxebqJkkNJC16T3cAHeo6AB73oaVDK06Ydis1 9CZA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=dBzNVUFZ; spf=pass (google.com: domain of linux-kernel+bounces-21543-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-21543-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [2604:1380:4601:e00::3]) by mx.google.com with ESMTPS id cw18-20020a170906c79200b00a29d6201889si1187656ejb.1005.2024.01.09.15.42.46 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 09 Jan 2024 15:42:46 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-21543-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) client-ip=2604:1380:4601:e00::3; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=dBzNVUFZ; spf=pass (google.com: domain of linux-kernel+bounces-21543-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-21543-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=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 am.mirrors.kernel.org (Postfix) with ESMTPS id 78B381F26911 for ; Tue, 9 Jan 2024 23:42:46 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 9A1C437159; Tue, 9 Jan 2024 23:42:10 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="dBzNVUFZ" 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 CF1D33F8D1; Tue, 9 Jan 2024 23:42:09 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id DA09BC433F1; Tue, 9 Jan 2024 23:42:07 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1704843729; bh=V5SoNVHkaohW6Hi1oKlnnVxlzfimMwLGEIxtkbPfkOY=; h=Date:From:To:Cc:Subject:In-Reply-To:References:From; b=dBzNVUFZCGsnRy5x2vJUDc+1d4+1Ncx2H18JJaBwC6K8lN1kLfD31qtbZxunZXcQo Ra4HhlW9bqPCFTiw4dHBu8EgPTkLBFgXQg89VJ6qrBMXdwLYxr7/CRKINlDVc3abkm 0Qqu1wanaTj4W3pbQFl1MNlgP1tNYCiWgRkfcR3r3qs7/pR7dwl+AmYVFUbw7rFNgF cW+CBxNZa1/06HIh/+cf602N4T9Tj7ZhVicz38dbDAdwp2UCvhGZvxf/oisYQ8hTif BF7vUX1tF05iXM4Vg1Re0n0cuDu91w0uk+aKt2XZQO70unaNa5JLo9TWiftS75iBCO ApDuYto7mrYZg== Date: Wed, 10 Jan 2024 08:42:05 +0900 From: Masami Hiramatsu (Google) To: Vincent Donnefort Cc: rostedt@goodmis.org, linux-kernel@vger.kernel.org, linux-trace-kernel@vger.kernel.org, mathieu.desnoyers@efficios.com, kernel-team@android.com Subject: Re: [PATCH v10 1/2] ring-buffer: Introducing ring-buffer mapping functions Message-Id: <20240110084205.2943f88bf8b797b04297b0ae@kernel.org> In-Reply-To: References: <20240105094729.2363579-1-vdonnefort@google.com> <20240105094729.2363579-2-vdonnefort@google.com> <20240109234230.e99da87104d58fee59ad75c6@kernel.org> X-Mailer: Sylpheed 3.7.0 (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 Tue, 9 Jan 2024 15:13:51 +0000 Vincent Donnefort wrote: > > > @@ -388,6 +389,7 @@ struct rb_irq_work { > > > bool waiters_pending; > > > bool full_waiters_pending; > > > bool wakeup_full; > > > + bool is_cpu_buffer; > > > > I think 'is_cpu_buffer' is a bit unclear (or generic), > > what about 'meta_page_update'? > > Hum not sure about that change. This was really to identify if parent of > rb_irq_work is a cpu_buffer or a trace_buffer. It can be a cpu_buffer regardless > of the need to update the meta-page. Yeah, I just meant that is "for_cpu_buffer", not "rb_irq_work is_cpu_buffer". So when reading the code, I just felt uncomfortable. Thank you, -- Masami Hiramatsu (Google)