Received: by 2002:a25:7ec1:0:0:0:0:0 with SMTP id z184csp3392161ybc; Mon, 25 Nov 2019 13:48:06 -0800 (PST) X-Google-Smtp-Source: APXvYqwtbSb8vbq9LxJNz+hv79+bdigZyxfTVn17IgKdHmawKO5vhfJxuuGIgCDkh/iVQ6ovdfNF X-Received: by 2002:a17:906:80ce:: with SMTP id a14mr14332753ejx.118.1574718486700; Mon, 25 Nov 2019 13:48:06 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1574718486; cv=none; d=google.com; s=arc-20160816; b=ZdKk1BnZ5WajB+jbH5zSVjGndx58HzQlCzI6MOr36wmJRt8nsmuR3J8gENfoNaqJUA WJWA/cM8zNXxinNVm79xO9WwrptZ9nDJ5QQ1pBycRRESTKhVTiGgU8tsArt2AQFzsVn7 GXmAUuoQpQimw4IdaVoFWoy8xFK/NOo1TCV0ITC62Nn+20PeeSnITl1MY/7znrX43dg0 tksyXuEsl+89WVUFyOCrOIzkhSKddlq0xzKpNgFgmTONOB1AZk/fBSuUA/iJ2Fm9ASsu CwkSKBNPywe29KztkKziBqliLWNLm49lNr2S24m798R1ThCHzmze5FPmDBefo91XbAYz ljLA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :references:in-reply-to:message-id:subject:cc:to:from:date; bh=0qEZCXd2DXwckiQJgx5Km6mPKbuvfhMhNwvx5Z6YPNI=; b=yvMpsz7qplxH+XLBaxnjGlnbbG2C4By3D9efshsH+U5LQqdaUReBS9UalAqIv7ZPIh muK6vmwTp7blPTQDmDMLx20w7UA9xSUEHRBKrued6g2gxc9oD6dU6x4pJJVL13Rcm4zI 6QZlA4GvF1Jp8YybiuwoxdtXbcq/zmtMUVbqm5yEuhZddmd8XHDbArVodMzp5tWsfT9B f5ENHQO5eG1KWAGC6bI7YfM7u384s7yqjDYlZxMeRrJZsjiHPxD6NplpuuMJ9EJMr/UA 7DjXGXYYnbZwYAePyiVOZKfBRFK4BoDf2vWKF4t2YnlQPwpY7uhliaekGt5qnx3zVNiJ KIGg== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id a16si5732758ejb.55.2019.11.25.13.47.40; Mon, 25 Nov 2019 13:48:06 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726033AbfKYVq2 (ORCPT + 99 others); Mon, 25 Nov 2019 16:46:28 -0500 Received: from mail.kernel.org ([198.145.29.99]:34736 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725912AbfKYVq1 (ORCPT ); Mon, 25 Nov 2019 16:46:27 -0500 Received: from gandalf.local.home (cpe-66-24-58-225.stny.res.rr.com [66.24.58.225]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 9405E20706; Mon, 25 Nov 2019 21:46:26 +0000 (UTC) Date: Mon, 25 Nov 2019 16:46:25 -0500 From: Steven Rostedt To: "Frank A. Cancio Bello" Cc: Ingo Molnar , Jonathan Corbet , linux-doc@vger.kernel.org, linux-kernel@vger.kernel.org, joel@joelfernandes.org, saiprakash.ranjan@codeaurora.org Subject: Re: [RFC v2 2/2] docs: ftrace: Fix typos Message-ID: <20191125164625.01101109@gandalf.local.home> In-Reply-To: <20191125123709.5eff70a9@gandalf.local.home> References: <20191125123709.5eff70a9@gandalf.local.home> X-Mailer: Claws Mail 3.17.3 (GTK+ 2.24.32; x86_64-pc-linux-gnu) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, 25 Nov 2019 12:37:09 -0500 Steven Rostedt wrote: > On Sun, 24 Nov 2019 23:38:41 -0500 > "Frank A. Cancio Bello" wrote: > > > --- a/Documentation/trace/ring-buffer-design.txt > > +++ b/Documentation/trace/ring-buffer-design.txt > > @@ -37,7 +37,7 @@ commit_page - a pointer to the page with the last finished non-nested write. > > > > cmpxchg - hardware-assisted atomic transaction that performs the following: > > > > - A = B iff previous A == C > > + A = B if previous A == C > > This wasn't a typo. "iff" means "if and only if" which is a standard > notation. That is, this is shorthand for: > > A = B if previous A == C > previous A == C if A = B Although thinking about this more, this may not be correct. If previous A == B, then A = B, thus the "iff" notation is not actually accurate. This wouldn't then be a typo fix, but a real fix to the logic ;-) -- Steve > > > > > > R = cmpxchg(A, C, B) is saying that we replace A with B if and only if > > current A is equal to C, and we put the old (current) A into R > > --