Received: by 10.192.165.148 with SMTP id m20csp5315593imm; Tue, 1 May 2018 12:49:10 -0700 (PDT) X-Google-Smtp-Source: AB8JxZpMxI8kpuypdFGlzTi0bDBrq031hOTMGXj1dZNpdFgYnMU3ap/DGpsC0vCdJlwIgq9UPBYu X-Received: by 2002:a17:902:4603:: with SMTP id o3-v6mr10890864pld.49.1525204150853; Tue, 01 May 2018 12:49:10 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1525204150; cv=none; d=google.com; s=arc-20160816; b=ugSKpAfoy6zcg+JkUahCN3hv3dlgf0sF6qooIgJRsm1y9BAhcOqtPIbM3q+3lo9nrf gBxYWRpIu3tFvn9yoE8VnhbstGEqglacOYZ5eHMiBZNIDABA91EqxIPfUX/9krZymPpE JN7TjIW3OPh9T7SetS1DxDjFGZ348V/8C8pCCP7XM3esRdQBO99GsL1HOauuW4RrCM0C dp+n0D0V9PR91GxZpW7zKI9k30JAZ6unJkoSATSX7tmXIitHOMqC2JjZ7YAbVy2EHOhs D5a7rbUwWFocpaM7mUy4RtXJQfNsS58BAr/Dn1tGb52q7smgSPBLSu77dKtGPGNcCbGL yrIg== 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:arc-authentication-results; bh=eogNeRltfgpGuWlyarN5u1O/Ld+HU6zxZl35bBxmBnw=; b=ZY1sgrUu6cLp8k2+Lx9Nwa5BO5dJmCU1URo0/LbUYUR8DRkACAqFbe1WtKi6NY6Xv0 OU297iStGnbDzDsHu4Rb0hSVcPmrdvMnqKvzgiO0/rIHdohR4CKx7grfhzbE4Gk7ajux twn/hhUj+6xre9t1GNlQVcZsWGSbHLptd/YpVETvE4f8T8FYr76+TuBBxbOLmrLxg9GN sv8eHnmc9RZz8jlekWZVnDza3PjGA1/y25EtRijeVmxB4hZbJLujsnL+hTkai37SQZMJ HZ4n6a4HWD/gYF27xysCnbKZKITKproQUrF35dg2W5SE4yTMm/uKvTQZgm4JsSsazoQl 169w== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@infradead.org header.s=bombadil.20170209 header.b=gYHX7eID; 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 o14-v6si8588468pgf.174.2018.05.01.12.48.55; Tue, 01 May 2018 12:49:10 -0700 (PDT) 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=fail header.i=@infradead.org header.s=bombadil.20170209 header.b=gYHX7eID; 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 S1751116AbeEATso (ORCPT + 99 others); Tue, 1 May 2018 15:48:44 -0400 Received: from bombadil.infradead.org ([198.137.202.133]:33094 "EHLO bombadil.infradead.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750766AbeEATsn (ORCPT ); Tue, 1 May 2018 15:48:43 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=bombadil.20170209; h=In-Reply-To:Content-Type:MIME-Version :References:Message-ID:Subject:Cc:To:From:Date:Sender:Reply-To: Content-Transfer-Encoding:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Id: List-Help:List-Unsubscribe:List-Subscribe:List-Post:List-Owner:List-Archive; bh=eogNeRltfgpGuWlyarN5u1O/Ld+HU6zxZl35bBxmBnw=; b=gYHX7eIDni9kgiN1pvloPlUyi eClwN9R9r5tOcNiOKJ8pLdCSbK4MhYRUn54PXG9uKe+etfDl7AWE8LAp19e0Kfe/9ArmgdMkRU+2y zT/ifL8GlrbVUkm+NnyJ7QiF5TG7eSvb1qbIhWJBigoiGyrEGLyxIaf/QLkPf8YnmRXc3gnYO40cK rB/vsVwMJIHhh3so8km/MCjscWOEBmWy37HQ1WjfweLkcgC6xHX12VeXWoSK6AWDzHr86WBeNVNIX sQ34cPTuDWogHv5QBcKLuvxrHSm31TkkNG/iB5IrCCHCZPD0gLmL9U/78epRqkDLfkfPih0V+uiJL yzUJIZLAg==; Received: from j217100.upc-j.chello.nl ([24.132.217.100] helo=hirez.programming.kicks-ass.net) by bombadil.infradead.org with esmtpsa (Exim 4.90_1 #2 (Red Hat Linux)) id 1fDbGS-0000Ir-7E; Tue, 01 May 2018 19:48:40 +0000 Received: by hirez.programming.kicks-ass.net (Postfix, from userid 1000) id 3FF1F2029FA14; Tue, 1 May 2018 21:48:38 +0200 (CEST) Date: Tue, 1 May 2018 21:48:38 +0200 From: Peter Zijlstra To: Steven Rostedt Cc: Nicholas Piggin , Ingo Molnar , linux-kernel@vger.kernel.org Subject: Re: [PATCH] tracing/irqtrace: only call trace_hardirqs_on/off when state changes Message-ID: <20180501194838.GK12217@hirez.programming.kicks-ass.net> References: <20171116161506.19691-1-npiggin@gmail.com> <20180501144620.1e832a09@gandalf.local.home> <20180501191951.GJ12217@hirez.programming.kicks-ass.net> <20180501153840.7281022a@gandalf.local.home> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20180501153840.7281022a@gandalf.local.home> User-Agent: Mutt/1.9.5 (2018-04-13) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, May 01, 2018 at 03:38:40PM -0400, Steven Rostedt wrote: > On Tue, 1 May 2018 21:19:51 +0200 > Peter Zijlstra wrote: > > Now, lockdep only minimally tracks these otherwise redundant operations; > > see redundant_hardirqs_{on,off} counters, and loosing that doesn't seen > > like a big issue. > > > > But I'm confused how this helps track superfluous things, it looks like > > it explicitly tracks _less_ superfluous transitions. > > I think it is about triggering on OFF->OFF a warning, as that would > only happen if we have: > > local_irq_save(flags); > [..] > local_irq_disable(); > Ahh, ok. Yes, that is easier to do with these changes. The alternative is to add more information to the tracehooks such that we can do the same internally, but whatever. Yeah, I'm fine with the proposed change, but maybe improve the Changelog a little for slow people like me :-)