Received: by 10.192.165.148 with SMTP id m20csp365036imm; Wed, 2 May 2018 01:27:02 -0700 (PDT) X-Google-Smtp-Source: AB8JxZrtsdt0vNSzQDt7aKuh/a4MbO8dBBTjBsX+p4VR7LxM6zsj6lQ6Rjk8d4n8ZRqZ0kas4AdY X-Received: by 2002:a63:8849:: with SMTP id l70-v6mr15713336pgd.49.1525249622150; Wed, 02 May 2018 01:27:02 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1525249622; cv=none; d=google.com; s=arc-20160816; b=GCoisHvER0JpNgF0iwP1CCaUaUZPb2QGRGDmY8wtwXJTmaUtZ+BJJCNPer+AWo4wGl +mHiKBIURod3W8KEHNzB1ytj6hbRLaBASeO4D+pmiaWvo6P/DzmdmG1R4mMJdRRpu6bO 3zH/1LdJkOBZDhID0GILWDaSVShVCOLqclNR7FfBnqnZ78pHRCheeg6S6rEB+h7sNPun Via4QIVWn+Ljy9nGCqZcqlutz5VVRCc2jURJlg3m0QgcR4tLOl3vVJxNxDOCfTQl9KEk 9536XJLyq1wUxNyRHDeBR6P+cdrlZ6XjwqUJD8kKkAkuIDzD3Q5ffSDvZaB6XFBgj7JA Zhtg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-language :content-transfer-encoding:in-reply-to:mime-version:user-agent:date :message-id:from:references:cc:to:subject:arc-authentication-results; bh=OiIR+zWPe24NlKTxdAGJX4JNpn8AndiMT1vFL/L7i/A=; b=r6APX0u/rsrxQqgxAaic/RV/NHWwFzbm4btiMeS2EO6kf3IFST/mlNG9hx1N5yRzOY Eno6+YeCocYagqFz056PZVn9DygtBx+mGl3GCneSud+Rh08aEvOSUlTSl+gbzvYe/Cxv RQe47DoJpvikjqZ3XzGwdPIe0kl7cW4usCfkykN2JRxRl+3WF5Cm1SzZyeOm1gFAdMlH WOox9sFYLBCfXuGsGTe0G5bwkLKPosAUjnCun0owyNkOzar8MIRmzSNLS6yBWUCOEmSB tor5fF6CsxN1ESYp4ULZxE8NZPhfxQxETmjg0kH5eRoJmqJgg+iasq5TmRro5hw7B1sP NHKg== 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 h188-v6si9151156pgc.53.2018.05.02.01.26.47; Wed, 02 May 2018 01:27:02 -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 S1750978AbeEBI0Z (ORCPT + 99 others); Wed, 2 May 2018 04:26:25 -0400 Received: from foss.arm.com ([217.140.101.70]:54824 "EHLO foss.arm.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750800AbeEBI0V (ORCPT ); Wed, 2 May 2018 04:26:21 -0400 Received: from usa-sjc-imap-foss1.foss.arm.com (unknown [10.72.51.249]) by usa-sjc-mx-foss1.foss.arm.com (Postfix) with ESMTP id 7B3ECF; Wed, 2 May 2018 01:26:21 -0700 (PDT) Received: from [10.0.2.15] (unknown [10.37.12.110]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPSA id DFC493F5A0; Wed, 2 May 2018 01:26:18 -0700 (PDT) Subject: Re: [PATCH v2 21/27] coresight: Convert driver messages to dev_dbg To: Kim Phillips , Suzuki K Poulose Cc: linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, mathieu.poirier@linaro.org, mike.leach@linaro.org, mark.rutland@arm.com, will.deacon@arm.com, robin.murphy@arm.com, sudeep.holla@arm.com, frowand.list@gmail.com, robh@kernel.org, john.horley@arm.com References: <1525165857-11096-1-git-send-email-suzuki.poulose@arm.com> <1525165857-11096-22-git-send-email-suzuki.poulose@arm.com> <20180501225503.a55fb963795afb40163f3763@arm.com> From: Robert Walker Message-ID: <019a4703-f51a-b402-7e92-c5045a17361a@arm.com> Date: Wed, 2 May 2018 09:25:38 +0100 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.6.0 MIME-Version: 1.0 In-Reply-To: <20180501225503.a55fb963795afb40163f3763@arm.com> Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 8bit Content-Language: en-US Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 02/05/18 04:55, Kim Phillips wrote: > On Tue, 1 May 2018 10:10:51 +0100 > Suzuki K Poulose wrote: > >> Convert component enable/disable messages from dev_info to dev_dbg. >> This is required to prevent LOCKDEP splats when operating in perf >> mode where we could be called with locks held to enable a coresight > Can we see the splats? Doesn't lockdep turn itself off if it starts > triggering too many splats? > >> path. If someone wants to really see the messages, they can always >> enable it at runtime via dynamic_debug. > Won't the splats still occur when the messages are enabled with > dynamic_debug? > > So in effect this patch only tries to mitigate the splats, all the > while making things harder for regular users that now have to recompile > their kernels, in exchange for a very small convenience for kernel > developers that happen to see a splat or two with DEBUG_LOCKDEP set? > > Not the greatest choice...How about moving the dev_infos outside of the > locks instead? > > Thanks, > > Kim The other reason for making these dev_dbg is performance - a message is output each time a source / link / sink is enabled or disabled, so we can get 20+ messages on each process switch when tracing with perf.  This has a significant effect on the runtime of the application being traced. Regards Rob