Received: by 10.192.165.148 with SMTP id m20csp5326976imm; Tue, 1 May 2018 13:01:47 -0700 (PDT) X-Google-Smtp-Source: AB8JxZrVd0s9OKzGTrZ/H2QEs5DIppFA9KvajvYB4m5cYVHyXo6CBALYzpHNIGWJxwY/B9fseAz/ X-Received: by 2002:a65:44cc:: with SMTP id g12-v6mr13952676pgs.110.1525204907543; Tue, 01 May 2018 13:01:47 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1525204907; cv=none; d=google.com; s=arc-20160816; b=pZ5Avn2FppMW4o3KPyZq/P68PzNyUeCU2mlnWPMUyjIyna7bc2SJqTOiYfReOcCqS5 cVxlCyW8Jg6/flWV6eSsgd1QHYAU4jcLpdpPCj3h2Eq2gBH9NlRgomXDDJlUn5QlCvm/ h/Nahra10oZI68PICLbM6IDoWI+K+Jkt3hrIjy5yGxtfO4iUEViIdj7iyZpcRV2xjVXT wozVMNFZTGFpupznqbNNBOYghlUwbIHOhf+QtQVxf8tWPUegqGwyV4gLvUs996ogeo3l bg6dbAopnel7uWxEZS9dTVYxIcEJPFCvStmYrexSzHyMGUcb4nV6tZ08marMdZsl9wRZ 1UsQ== 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 :dmarc-filter:arc-authentication-results; bh=a2BX6VXg3yuPQwyFE9bquxVm6sPmt7QNVwdIhIu0pyo=; b=0yWbFu4YZotLicJjO2E+ph6cLuca1Wvv2jxLrfw1y7evon+xxT/X7I7j9dWJ8rOpia 4Kb2XFsAsVWr+HxO6/eQT1EwLK0++fDlb4CjmlNxXP4xxrwjFrxqwHr2j662MNrFIijN +zUMQQuu9lZkGNelfiQcJcZaTw+jPEwOHwEyul1m+5Vc0xTqxuTwUo3m3a8jVAURba0K 2h2AtdVu9jZg3bfOGosCdEciqGgAWXBaptg5AqRZPNEuurKFJpf3aeqFWajX12s4zS+P WJ2UBacMBc42ts9AG4TE5VnQApHUV2nD+Mk+JyVGdxjD04ZE/6fNt891McS8gsapdAGK GvHw== 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 u6-v6si10214899plz.461.2018.05.01.13.01.33; Tue, 01 May 2018 13:01:47 -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; 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 S1751360AbeEAUBD (ORCPT + 99 others); Tue, 1 May 2018 16:01:03 -0400 Received: from mail.kernel.org ([198.145.29.99]:36558 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750780AbeEAUBC (ORCPT ); Tue, 1 May 2018 16:01:02 -0400 Received: from gandalf.local.home (cpe-66-24-56-78.stny.res.rr.com [66.24.56.78]) (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 73814236FF; Tue, 1 May 2018 20:01:01 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 73814236FF Authentication-Results: mail.kernel.org; dmarc=none (p=none dis=none) header.from=goodmis.org Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=rostedt@goodmis.org Date: Tue, 1 May 2018 16:00:59 -0400 From: Steven Rostedt To: Peter Zijlstra 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: <20180501160059.6df6aae4@gandalf.local.home> In-Reply-To: <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> <20180501194838.GK12217@hirez.programming.kicks-ass.net> X-Mailer: Claws Mail 3.16.0 (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 Tue, 1 May 2018 21:48:38 +0200 Peter Zijlstra wrote: > 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 :-) Great! Nicholas, I know this is an old patch (from last November), but want to send it again with a proper change log and signed off by? -- Steve