From patchwork Tue Sep 11 21:49:50 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Mathieu Poirier X-Patchwork-Id: 146483 Delivered-To: patch@linaro.org Received: by 2002:a2e:1648:0:0:0:0:0 with SMTP id 8-v6csp4096903ljw; Tue, 11 Sep 2018 14:50:01 -0700 (PDT) X-Google-Smtp-Source: ANB0VdaNBhCWkMDsjeESPcAl4j+dvu2r8mG5+oNcT/wONiC/ZZrj2kZ4cQt5dhYlfBRMQiK/pBEx X-Received: by 2002:a62:2744:: with SMTP id n65-v6mr31855744pfn.125.1536702601397; Tue, 11 Sep 2018 14:50:01 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1536702601; cv=none; d=google.com; s=arc-20160816; b=qojQzsjOSTmF+v2pxR8kCu1jJ4o/ml+9vN/W9zfzzm94B8YrMRo5iz6sBnDcXk5XDC IAXGIG3jkCFX3F56u6DnzTcgn2iz+8S4J53LHzxovWgRliRldvdxiyLqMMpiGfPP04n0 mDdO/ZCytY+nosHyUnZvF6wJnL2jJzVn6zlGXUP3IHz8VqWwMRrLCPGnYeInLqpy6cCe Cl0VMNIDZeHM95OoqG5v1+wdu5dgXXEO88LkH2wjzpdlij7/PAkBZEajAfrhWvqALfgk sBpQFNvFrbt9A2Sdo/8ZEe4GBlbdapKQWFV6wPOg4aShos+RkheuiDmZS8bqV+PG1o9E szGQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:message-id:date:subject:cc:to:from :dkim-signature; bh=fgna4PdGFwEoKN458QoB7zhkmwlBKa1IPSt362SyF6Y=; b=lia0Yf6HhxhRR6Fm+wcW4DjPBdQ7BRuqc/T+/9BlcMJB3biVHwFLCyEbDp3pCLGCIE 2gu3iEgfWtmPbVXqEuRCOdV5NrutPaB9N/WhYPFTZs9sHYGU0e6DHq9oYHq59YPxhxve FaCtuWqPA6BjA57UuWbKVRDRI31+6RxKnEbEmJ4KwBpqFjyKuhPe3eh19axqrfkCf+oG nyf2DrdfZwlkiIxHnhFzlOzt+dMYfrCq8JV9VjmzKzhcIQtZTazwFLw5mUm9jc1Uyy7u 4j0ziG/oyNQfr5rsR+gyjm10YHmttny0LyR5+SKtg7i8nMCyakWnGfs5VUpvmGz9ERIo E4Lw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=RqwO5FYj; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id f186-v6si22990968pfa.336.2018.09.11.14.50.01; Tue, 11 Sep 2018 14:50:01 -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; dkim=pass header.i=@linaro.org header.s=google header.b=RqwO5FYj; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728242AbeILCvQ (ORCPT + 32 others); Tue, 11 Sep 2018 22:51:16 -0400 Received: from mail-io0-f193.google.com ([209.85.223.193]:38286 "EHLO mail-io0-f193.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727734AbeILCvQ (ORCPT ); Tue, 11 Sep 2018 22:51:16 -0400 Received: by mail-io0-f193.google.com with SMTP id y3-v6so4852863ioc.5 for ; Tue, 11 Sep 2018 14:49:58 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id; bh=fgna4PdGFwEoKN458QoB7zhkmwlBKa1IPSt362SyF6Y=; b=RqwO5FYja9IlyZeCgo4q5mEr3Af83zfN4CSqW8+d49u51mGkZ81MaUtz6ZlCYkzo36 U42ZIvdjLbl/Kylx5/k5a8R10e3l3rFuuJ3/W5RpLbCXZ0l+rHICpEVK3kl69sq/Jk0I /6GlKUAL2XJysTXr7w9jsbs2ZQRcTEJlgGZwY= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id; bh=fgna4PdGFwEoKN458QoB7zhkmwlBKa1IPSt362SyF6Y=; b=qYQyvnNnCDgjtiPOrX/QWdRa5+NSkofG+6cWooV7RGg0CBQPAxTqNZjbmjJ6hrAAAv EuLeyBFLJuIuf0KMUQ4PED2MA2S+bRbkE7lVGQvEbAn8T4XuJxuBaJhttVxXWCJK5maD EEpS2yO2ns0lhYIpNt02G89FLNQkgPAZfZ1kpCd78QzIjqWVxcSPiN79kPl5I3ED17PS piBNTXbqD3nJ7MjMd1j3CBvxeDx4yJruRKGCC7/PYivwXTQPBNACxxd/gPJANegugZVX H1nK5LCMW471uNFYCmyDbHdlUdodrCBpv5dnsuwGHxUiSReo/LfXfdAQt18Kv/LsBl5x NfTw== X-Gm-Message-State: APzg51C3x9JG2mUEOmxOMLdiN08UsCZaXR0GZgplPkeR4ZmAsgZ2dRHs Tm2C2qjGuWhbNc8CJLCyYNTMvQ== X-Received: by 2002:a6b:ac03:: with SMTP id v3-v6mr22664374ioe.71.1536702598558; Tue, 11 Sep 2018 14:49:58 -0700 (PDT) Received: from xps15.cg.shawcable.net (S0106002369de4dac.cg.shawcable.net. [68.147.8.254]) by smtp.gmail.com with ESMTPSA id c3-v6sm1102172itd.8.2018.09.11.14.49.56 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Tue, 11 Sep 2018 14:49:57 -0700 (PDT) From: Mathieu Poirier To: linux-arm-kernel@lists.infradead.org Cc: alexander.shishkin@linux.intel.com, suzuki.poulose@arm.com, gregkh@linuxfoundation.org, kim.phillips@arm.com, leo.yan@linaro.org, linux-kernel@vger.kernel.org Subject: [PATCH 0/5] coresight: Output debug messages only in sysFS mode Date: Tue, 11 Sep 2018 15:49:50 -0600 Message-Id: <1536702595-9999-1-git-send-email-mathieu.poirier@linaro.org> X-Mailer: git-send-email 2.7.4 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Status messages related to the establishment of paths between source and sinks are not useful outside of a debugging environment and clogs the log files needlessly. They also trigger the lockdep mechanic when operating from perf since they call output functions during process context switch. This patch is fixing the problem by allowing debugging information to be emitted only when operating from sysFS. This doesn't change the debugging capability of the system since 1) everything that is done from perf is built on top of the sysFS mode and 2) debugging output is completely useless under perf. Regards, Mathieu Mathieu Poirier (5): coresight: Make path enable/disable aware of operation mode coresight: Make link components aware of operation mode coresight: Make sink disable functions aware of operation mode coresight: Define macro to replace dev_dbg() boiler plate code coresight: Allow drivers to be verbose only in sysFS mode .../coresight/coresight-dynamic-replicator.c | 8 +++---- drivers/hwtracing/coresight/coresight-etb10.c | 8 +++---- drivers/hwtracing/coresight/coresight-etm-perf.c | 4 ++-- drivers/hwtracing/coresight/coresight-etm3x.c | 7 ++++-- drivers/hwtracing/coresight/coresight-etm4x.c | 8 +++++-- drivers/hwtracing/coresight/coresight-funnel.c | 10 ++++---- drivers/hwtracing/coresight/coresight-priv.h | 9 +++++++- drivers/hwtracing/coresight/coresight-replicator.c | 8 +++---- drivers/hwtracing/coresight/coresight-stm.c | 2 +- drivers/hwtracing/coresight/coresight-tmc-etf.c | 14 +++++------ drivers/hwtracing/coresight/coresight-tmc-etr.c | 4 ++-- drivers/hwtracing/coresight/coresight-tpiu.c | 6 ++--- drivers/hwtracing/coresight/coresight.c | 27 +++++++++++----------- include/linux/coresight.h | 8 ++++--- 14 files changed, 71 insertions(+), 52 deletions(-) -- 2.7.4