Received: by 2002:ac0:a5a7:0:0:0:0:0 with SMTP id m36-v6csp4896163imm; Tue, 7 Aug 2018 09:05:24 -0700 (PDT) X-Google-Smtp-Source: AAOMgpcfRjLW0eoMxIRl1RSZf22ERGRUdC3MGspe3TThj2B0sAbqeaU4sXanFUHEAqaK7TvNQ87U X-Received: by 2002:a17:902:740b:: with SMTP id g11-v6mr18425481pll.85.1533657924093; Tue, 07 Aug 2018 09:05:24 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1533657924; cv=none; d=google.com; s=arc-20160816; b=B9iu6JoQqFxpKXl/EqwJFg5KqNwASxKv2GP7l5w+8JD+XwfbjPAJdHq7I7Do4Wotrp RGvF8spiXshzOcZR95bl26OWy1h1nvPAnoc42h3F5dvtNMJ7BKUOXheV0w/a/BdAjL3S e2GL9c/M3/jB0DrrZ6ah+bLOQwScJfsrS5bRSqO/9AHfTI/CLCYf67/dp59xHTZT6D8g dDczS8/tJQr+iT27fkZJXHmM/+gcjl04tImtXwcwP7S0DhQCYOVqIWYM9N5TpeXVLMLM FU8O1vx4U6Fz8UhRs9CJsSLEiuNh/TloHuwKBUmP3qcE20lMgr8MNLz+BIot98M4Ic8i ayAQ== 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=QJFgZNXOYz+GT8RWkfLnk8rfu5bonc1l91EpROatyjk=; b=fcgfPW1waG+uYNVY+rV4I30Eef6W7JAGRXo9M64PM2F9Q7zRGGK6lVNwzd5i2hMA0D QAOqt7QTbn4iH7UPQOmKCmf1Fe+kZK5COv9SjBLu2zUgV0b/8fQm1ZH8BIJlIWb1MSQl 3B6LJj7+piK3gLvggg1rnHX1BOQXAWWefQk7f9+yXnUhdxqWTjCN5kEBdAeTk8aVeECW fD0XlO4ONwchgED5jXteVklAlNkWxcU+dcEOmTer+hcBmoiPN5Bn4dlMSzXs26BQGiQi dY1F1p06IvuoQZ6+5BgiHfXgXMxaglrzhb7VAcogkJYn2Cm3MnWvPIHbdfgnTq+t/Wpo 6jmw== 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 2-v6si1842886pgq.479.2018.08.07.09.05.09; Tue, 07 Aug 2018 09:05:24 -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 S2389325AbeHGQEW (ORCPT + 99 others); Tue, 7 Aug 2018 12:04:22 -0400 Received: from mail.kernel.org ([198.145.29.99]:42144 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727605AbeHGQEW (ORCPT ); Tue, 7 Aug 2018 12:04:22 -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 24C432150F; Tue, 7 Aug 2018 13:49:56 +0000 (UTC) Date: Tue, 7 Aug 2018 09:49:54 -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: <20180807094954.5137972d@gandalf.local.home> In-Reply-To: References: <20180730222423.196630-1-joel@joelfernandes.org> <20180730222423.196630-4-joel@joelfernandes.org> <20180806155058.5ee875f4@gandalf.local.home> <20180806214300.13e63523@gandalf.local.home> 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, 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? -- Steve