From patchwork Mon Feb 1 08:20:35 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Chunyan Zhang X-Patchwork-Id: 8176751 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 6B0FBBEEED for ; Mon, 1 Feb 2016 08:23:44 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 92B922041D for ; Mon, 1 Feb 2016 08:23:43 +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 A80C620154 for ; Mon, 1 Feb 2016 08:23:42 +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 1aQ9jd-0002t6-WA; Mon, 01 Feb 2016 08:21:22 +0000 Received: from mail-pf0-x232.google.com ([2607:f8b0:400e:c00::232]) by bombadil.infradead.org with esmtps (Exim 4.80.1 #2 (Red Hat Linux)) id 1aQ9jV-0002aA-4p for linux-arm-kernel@lists.infradead.org; Mon, 01 Feb 2016 08:21:16 +0000 Received: by mail-pf0-x232.google.com with SMTP id o185so74883104pfb.1 for ; Mon, 01 Feb 2016 00:20:52 -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=iNt6pDGErxBCBnpK7myHn8GLa3D2EB4sSWWwuZy74pn0G9iMXYXgWdw+Dq+624/0cC bV/w29DOcIl5Hx005+LqXc7YJA3uIT8yfT5aDU+ANbUMVUJVRFyMjexabyn4d7PnIAEZ sHfagjiC24EekNmFfbqu82z3TjfGem0HqOSUM= 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=UoKf72yj7rxf3/plo59gKWrmDWh44DcaY1g8yeXmWawFOhmzwqRlMSEwO8uYC6D3QM Qf6h2vrMA+4En7CBMNWClgyaZfceuJupWHEnXY07erxCSubLpw4y4uj/231WeOMhoArY /oPNTDvx5znR9UkmPWUlOeRgR2En71u1KFO1OJIP2MuSCr7pQlOggDkiGQCVS4+jQ5LS uhH3wnvJ6DbBwA3bfSXftYp2F8zfH0LBzQqjjbxMss83q8J0DwZsqhW/IW02BhmXwtkK 4ZPYA9k4pHKqwA4+AibcWTSKS9lR8MESad717aEOF/gEqF7OVkk7v/EeHTHMrzZkazGV f89Q== X-Gm-Message-State: AG10YOTRQOpveRFS6xc7agfI02pjV4VSefbcmbxvMndDmIOX+L79XOSnWeOqwnE65DjgBx7s X-Received: by 10.98.32.5 with SMTP id g5mr7162103pfg.74.1454314852249; Mon, 01 Feb 2016 00:20:52 -0800 (PST) Received: from zcy-ubuntu.spreadtrum.com ([175.111.195.49]) by smtp.gmail.com with ESMTPSA id 191sm41032229pfa.23.2016.02.01.00.20.47 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Mon, 01 Feb 2016 00:20:51 -0800 (PST) From: Chunyan Zhang To: mathieu.poirier@linaro.org, alexander.shishkin@linux.intel.com Subject: [PATCH 4/6] Documentations: Add explanations of the case for non-configurable masters Date: Mon, 1 Feb 2016 16:20:35 +0800 Message-Id: <1454314835-9294-1-git-send-email-zhang.chunyan@linaro.org> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1454313529-8860-5-git-send-email-zhang.chunyan@linaro.org> References: <1454313529-8860-5-git-send-email-zhang.chunyan@linaro.org> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20160201_002113_329121_23EDBEE8 X-CRM114-Status: GOOD ( 10.25 ) X-Spam-Score: -1.4 (-) 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: mark.rutland@arm.com, corbet@lwn.net, zhang.lyra@gmail.com, linux-doc@vger.kernel.org, linux-kernel@vger.kernel.org, broonie@kernel.org, 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=-3.3 required=5.0 tests=BAYES_00,DKIM_SIGNED, RCVD_IN_BL_SPAMCOP_NET, 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".