Received: by 2002:a05:7412:e794:b0:fa:551:50a7 with SMTP id o20csp652677rdd; Tue, 9 Jan 2024 15:57:23 -0800 (PST) X-Google-Smtp-Source: AGHT+IE8JtDBHz2lqsXtYVSUze80iPtFiG6qPS7yk/E2Fuu8izN4AO6j0OFQ4Ouf0indNQ8iEdUk X-Received: by 2002:ac8:59c4:0:b0:429:b248:ea6e with SMTP id f4-20020ac859c4000000b00429b248ea6emr256399qtf.117.1704844642797; Tue, 09 Jan 2024 15:57:22 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1704844642; cv=none; d=google.com; s=arc-20160816; b=cweJmjd1jrFkxHVGRKb/EVRmWbJLVJ9GDT9oa/oFZkQRVA1gCcUGngloALvUGwhhPq RsvyhIas5JizAh9yVMSQMBZyfgso55iehdRc/gaSAmtv+uUCGCF74yNbKf6/CE2TcH8L wZpLp6rVrVhKfa2tw8kqRiQnup9EoSf2/YtBUZkWTeC0HV/dULMePc76ZW6NylUddabS 1220x8w3B3JeU+OFd7HgsjfG4TKW31vDJvx40VC6294oQoYuQ/OgtHcQsCgxOkqgMH8F SWXZKGcn59UAGuWchKQ9HtQEUXamL0hbjAjt//DRPzSfNZD/bXtq0jug7UbLcGZh8yda OCyg== 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=VXHUHBznO1OY8o26iSrPILQItlRroVRAdL46zXZuRVo=; fh=RgzLGBoasBFBaYzygqDfqjTbi/jF4k8V6Y1cJQMO4QE=; b=QyjCot9il933KqQLqKDb9KhoDjQ3ET1/3+0Aj2prhDv2uMWxMFOHvCQ0NAfQGI03vs cVfY/sqVA9Hv4xt4qUmAnBdARr9YLLyVX5CC2NtJlQ+3UGVI8XK2rxQ4kvRVDCdEM2Kd 9KvsBhSNe2+51hJ+LeRq9zP2tH+d/0HJNzUY+J+Ec1K4LzvHRxwGITNrIcYJxj53wkws mqsxOWmFc4x2qHPbLZFdXL2VEPTWsTQVGU63qr3ZKB+T8duenSjg10d1cqFHDplDUiiY CxK+NjmktGOl8OBZ6LQ+cO32b0hTqdhcwZoN+7VayU3MDvSLsX2c0sDyuigfLnQ7w96T /b5g== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel+bounces-21555-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-21555-linux.lists.archive=gmail.com@vger.kernel.org" Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [2604:1380:45d1:ec00::1]) by mx.google.com with ESMTPS id cn6-20020a05622a248600b00429aa10bf11si2116336qtb.214.2024.01.09.15.57.22 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 09 Jan 2024 15:57:22 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-21555-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) client-ip=2604:1380:45d1:ec00::1; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel+bounces-21555-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-21555-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 ny.mirrors.kernel.org (Postfix) with ESMTPS id 8F24C1C23D79 for ; Tue, 9 Jan 2024 23:57:22 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 68A983E496; Tue, 9 Jan 2024 23:57:16 +0000 (UTC) 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 EFB95364B5; Tue, 9 Jan 2024 23:57:15 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id B6B77C433F1; Tue, 9 Jan 2024 23:57:14 +0000 (UTC) Date: Tue, 9 Jan 2024 18:58:13 -0500 From: Steven Rostedt To: "Masami Hiramatsu (Google)" Cc: Vincent Donnefort , 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: <20240109185813.5e071eab@gandalf.local.home> In-Reply-To: <20240110084205.2943f88bf8b797b04297b0ae@kernel.org> References: <20240105094729.2363579-1-vdonnefort@google.com> <20240105094729.2363579-2-vdonnefort@google.com> <20240109234230.e99da87104d58fee59ad75c6@kernel.org> <20240110084205.2943f88bf8b797b04297b0ae@kernel.org> 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 Wed, 10 Jan 2024 08:42:05 +0900 Masami Hiramatsu (Google) wrote: > 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. > How about "in_cpu_buffer" as that is what it is. struct ring_buffer_per_cpu { struct rb_irq_work { bool in_cpu_buffer; } } Would that make you feel more comfortable? ;-) -- Steve