Received: by 2002:a05:6902:102b:0:0:0:0 with SMTP id x11csp466524ybt; Mon, 6 Jul 2020 13:54:11 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzziZXT3u38znxOi4feqtF+OKLLTQJf4JfPJDBaQUGv/U1r5rEheSLQClw+8h9ggdtVRBmU X-Received: by 2002:a05:6402:559:: with SMTP id i25mr48948934edx.35.1594068851633; Mon, 06 Jul 2020 13:54:11 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1594068851; cv=none; d=google.com; s=arc-20160816; b=E0q3iYidsu3c1lKoV1EuNGQ89Bljo7ViqHaaZm32pY5lkddzmfdtps19vV9j+wcUOM ktnzCEc4YtaKWKq8QIX6Yz78LWdyiaBDIuNJQNgkul3OPKILTcrgBrBs++6U5NKS7anL /PiB1Cy7vmHsKqDxI1YJwZRaQJMkI5GuPa7UoWZEQnGjrJ35EmaCqZJCUEyrUBqTqqEG we/xr1o8Orfzp7cuJdQsSs2bBadRFixugrl5AJNlY1kXhMY/ZbHHELcriYqHBKtp74nF ZjhRd2pL8grLRmSO19/mzp/164a1UC66kP+K/ukfF4CI6cc9tBVdDMIRtYLH8bf/NxL1 jC2A== 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; bh=pnifVjsntKfs1JPdhOlwOFevgRndLjyc6X8OSzSOKZw=; b=xz5SaYqDsc7907z2OQZfzZFMiJGYaWYFwR785CHNh3HjmaIEMT7zrRClrtga739aou VBXFFF6rSYmAV+Ng5JGDDe/z+bJNqbCviahGy9Pn2E2Uk/31hTd1kLajNV42cd5hikYG mkdYa0iI68s6XBDabWm+n5vS/YsaM5HeqVEzt+ixXY44fT646M954sU4Q3+3/DhGJWVa vJSWDxJQUb6fOZEy661xyq85d+0qynVAbloTV36gteKaHWDP7C8d619r9LUeKbbYw/Kf 8YhSifkinF8BhMKBViRoBtGOw4vqTA4uQvDo12gJxWl1tZiEk6VoSuP8+PLAx07zk8zv JOpA== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@infradead.org header.s=merlin.20170209 header.b=rYC1u3HC; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id t10si13344641ejs.137.2020.07.06.13.53.47; Mon, 06 Jul 2020 13:54:11 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=fail header.i=@infradead.org header.s=merlin.20170209 header.b=rYC1u3HC; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727963AbgGFUuo (ORCPT + 99 others); Mon, 6 Jul 2020 16:50:44 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:58532 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725941AbgGFUun (ORCPT ); Mon, 6 Jul 2020 16:50:43 -0400 Received: from merlin.infradead.org (merlin.infradead.org [IPv6:2001:8b0:10b:1231::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id A4291C08C5DF for ; Mon, 6 Jul 2020 13:50:42 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=merlin.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; bh=pnifVjsntKfs1JPdhOlwOFevgRndLjyc6X8OSzSOKZw=; b=rYC1u3HCUu+K9no/ujCyhm9HNo F01dT1Ax6WlbxTODPFT83FFKLR3e+/g0Akc27FeoCEvWs6KCIFq33ZZGCSWOZnbWYDKkzLHjjTtcA /HR7qI/rzNbaFs44D0DE7bdXBrGPgCNeGV63aIRjdFtG9vqaQFQHvMFdxrdHre0n7CZfgFr6iUetz 5FiTx99fjHKOudBMxb2SvxEMxAigyMbBUjoWSrKKArAaH/45SUMgbB1IbrdARs6KofNzFXJip/IL6 lkAy710KBmDL1393IaqYBhYHl47mQgjNl+SDdutXC1qgtU+vt/aXwy7LGwQq/dpaLMkA47FGjVw6y ge3vxTMg==; Received: from j217100.upc-j.chello.nl ([24.132.217.100] helo=worktop.programming.kicks-ass.net) by merlin.infradead.org with esmtpsa (Exim 4.92.3 #3 (Red Hat Linux)) id 1jsY47-0001mR-MK; Mon, 06 Jul 2020 20:50:15 +0000 Received: by worktop.programming.kicks-ass.net (Postfix, from userid 1000) id 563CA9816EA; Mon, 6 Jul 2020 22:50:04 +0200 (CEST) Date: Mon, 6 Jul 2020 22:50:04 +0200 From: Peter Zijlstra To: "Ahmed S. Darwish" Cc: Ingo Molnar , Will Deacon , Thomas Gleixner , "Paul E. McKenney" , "Sebastian A. Siewior" , Steven Rostedt , LKML Subject: Re: [PATCH v3 04/20] lockdep: Add preemption enabled/disabled assertion APIs Message-ID: <20200706205004.GC5523@worktop.programming.kicks-ass.net> References: <20200630054452.3675847-1-a.darwish@linutronix.de> <20200630054452.3675847-5-a.darwish@linutronix.de> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20200630054452.3675847-5-a.darwish@linutronix.de> User-Agent: Mutt/1.10.1 (2018-07-13) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, Jun 30, 2020 at 07:44:36AM +0200, Ahmed S. Darwish wrote: > diff --git a/lib/Kconfig.debug b/lib/Kconfig.debug > index d74ac0fd6b2d..e5e2e632b749 100644 > --- a/lib/Kconfig.debug > +++ b/lib/Kconfig.debug > @@ -1118,6 +1118,7 @@ config PROVE_LOCKING > select DEBUG_RWSEMS > select DEBUG_WW_MUTEX_SLOWPATH > select DEBUG_LOCK_ALLOC > + select PREEMPT_COUNT if !ARCH_NO_PREEMPT > select TRACE_IRQFLAGS > default n > help I suspect this can be done unconditional, the thing that requires arch support is CONFIG_PREEMPTION.