From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-2.5 required=3.0 tests=DKIM_SIGNED,DKIM_VALID, HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,SPF_PASS,USER_AGENT_MUTT autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 3C676C43381 for ; Wed, 27 Mar 2019 07:53:14 +0000 (UTC) Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 023C120811 for ; Wed, 27 Mar 2019 07:53:13 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=lists.infradead.org header.i=@lists.infradead.org header.b="TN2s4C9I"; dkim=fail reason="signature verification failed" (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b="dlaLRgLt" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 023C120811 Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=linaro.org Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=linux-arm-kernel-bounces+infradead-linux-arm-kernel=archiver.kernel.org@lists.infradead.org DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20170209; h=Sender: Content-Transfer-Encoding:Content-Type:Cc:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:In-Reply-To:MIME-Version:References: Message-ID:Subject:To:From:Date:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=x60hELhjwMJZAuKW6QwiyOdRkoq3HeRn7HbiAs7UMkQ=; b=TN2s4C9I8gPPya uAQFIji/nDHeTF0K5otWC2OfmTSDnVLSH9lVwQAXz6GnSsfRNcicYisVvPpNw/g9I6vWSWg2HqiRy FZZLdw9iwhkbroAfXahcsMvcmfXYexeTHMPOsK4iLZJ62lQgKECXoSw0TJv/P7Knye//D/Rn1axEj dUURFrbeo+80dzNsvqG63pF503FN1ZcYNLKveoncz3H+x/JD/ykr/e/dpSIKt8RUqrK77Bk80W9zj SlAvCIW6UZBMyEiym2gFUcc/uQyrSXFq6JAu6XBPvyLswWe5kV+Gly1qU4u6XdIT0dvbYhzrFUtzF Mo11uJuDu0d8FXAnqr7g==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.90_1 #2 (Red Hat Linux)) id 1h93Mv-0000tO-N7; Wed, 27 Mar 2019 07:53:05 +0000 Received: from mail-yw1-xc41.google.com ([2607:f8b0:4864:20::c41]) by bombadil.infradead.org with esmtps (Exim 4.90_1 #2 (Red Hat Linux)) id 1h93Mr-0000st-Tu for linux-arm-kernel@lists.infradead.org; Wed, 27 Mar 2019 07:53:03 +0000 Received: by mail-yw1-xc41.google.com with SMTP id c4so11791039ywa.11 for ; Wed, 27 Mar 2019 00:53:00 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to:user-agent; bh=N4kXIJ1YOcSDTwyPxQp2SkxU1eqlYZgO6+OxjzDdPkc=; b=dlaLRgLtzx/Zc003yliNahHWBTjecQ2dz8wJONJbWrZTS3SnHIsZFX3gSjCUEAWQHy YwisWwHFrJ7UudiSa8B0Io0KPQE5uZo9qZpsVRkgiNkMaRX03zKy7Wj/FUwP729GW9bx hGTZcLALQRsZqUtT1MK/oibDnIOJ3PJvzVk0m1zsO7zSJsHQ9G34OX0nA2iN8bKJKYM5 mLlZeQaRaDZ/dPbh8OLSiyjVvVzuIzGfatn0595YF0cEBXy8ms9XCMHkZRZsJIaiqiln SLHUix2dHcIAI/BJLxwEUgUtAC7t7/ADAUVFpcmFNlyewf0HJTcvcxk34AXHd7ynxShR 5uog== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to:user-agent; bh=N4kXIJ1YOcSDTwyPxQp2SkxU1eqlYZgO6+OxjzDdPkc=; b=sa38BZ/WhJb0TFOp1J61sGK3h9hMJPuwgczR0NWnCEtXenQDp8U2Xk+45fDCQEyvCb IRJsc+RALv6YQQw0U/oKK4gWTu0mc3O0gDr56UZpQWltI0CYNV36wxVCv2R4cEDFGRbk q7/d4iVsFB9SyodTotbmwWB9rRAlAF+lXzoM8RJKeU5bre24bT3HFLVdGgx5shtVLih+ FsyR6IRzSn89NO+8rmqAcyUWKS3DuRD3nqRj207udzI7jNPu3/6Ish6Yd8+LU6Lik3D8 rDPofoY0mqXkfgh9vQOC8CCxPWVB/OmQ6Er0UCn/hMgAZXThi3OPqORVORS12zaZmoWG wQbw== X-Gm-Message-State: APjAAAXG0Jg9rbaDbY+WL/ZCKakQEF+FYYRBJA+r45k5IhT4hl6MfSQy EoqT4e3FjGfCqNI+jXTfMUaXOA== X-Google-Smtp-Source: APXvYqyEEVFRB0EKrIuH2lyMDJhJjFk1bXZUkP1ZFUfuKXJNHhspPyaqxAKvbNygfcKvui0jVdV+NQ== X-Received: by 2002:a25:3254:: with SMTP id y81mr29046331yby.83.1553673179345; Wed, 27 Mar 2019 00:52:59 -0700 (PDT) Received: from leoy-ThinkPad-X240s (li931-65.members.linode.com. [45.56.113.65]) by smtp.gmail.com with ESMTPSA id m5sm4937174ywm.67.2019.03.27.00.52.55 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Wed, 27 Mar 2019 00:52:58 -0700 (PDT) Date: Wed, 27 Mar 2019 15:52:51 +0800 From: Leo Yan To: Mathieu Poirier Subject: Re: [PATCH v2 00/16] coresight: Add support for CPU-wide trace scenarios Message-ID: <20190327075251.GC13559@leoy-ThinkPad-X240s> References: <20190325215632.17013-1-mathieu.poirier@linaro.org> MIME-Version: 1.0 Content-Disposition: inline In-Reply-To: <20190325215632.17013-1-mathieu.poirier@linaro.org> User-Agent: Mutt/1.9.4 (2018-02-28) X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20190327_005301_997269_D245D66C X-CRM114-Status: GOOD ( 14.76 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: suzuki.poulose@arm.com, alexander.shishkin@linux.intel.com, coresight@lists.linaro.org, peterz@infradead.org, mike.leach@arm.com, linux-arm-kernel@lists.infradead.org Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+infradead-linux-arm-kernel=archiver.kernel.org@lists.infradead.org On Mon, Mar 25, 2019 at 03:56:16PM -0600, Mathieu Poirier wrote: > This is the second revision of a patchset that adds support for CPU-wide > trace scenarios and as such, it is now possible to issue the following > commands: > > # perf record -e cs_etm/@20070000.etr/ -C 2,3 $COMMAND > # perf record -e cs_etm/@20070000.etr/ -a $COMMAND > > The solution is designed to work for both 1:1 and N:1 source/sink > topologies, though the former hasn't been tested for lack of access to HW. > > Most of the changes revolve around allowing more than one event to use > a sink when operated from perf. More specifically the first event to > use a sink switches it on while the last one is tasked to aggregate traces > and switching off the device. > > This is the kernel part of the solution, with the user space portion to be > released in a later set. All patches (user and kernel) have been rebased > on v5.1-rc2 and are hosted here[1]. Everything has been tested on Juno and > 410c dragonboard platforms. FWIW, gave the testing on my Hikey620 board and these patches also work well with below commands: # perf record -e cs_etm/@f6402000.etf/ -a uname # perf record -e cs_etm/@f6402000.etf/ -C 0,4 uname # perf record -e cs_etm/@f6404000.etr/ -a uname # perf record -e cs_etm/@f6404000.etr/ -C 1,2,7 uname P.s. just note here and this is off topic to this patch set, the 'perf report' command took below time for decoding ~4MB CoreSight trace data on my Hikey board, seems we can take a look for decoding speed optimization later: # time perf report --vmlinux /mnt/linux-kernel/linux-next/vmlinux real 2m11.153s user 1m47.979s sys 0m0.204s Thanks, Leo Yan _______________________________________________ linux-arm-kernel mailing list linux-arm-kernel@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel