Received: by 2002:ac0:a5a7:0:0:0:0:0 with SMTP id m36-v6csp4801707imm; Tue, 7 Aug 2018 07:35:19 -0700 (PDT) X-Google-Smtp-Source: AAOMgpcE+4rYm/sKOYf3upyVI+3i/K9E6Mzh31iurdFjTzdzZ7S13Dsrxqzz0qIOY1+U8JrLGAAw X-Received: by 2002:a17:902:7e45:: with SMTP id a5-v6mr10971646pln.151.1533652519556; Tue, 07 Aug 2018 07:35:19 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1533652519; cv=none; d=google.com; s=arc-20160816; b=z6a0iOHX8AitcdYT4yoQjeLmryNREefxhv3mkBrFJxdR3ISL+k7Yq2A8R1CbYbz3UQ Sr9I+0EomPwQPFe+tz3OG/ztykH2uaVptgWfqva6S7GxvegK/PiN7lKp1Btlg6Wc3xxD X8L0BJm5alL/ZxZkV3/11wazCOem2urHjpE+w0aUz7g8oZRdYTpORpPkTvpOJLUqzccu uTDlwIEQOs5I6FM8B3aGLcOFVh/epE8w8TgsC/jLJcGg4DOyALrPsTc/KcZPHk5IvGIY aU4gneJkVk9ootdolaChyWtfpjbdjvdBcF6m86zhKTdyDiQcuupiVmylg2NcGdW7OqvP 935w== 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 :arc-authentication-results; bh=LExWOU+AmWjpW5jRz3g/I8YkE5EDFj+/OQXYg+XLq+o=; b=WYb5UepGlPYJH0MqOJoLIcDEWVnTltViX+Tvauo5ypvCImYecqrFIX/G3+pk23YpxV gR2KsCHQBch4T/37CRN522n7jAomCh/6ndjA/2Km53frOe0RUimmv+z/CKitaEs0TrBI qS++eXIN/0WM2yS4EOUCHBMoN71eqePtzIvvUg+mDHMd/L1lqh/B/YePFQftiqA9VQA8 dNGQJyCTDeG80CLaI6yI/NNrBDYg5T3lWpgl6QsNpepCE0H7vesg6l0/IZBQXC9zJm2R L3FD+y8T4cdyBKEo0EaIsBoKsgM0FNtEXj7vXTkJWbEtLNtRkL+nXHvnu40ZJKmqmg6D AlUg== 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 v19-v6si1699811pgh.36.2018.08.07.07.35.04; Tue, 07 Aug 2018 07:35:19 -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 S2389610AbeHGQsv (ORCPT + 99 others); Tue, 7 Aug 2018 12:48:51 -0400 Received: from mail.kernel.org ([198.145.29.99]:53820 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2389575AbeHGQsv (ORCPT ); Tue, 7 Aug 2018 12:48:51 -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 1D936217B7; Tue, 7 Aug 2018 14:34:13 +0000 (UTC) Date: Tue, 7 Aug 2018 10:34:10 -0400 From: Steven Rostedt To: Joel Fernandes Cc: Joel Fernandes , LKML , "Cc: Android Kernel" , Boqun Feng , Byungchul Park , Ingo Molnar , Masami Hiramatsu , Mathieu Desnoyers , Namhyung Kim , Paul McKenney , Peter Zijlstra , Thomas Glexiner , Tom Zanussi Subject: Re: [PATCH v12 3/3] tracing: Centralize preemptirq tracepoints and unify their usage Message-ID: <20180807103410.4fe203cb@gandalf.local.home> In-Reply-To: <446AE5F2-39E0-46B6-8E0B-207E003DBF20@google.com> References: <20180730222423.196630-1-joel@joelfernandes.org> <20180730222423.196630-4-joel@joelfernandes.org> <20180806155058.5ee875f4@gandalf.local.home> <20180806214300.13e63523@gandalf.local.home> <20180807094954.5137972d@gandalf.local.home> <446AE5F2-39E0-46B6-8E0B-207E003DBF20@google.com> 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, 07 Aug 2018 10:10:59 -0400 Joel Fernandes wrote: > On August 7, 2018 9:49:54 AM EDT, Steven Rostedt wrote: > >On Tue, 7 Aug 2018 06:33:35 -0700 > >Joel Fernandes wrote: > > > >> Thanks, also one more thing I noticed in your patch, > >> lockdep_hardirqs_off needs to be called before all other probes but > >> you're calling it after. This is why I registered it with INT_MAX: > >> > >> register_trace_prio_irq_disable(lockdep_hardirqs_off, NULL, INT_MAX); > >> > >> Without it you may get annotation warnings. Thanks, > > > >Interesting. I was following the old way where we called the tracing > >code before calling the lockdep code (all hard coded and not from > >trace events). Is this have something to do with calling the code from > >a tracepoint? > > > >Do you have an example that could trigger the warning? > > > > I remember the warnings but can't remember now how I triggered them. > I think I saw them with the irqsoff tracer or irq trace events > running, with lockdep turned on. I'll see if I can trigger it. I'll run this all through my tests. > > Also an irq disable probe that does a lockdep assert that irqs are > disabled could trigger it? > You mean if someone add a tracepoint callback to the irq disable tracepoint, and did a lockdep assert to make sure interrupts are disabled? -- Steve