Received: by 2002:a25:8b91:0:0:0:0:0 with SMTP id j17csp892954ybl; Fri, 31 Jan 2020 09:52:20 -0800 (PST) X-Google-Smtp-Source: APXvYqymThvbxRY7gcqpZCxAZQ90+MaWO+zoFl6pd03KrFX+FDd3ZKtNjOAfQDdLRWdE/5cknhxi X-Received: by 2002:a54:4791:: with SMTP id o17mr6798918oic.70.1580493139935; Fri, 31 Jan 2020 09:52:19 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1580493139; cv=none; d=google.com; s=arc-20160816; b=dKvvDF87krzvcVRhwurYPURTtHzO9GIoOICadTfA++B1SGJ8Q5JiBMpTgL4HKYdgLV OKON+odUJFynOMIMzWzKVEkYX2buc/HkHRCurnri4jDWjiB2RsnIZ8ofU8C9rl2vEby4 PrA14ewu+EasbaBmN2wVCpOXd4ug7+e30w/5tNch65zqRt3wlfd7qtQXWK2xCK/qdPNm Z68zCgohR2GNf09xkwO9Ycl4eOAQgYUvw5JFFW9MscgFG85m86/jDUH+TSLJj5YIacBT HJKRIY/HU+8Lxwzl/YMCOx8nMsOFvtrG09UHXRVqbFWyO4QU4jXRlzLbmC0fLjMdZYnj 9ZXw== 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; bh=Vz5wtENFB3Pfgjj7b72HdXiudeBdOHETXUq0ylnsXUY=; b=sxqUuLN2RKy/jYLEQku+S3g8SLb8ojacp+4xmvEcEI3i+jrrCz2IswZUKksM6T9M34 amg2P+qQBr7qaCgfaw/1izzNhREF1mJfi3a6JAKhHglAZa0uW4ATLgaz51/xGB6qCEvA W7rU/mf8cJw60SPU/gNINVrD0b6h1QQVdECYPhBNsj0iALtN3KY2XraPfZli1S31yqNZ q8KoSnV9yT8s/uCSB0Om2ZKw3jmDzJv+GdOZwxjDck1aPG61PHshz5c9zplIpvle65Bz bqXBu08b3wxm0TysBdZ+i27WH6EDDMmsEoAjstCri7v/di811jvZMj9HVv+uEv0FwmWh uK0g== 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 k205si1347567oib.64.2020.01.31.09.52.08; Fri, 31 Jan 2020 09:52:19 -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 S1727140AbgAaRvJ (ORCPT + 99 others); Fri, 31 Jan 2020 12:51:09 -0500 Received: from mx2.suse.de ([195.135.220.15]:44028 "EHLO mx2.suse.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726803AbgAaRvJ (ORCPT ); Fri, 31 Jan 2020 12:51:09 -0500 X-Virus-Scanned: by amavisd-new at test-mx.suse.de Received: from relay2.suse.de (unknown [195.135.220.254]) by mx2.suse.de (Postfix) with ESMTP id C5661AD95; Fri, 31 Jan 2020 17:51:07 +0000 (UTC) Date: Fri, 31 Jan 2020 09:40:56 -0800 From: Davidlohr Bueso To: "Paul E. McKenney" Cc: josh@joshtriplett.org, linux-kernel@vger.kernel.org, will@kernel.org, peterz@infradead.org Subject: Re: [PATCH RFC locktorture] Print ratio of acquisitions, not failures Message-ID: <20200131174055.slzlp33qeefbzgdw@linux-p48b> References: <20200123172707.GA24441@paulmck-ThinkPad-P72> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii; format=flowed Content-Disposition: inline In-Reply-To: <20200123172707.GA24441@paulmck-ThinkPad-P72> User-Agent: NeoMutt/20180716 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, 23 Jan 2020, Paul E. McKenney wrote: >The __torture_print_stats() function in locktorture.c carefully >initializes local variable "min" to statp[0].n_lock_acquired, but >then compares it to statp[i].n_lock_fail. Given that the .n_lock_fail >field should normally be zero, and given the initialization, it seems >reasonable to display the maximum and minimum number acquisitions >instead of miscomputing the maximum and minimum number of failures. >This commit therefore switches from failures to acquisitions. This makes sense, thanks! > >Reported-by: Will Deacon >Signed-off-by: Paul E. McKenney >Cc: Davidlohr Bueso >Cc: Josh Triplett >Cc: Peter Zijlstra Acked-by: Davidlohr Bueso