From patchwork Tue Mar 8 06:33:53 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Chunyan Zhang X-Patchwork-Id: 8529941 Return-Path: X-Original-To: patchwork-linux-arm@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork2.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.29.136]) by patchwork2.web.kernel.org (Postfix) with ESMTP id C14F8C0553 for ; Tue, 8 Mar 2016 06:38:21 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id D5B4B2015E for ; Tue, 8 Mar 2016 06:38:20 +0000 (UTC) Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.9]) (using TLSv1.2 with cipher AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 066FA2014A for ; Tue, 8 Mar 2016 06:38:20 +0000 (UTC) Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.80.1 #2 (Red Hat Linux)) id 1adBG3-0004i6-Do; Tue, 08 Mar 2016 06:36:39 +0000 Received: from mail-pf0-x234.google.com ([2607:f8b0:400e:c00::234]) by bombadil.infradead.org with esmtps (Exim 4.80.1 #2 (Red Hat Linux)) id 1adBFz-0004aA-AU for linux-arm-kernel@lists.infradead.org; Tue, 08 Mar 2016 06:36:37 +0000 Received: by mail-pf0-x234.google.com with SMTP id 124so6025466pfg.0 for ; Mon, 07 Mar 2016 22:36:14 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=4pnUbdNPS4wLf5DszEbaDBhKNwVeq+uy5U5Vo9IBIaY=; b=ZzloKVL7G2wtejgiuqix5ASZNrVimtg+kj5HBhFjahjEOvG/Ozshs6BQdIzl6mM65J BOevmjypSXFtYgyWBbv0jI9uLyoomazgRiEo7Pv6EqWU6+DR9KtcbJ30uwTUPO60SJ7j WDRDHaAkyBeCC5XPEOEwsyQgiCF0DSLE/k6Qs= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=4pnUbdNPS4wLf5DszEbaDBhKNwVeq+uy5U5Vo9IBIaY=; b=EqaIKyYJLX8/LQrUoJv5Xe5WM5AFKaZ4PvY24z05dHAN1zLGJ8jXpX7Aj3sWoRE7UO kLCRhLqhAQMXYUFjzxL7rigFAYM7YQKM35jaMzitZlWoYuNzSar2w7jZ7r8ygDGVBBEn yeN8JFvh8t4rRfwP1UoGMyqtaUYA0jlFfOdaUCwn0XVdHeJJ5K12OqjO1ETvqefG/x5b WlYntgPcKlVc2ZIH1kgL24D0JBAOHTGRZ11RE6yWyrp3igULLEWqrhKhQgJdpvwHcMOm 6ewus5S74IkWhBw8Ei5f8nyBt6iBza4QcoN5GVR2cRUaJs6i5hWV7J6oonxmC16mxd8l Gqlg== X-Gm-Message-State: AD7BkJJpTJ7UmNls6Yn3pxpIRyBjOPBz2RD1q3iiNFRrsg15O2T0Scu6PFm46Lf3gWrOY007 X-Received: by 10.98.80.10 with SMTP id e10mr39123070pfb.141.1457418974584; Mon, 07 Mar 2016 22:36:14 -0800 (PST) Received: from zcy-ubuntu.spreadtrum.com ([175.111.195.49]) by smtp.gmail.com with ESMTPSA id fn3sm1986372pab.20.2016.03.07.22.36.09 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Mon, 07 Mar 2016 22:36:13 -0800 (PST) From: Chunyan Zhang To: mathieu.poirier@linaro.org, alexander.shishkin@linux.intel.com Subject: [RESEND PATCH V4 2/4] Documentations: Add explanations of the case for non-configurable masters Date: Tue, 8 Mar 2016 14:33:53 +0800 Message-Id: <1457418835-31417-3-git-send-email-zhang.chunyan@linaro.org> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1457418835-31417-1-git-send-email-zhang.chunyan@linaro.org> References: <1457418835-31417-1-git-send-email-zhang.chunyan@linaro.org> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20160307_223635_551604_19855B7E X-CRM114-Status: UNSURE ( 9.62 ) X-CRM114-Notice: Please train this message. X-Spam-Score: -2.7 (--) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: al.grant@arm.com, Michael.Williams@arm.com, linux-doc@vger.kernel.org, zhang.lyra@gmail.com, linux-kernel@vger.kernel.org, tor@ti.com, mike.leach@arm.com, linux-api@vger.kernel.org, pratikp@codeaurora.org, nicolas.guion@st.com, linux-arm-kernel@lists.infradead.org MIME-Version: 1.0 Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org X-Spam-Status: No, score=-4.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, RCVD_IN_DNSWL_MED,RP_MATCHES_RCVD,T_DKIM_INVALID,UNPARSEABLE_RELAY autolearn=ham version=3.3.1 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on mail.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP For some STM hardware (e.g. ARM CoreSight STM), the masterID associated to a source is set at the hardware level and not user configurable. Since the masterID information isn't available to SW, introducing a new value of -1 to reflect this reality. Signed-off-by: Chunyan Zhang --- Documentation/trace/stm.txt | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/Documentation/trace/stm.txt b/Documentation/trace/stm.txt index ea035f9..f03bc2b 100644 --- a/Documentation/trace/stm.txt +++ b/Documentation/trace/stm.txt @@ -47,6 +47,12 @@ through 127 in it. Now, any producer (trace source) identifying itself with "user" identification string will be allocated a master and channel from within these ranges. +$ cat /config/stp-policy/dummy_stm.my-policy/user/masters +-1 -1 + +Would indicate the masters for this rule are set in hardware and +not configurable in user space. + These rules can be nested, for example, one can define a rule "dummy" under "user" directory from the example above and this new rule will be used for trace sources with the id string of "user/dummy".