Message ID | 20190404033541.14072-2-mathieu.poirier@linaro.org |
---|---|
State | Superseded |
Headers | show
Delivered-To: patch@linaro.org Received: by 2002:a02:c6d8:0:0:0:0:0 with SMTP id r24csp1086944jan; Wed, 3 Apr 2019 20:35:55 -0700 (PDT) X-Google-Smtp-Source: APXvYqxU+ARPFdcYo9ls2hZ4xz8sn4lNlz7fwYUIuINZlMAgp/+V9UHi9SA5nYnxrOHemmQ9dt0E X-Received: by 2002:a62:4558:: with SMTP id s85mr3310847pfa.171.1554348955838; Wed, 03 Apr 2019 20:35:55 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1554348955; cv=none; d=google.com; s=arc-20160816; b=CQ/mKGY/FToUPTJ+rGaVpCY+eafMAtaMwOxonVnpdyMCI5AE4YCOgjTYgZILFm63CO HNC9T6nu5KL8LybRBmuwQ6IPv/qKg/xIlJ8NuXg+fYbqOJYve7LyiynT4GJryrR9mluz yeZsW1OuIoN8WHuChW/QG3FRvg3BCUNXbtiPgjk3P73FayVS16uHhvllNszckw63LpO4 vjDjBDLq9H/Yst2mfjFt/092jx33KsalpCmPLq2MEh8rOqgGEqZqRgtH2Ew7EUJGQWSQ 8yiNnwWnk/u8hrFvJhU0G5xouELvPmj+qtB8LScDJTixsgyrEK8ZrJqZAa8FzFsrHgwS Ejgw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:references:in-reply-to:message-id:date :subject:cc:to:from:dkim-signature; bh=pQJCMdAOcoU1qu2khwRxnoxNDPS67R2CoUeniO+PC88=; b=n/3DgIbyH/dLWEKLNJJ26kUDTGl8ZrcPKYE/l97GJqr+8PUskPvz9Jr70tr2ws4Vy0 0RZwYUn2SgNGG4Y3PEgzT7CVwLyilHWFPmjLgA0iozQqlMONruBnmEUpUkwMmT4lJjPf bBMTBfzjo7oEZidySDwv1SC6WBANrCRSUTlclE6aML3Kvwhw80qn7pyirfEEjT8aNovo /4gR3V+14iE7Q0WNQtGZuQbf1w9eyMzTx/s93S8xacKyNw1OUVUfMqLK7WdHyekpCIJV 5+nYSzUaGXvWs0+jBDBVmkaiE/fJ5ZCwn6XOvqRCbo1DINeKtg2ucxMrDBdsbUJgDP0i /b9A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=JG7qosCg; 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: <linux-kernel-owner@vger.kernel.org> Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id a64si15856627pge.592.2019.04.03.20.35.55; Wed, 03 Apr 2019 20:35:55 -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=JG7qosCg; 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 S1726862AbfDDDfy (ORCPT <rfc822;mike.holmes@linaro.org> + 31 others); Wed, 3 Apr 2019 23:35:54 -0400 Received: from mail-pf1-f196.google.com ([209.85.210.196]:42264 "EHLO mail-pf1-f196.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726167AbfDDDfx (ORCPT <rfc822;linux-kernel@vger.kernel.org>); Wed, 3 Apr 2019 23:35:53 -0400 Received: by mail-pf1-f196.google.com with SMTP id r15so613974pfn.9 for <linux-kernel@vger.kernel.org>; Wed, 03 Apr 2019 20:35:52 -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:in-reply-to:references; bh=pQJCMdAOcoU1qu2khwRxnoxNDPS67R2CoUeniO+PC88=; b=JG7qosCgIljTpyMPcpMLIF001Mci7KhIhDxzZNrpV/i1kcDTXgjJ6kbJSb2Dvemp3n Ga8GciIaVKWkZBJCrEsTGGKZGocGG4jFQirf7ktsTDhKh3FYLyA80Rs4go2DlpEXZpiz RlZmzMcetNrU1fLoBHkNkWsMIBNmljfmvCH3x45TM9DA6sC+/bAV1wSrp+88U28W6TlM c3vWSTPz15/4FTtdoodb6FlC95ap7dVUKQp79ClVhkuJj2eZCtGvKB/6HnLirkJTX1z4 iL1aw6pnDdpmLvbsWmMyD98wNnyKfyVsYgEtVrje+1TPi2y+sVF6RuyD5wVlnJm23Lff acuw== 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:in-reply-to :references; bh=pQJCMdAOcoU1qu2khwRxnoxNDPS67R2CoUeniO+PC88=; b=q8pT9pgp8UmjoZPmKdHla8UjcNQol7/OnXPoCwDlnPdfltOrVRWX3AP/77CFQKMGZ3 gyajM/sa/xb8jtcWWV1BJGbBUppeud+W2C0Dk8JIS0iYBEXZb1P94cH//quhOqmUVEm/ j3mDeZH0COPkgi8WPBlai2MFnAu6eP6pKw5roCgW8FRZHH+vACzDQ//gA4glLldnKD99 4yP9X5wm+IlL2MSBqsR/fuYxiY3Js4IgP9Ov3ErnhA60bi/jBU0rc1+hxKdMKXYqY3xm aBjdkpQHbkxbUsNC72NbR9tfRiEEQmuC6xZIiXsmolZEZFS5Mr83pmgVGWQfsuR2hEBp N7QA== X-Gm-Message-State: APjAAAX2UAyhOFa94AUlWWXjZR/+zg/VYkV4UXg7TH0TwlMHfFNK2+lV Os87K1y3GPmzw28KX/knE7ymew== X-Received: by 2002:a62:458a:: with SMTP id n10mr3321188pfi.136.1554348952475; Wed, 03 Apr 2019 20:35:52 -0700 (PDT) Received: from xps15.imgcgcw.net ([147.50.13.10]) by smtp.gmail.com with ESMTPSA id u5sm12212780pfm.121.2019.04.03.20.35.48 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 03 Apr 2019 20:35:51 -0700 (PDT) From: Mathieu Poirier <mathieu.poirier@linaro.org> To: linux-arm-kernel@lists.infradead.org Cc: alexander.shishkin@linux.intel.com, peterz@infradead.org, suzuki.poulose@arm.com, mike.leach@arm.com, leo.yan@linaro.org, coresight@lists.linaro.org, linux-kernel@vger.kernel.org Subject: [PATCH v3 01/20] coresight: pmu: Adding ITRACE property to cs_etm PMU Date: Wed, 3 Apr 2019 21:35:22 -0600 Message-Id: <20190404033541.14072-2-mathieu.poirier@linaro.org> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20190404033541.14072-1-mathieu.poirier@linaro.org> References: <20190404033541.14072-1-mathieu.poirier@linaro.org> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: <linux-kernel.vger.kernel.org> X-Mailing-List: linux-kernel@vger.kernel.org |
Series |
coresight: Add support for CPU-wide trace scenarios
|
expand
|
On 04/04/2019 04:35, Mathieu Poirier wrote: > Add to the capabilities the ITRACE property so that ITRACE START events > are generated when the PMU is switched on by the core. > > Signed-off-by: Mathieu Poirier <mathieu.poirier@linaro.org> > --- Acked-by: Suzuki K Poulose <suzuki.poulose@arm.com>
diff --git a/drivers/hwtracing/coresight/coresight-etm-perf.c b/drivers/hwtracing/coresight/coresight-etm-perf.c index 4d5a2b9f9d6a..25ae56e924bb 100644 --- a/drivers/hwtracing/coresight/coresight-etm-perf.c +++ b/drivers/hwtracing/coresight/coresight-etm-perf.c @@ -566,7 +566,8 @@ static int __init etm_perf_init(void) { int ret; - etm_pmu.capabilities = PERF_PMU_CAP_EXCLUSIVE; + etm_pmu.capabilities = (PERF_PMU_CAP_EXCLUSIVE | + PERF_PMU_CAP_ITRACE); etm_pmu.attr_groups = etm_pmu_attr_groups; etm_pmu.task_ctx_nr = perf_sw_context;
Add to the capabilities the ITRACE property so that ITRACE START events are generated when the PMU is switched on by the core. Signed-off-by: Mathieu Poirier <mathieu.poirier@linaro.org> --- drivers/hwtracing/coresight/coresight-etm-perf.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) -- 2.17.1