From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail-wr1-f49.google.com (mail-wr1-f49.google.com [209.85.221.49]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 8DD9A3E0C72 for ; Wed, 11 Mar 2026 15:23:32 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.221.49 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1773242614; cv=none; b=VaOIVuMivjjESqw8P3qKqI2xabhp8CW6jvbIusVBeKnQKgMB2rqNa6K4FXlm94RpuyyvW/vypEuPfNgHuCwHFNwexfg4sslWeThpciK+QIN9DR5v+0IgiiIBjIa8JQ0iZGlKkbHzLiKKb3k3IOrdnU4+/p7DnKMK0n0pDgXNois= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1773242614; c=relaxed/simple; bh=Z+GkvsxIGO1i8VGlHtLFZtvWWVWC8f8GiQAoIj6Szb4=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=pl91xKgIsZoqcqeSVY+pQTy6QDFwtMCIVfKDANUdj6akq2OFklorJbqJSzLZmenVE5PK9J81uLoJYkm6JskpqPwIBQszOiYsekY3r7hZ7/j+uPT/Y/qOQQqhaQ4fqeWypnj/B3t56FmOIX/HKEjc9DzqLWrwrGQm5/79F4Jjaps= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=google.com; spf=pass smtp.mailfrom=google.com; dkim=pass (2048-bit key) header.d=google.com header.i=@google.com header.b=m6jzTegW; arc=none smtp.client-ip=209.85.221.49 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=google.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=google.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=google.com header.i=@google.com header.b="m6jzTegW" Received: by mail-wr1-f49.google.com with SMTP id ffacd0b85a97d-439c5b40f60so6315f8f.0 for ; Wed, 11 Mar 2026 08:23:32 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20230601; t=1773242610; x=1773847410; darn=vger.kernel.org; h=in-reply-to:content-transfer-encoding:content-disposition :mime-version:references:message-id:subject:cc:to:from:date:from:to :cc:subject:date:message-id:reply-to; bh=M1n477ll3uIr3ftc1SUKSWN3qMH5BQQpUlgTcrO/W9I=; b=m6jzTegWhceMJ3V5H4UNQjzhgheyNTfnmPjE0vkyA++OA8tVzuM10bvq/bXlosQfJC X3aL1a1C5RybjxYTpsIgt+CqMgOfWzaPJr37cO2SUjRWgfIdizhuBzrqYOdW4+34ojIm sCo4B2oJTD7DV+/fXzRPksKTwTguPfKh4L5OyWIwp2LjpZvpMwQSquZxYhDruDTpSadU DxN+vGlAfzdn6j3BaXBF4uXXhMivyf4rX0o3yFzj49RWamQvfi5T8SWBT1QXA/wIIcYP zpaHBfDH1QeWutUFmNs6zQ+gsiIdhb/WJI2pNGifw7r74LSFL71EADuAlAa6lwRwZzXB lQcw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1773242610; x=1773847410; h=in-reply-to:content-transfer-encoding:content-disposition :mime-version:references:message-id:subject:cc:to:from:date:x-gm-gg :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=M1n477ll3uIr3ftc1SUKSWN3qMH5BQQpUlgTcrO/W9I=; b=lsRVZ25/LjIlhIjBA+uwW9b59FHt5nRlvrB9uHnSLsMDza8Dx0Kxsl5vDJYMM52u1L S/aWQCaeqYun8+m+6YLxiBlI7mzqYffhCwJ/s3oFQub2mlFDxjjh7aGM5/gvlWM6hzsY E3G8XqwvGUJKgMvuVhaObyYwZAQQjVEWVsDdbWTAFmX60SWoilAUX/knBTyio2B4234N 7rY5mVwNd+lk+aP50rtXosO0wXDcXQayXOrR87OM5775cDtULstKi0u+JFAmo1hwUY2u BalFsCzJoJsp//Dp5kbK52CMxW1NQKbVT4W9BD5GnDzUtDjtLJWMJYf4r8bZLRoYHddf SEkw== X-Forwarded-Encrypted: i=1; AJvYcCXI3jFMlytuUPsZwG6za7rJdtMOothAdRSB3eqTzh8tTYjnqnpgIqotM/Xn03jGKNnm7SNwao1YgxFwb2g=@vger.kernel.org X-Gm-Message-State: AOJu0Yyasio2hlSpEFAZNV5DjaDQWTcsxofBQJC4iA1ibpMTrhBy/53R ljy6+5fA2hvUxAZfzrfieENoPJtBJv5o/QF8L/iyFc0lte8o2H1Cvbbo9h1vqrAhxA== X-Gm-Gg: ATEYQzzUpfjJVNs7twnvxfUxqG+fBzygpQap6nsM32MbwTf2ooAshNKpqzDoMY0xgW/ wZXcHfyfKMXEs7ZgjxldwfES0CpR6YAuqZaA2PFfpL0DBEjfX5zml9MFxbO+f+aFR19DQz4WfvS 0Io8viI2RWYjT1zPaWMIn2cdPKDOo09eio6nwcNs7cC8gNV2nbjuDMDVJUVYzHrfqibpju8ttBO xK1cGDAJEfv7c29mJMNalWylEkw0vlalLws/looXBeJEEeJkegD7RddQYMx4iQv7Iykz417QKyX PkJPn9CkwuO57DzpgXw+ngerVQlbV8NLQsoqsRSFG0+qCHNxwdsnMtTNBMmJFiCrPJwMfrGU517 o+pXGxh6MY8Ros1G76nMqRhEH1uLUWKNMbfEkH+tUK8AfRnTODB3vnff0NDRzGzzsK5TcLNtgnL Srja7lTi+zczperhdSqbnYd4hmcpPNuN9b2uIqFyZPV9ooNoWjAjEsl2rV5SgPHo7oEoQ= X-Received: by 2002:a5d:5d85:0:b0:439:b715:6f49 with SMTP id ffacd0b85a97d-439f8415ffdmr5618431f8f.59.1773242610090; Wed, 11 Mar 2026 08:23:30 -0700 (PDT) Received: from google.com (198.115.140.34.bc.googleusercontent.com. [34.140.115.198]) by smtp.gmail.com with ESMTPSA id ffacd0b85a97d-439f82078a1sm9543853f8f.29.2026.03.11.08.23.29 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 11 Mar 2026 08:23:29 -0700 (PDT) Date: Wed, 11 Mar 2026 15:23:26 +0000 From: Vincent Donnefort To: Markus Elfring Cc: linux-trace-kernel@vger.kernel.org, kernel-team@android.com, kvmarm@lists.linux.dev, linux-arm-kernel@lists.infradead.org, Joey Gouly , Marc Zyngier , Masami Hiramatsu , Mathieu Desnoyers , Oliver Upton , Steven Rostedt , Suzuki Poulouse , Zenghui Yu , LKML , "Aneesh Kumar K.V" , John Stultz , Quentin Perret , Will Deacon Subject: Re: [PATCH v13 03/32] ring-buffer: Introduce ring-buffer remotes Message-ID: References: <20260306143536.339777-4-vdonnefort@google.com> <677c7ad6-6e67-4011-b2d0-03d0d58547ce@web.de> 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=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <677c7ad6-6e67-4011-b2d0-03d0d58547ce@web.de> On Fri, Mar 06, 2026 at 05:37:35PM +0100, Markus Elfring wrote: > … > > It is expected from the remote to keep the meta-page updated. > > See also once more: > https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/tree/Documentation/process/submitting-patches.rst?h=v7.0-rc2#n94 > > > … > > +++ b/kernel/trace/ring_buffer.c > … > > +int ring_buffer_poll_remote(struct trace_buffer *buffer, int cpu) > > +{ > … > > + cpus_read_lock(); > > + > > + /* > > + * Make sure all the ring buffers are up to date before we start reading > > + * them. > > + */ > > + for_each_buffer_cpu(buffer, cpu) { > … > > + } > > + > > + cpus_read_unlock(); > > + > > + return 0; > > +} > … > > How do you think about to use another lock guard here? > https://elixir.bootlin.com/linux/v7.0-rc1/source/include/linux/cpuhplock.h#L48 Sorry, I forgot to reply to you. I had to respin a new version so I have made the changes you've suggested. Thanks, Vincent > > Regards, > Markus