Received: by 2002:a25:7ec1:0:0:0:0:0 with SMTP id z184csp3501944ybc; Mon, 25 Nov 2019 15:51:35 -0800 (PST) X-Google-Smtp-Source: APXvYqzLr0zEpdT/hd28paAZmrQp4zQVBiU3E9wrPG7iKt0cFThi+2UZrlzE7Xq/2FTZhLn4VHiT X-Received: by 2002:a50:ac14:: with SMTP id v20mr21806639edc.291.1574725895191; Mon, 25 Nov 2019 15:51:35 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1574725895; cv=none; d=google.com; s=arc-20160816; b=anCHGWXyH5+fExgbWKjgswlu9sDf6NT9ScLnO8eoj3ETYZzIM/qvc5ufFcQS3X0mG6 qn5a0b/nZOwYua/+hvO04tVe8qnuiAgKFaBbe/XYab7vU4seHo82c/4+y5ZqDRBYY7sO SnWdkoe18AeY+Q11oGf2EZxMY5cIQeqjky0ka6gHjMVAM4FOE3Sn/iK2r9s7M5riPJij 1zih1sVOcYqoMh1oF0nVgQpp74CNtpqWV8znafG/P109dtC4nBaHI4qk1/c/ktLViO29 qfkH6UiadlMzzYxIA1vvIlRUoK3wnz6X7L7gc3nBzZEE8gs0orQ+imYUpP4kzLFndUop VVmA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature; bh=rvY24eePNZt+ycJ3AFHByDgIP1Rv1kswbJLitykNPsM=; b=0m41fItS2Fv3d8DhNQl6t1Dw0ZtA5lk6sw8C0yXHArA5KUn5sDP12FH2dRtDeuxcQk B/y3+vQGJhVGOFAf6tkIiSBmnWZlzHeVTq/ZhDrQsveQbPnRG26RRfJPVPPoCTF7qFxs D1SY+O4wKbzMl6/Vy9t0dnpQj1h7I0XsffGxoDZHij5NQ9vMMbBr+0ake9dQ3Ql5Ka/2 chLt+xPgXS087+spMbpZb2t+uZKK6w/j5G+sx/65LAy57kIpfeXFBZ+REToqX+cqt3bl 9cj7Luvko5eQ2V+4KLJQhBmaKcy5xKzrwk7vRM3y68n0jQ5RREwfLe7klihFZsiikwCT kNMQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@generalsoftwareinc-com.20150623.gappssmtp.com header.s=20150623 header.b="i0RI/OVo"; 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 i13si5748521ejz.428.2019.11.25.15.51.11; Mon, 25 Nov 2019 15:51:35 -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; dkim=pass header.i=@generalsoftwareinc-com.20150623.gappssmtp.com header.s=20150623 header.b="i0RI/OVo"; 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 S1727079AbfKYXuB (ORCPT + 99 others); Mon, 25 Nov 2019 18:50:01 -0500 Received: from mail-vs1-f50.google.com ([209.85.217.50]:40056 "EHLO mail-vs1-f50.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725946AbfKYXuB (ORCPT ); Mon, 25 Nov 2019 18:50:01 -0500 Received: by mail-vs1-f50.google.com with SMTP id m9so11448769vsq.7 for ; Mon, 25 Nov 2019 15:49:59 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=generalsoftwareinc-com.20150623.gappssmtp.com; s=20150623; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to:user-agent; bh=rvY24eePNZt+ycJ3AFHByDgIP1Rv1kswbJLitykNPsM=; b=i0RI/OVoO7H3VElF3DlRBwGuB3cfc8g9JH8Uw3W07sxlXmrk86lAYmebUQPbd5jguf lkmeffv+K/+4Oqcti7XGhYWjIclq6r88iI7Dk37KxTTIMJMgYGCILYmXFyUkZ0Dmv0cy ch41cP7PD8jkpkdM36QQWaCzzJDgtxySyhRSb7emi2vrKAtewWDm/xZ70UOJ2tT+q/n2 iQNblP857cmJkw9m/GB3WuM9KXviy4YTFVHZYu20ujMl/zfDgn4udKZjgqr5YI0g95hT NY4oS35utxZZlxsWY02jvIBWVoNJgKTXrY/rA/IFhYgdsPYgmg23o+8KZ3PlzvxVXO4P +9fQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to:user-agent; bh=rvY24eePNZt+ycJ3AFHByDgIP1Rv1kswbJLitykNPsM=; b=G4Wmt6hlC3g3i3JJVElT4IIHJC8c5DWHXKgOSXDOXNZI7QGETqW1i84G1L8/va5PUs M2fM9OxlMAa5Dt3qZyE/BMW7lwSn9050x9qpKrZgZI+t76jYYWHNhY0V4N1VD9yEFubq /rMSpT4JnO7xy6I04yKGElfqpIXmgywGETVmCghJaSGt0txOXRalqxoeKug2RuKAgvF3 ignqr5FXnaLecdzwrU+CkCcR8oCSNT2V2HevxpsJPoFAKiCpIKRQ3rgZW6hFsyEx0JxY 8ciO4pMcBhoEb2WqIdt/1wlWiM0CMpVQ7ih95w3htqz53t+JEuCbJp4aFU/a4tucTzRy mUyQ== X-Gm-Message-State: APjAAAVJYW6lr5R0CTvN7pGNwJNW0fZax6LuaAx1R58FcikPVvD4IY6+ k3d44BnQaqv7N4WzX1XOBGm63Q== X-Received: by 2002:a05:6102:c3:: with SMTP id u3mr20993889vsp.41.1574725798720; Mon, 25 Nov 2019 15:49:58 -0800 (PST) Received: from ubuntu1804-desktop ([172.97.41.74]) by smtp.gmail.com with ESMTPSA id c21sm2606280vko.45.2019.11.25.15.49.57 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 25 Nov 2019 15:49:58 -0800 (PST) Date: Mon, 25 Nov 2019 18:49:57 -0500 From: "Frank A. Cancio Bello" To: Steven Rostedt 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: <20191125234957.nwbzz72aarbhdni2@ubuntu1804-desktop> References: <20191125123709.5eff70a9@gandalf.local.home> <20191125164625.01101109@gandalf.local.home> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20191125164625.01101109@gandalf.local.home> User-Agent: NeoMutt/20171215 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, Nov 25, 2019 at 04:46:25PM -0500, Steven Rostedt wrote: > 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 ;-) > What are the odds ;) I knew about the concept https://en.wikipedia.org/wiki/If_and_only_if from school math but didn't remember the notation. For me was suspicious so, I looked in "the cmpxchg doc" and nothing referring to "iff" was there, then I decided to classified it as a typo. Now thinking more deeply, I agreed with you that was not a typo but a "logic mistake", even not for the same reason ;) Being not 100% sure of what I'm about to say, I will say it anyway because you have been kind enough to write the second email. "if and only if (shortened as iff) is a biconditional logical connective between statements" and A = B can't be considered a logical statement in the context of that definition (math/logic), even it could be in C. Thank you Steven one more time for such a quick reply! frank a.