From patchwork Mon Mar 25 21:56:17 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Mathieu Poirier X-Patchwork-Id: 10870085 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id EBF5F1708 for ; Mon, 25 Mar 2019 21:56:45 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id D1B5C28B59 for ; Mon, 25 Mar 2019 21:56:45 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id BFDA229140; Mon, 25 Mar 2019 21:56:45 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-5.2 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,MAILING_LIST_MULTI,RCVD_IN_DNSWL_MED autolearn=ham version=3.3.1 Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id 568FA28B59 for ; Mon, 25 Mar 2019 21:56:45 +0000 (UTC) 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:MIME-Version:Cc:List-Subscribe: List-Help:List-Post:List-Archive:List-Unsubscribe:List-Id:References: In-Reply-To:Message-Id:Date:Subject:To:From:Reply-To:Content-ID: Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc :Resent-Message-ID:List-Owner; bh=Prau8lWBTufRTkcDeWUMLu/ITvmxb37LcyuqEkjUU+U=; b=MOgiJzKI1rBpffdwSOs3NGKLOw twyMeuSkC/FJlDd13yHcHjJJ8hpSoUsFOnmGuvmC2Bv7hdO20Aw7DTQC/A0bfuJhXgvJERznoVSlY BdIkZjc7Qrmzzs2ntSfIttdTJ9VuxciQeEtj3sV1R+GPIjeRZaOEAkD/n1boJmhwZQXAsHoUiZGal +WNs1+JcsXxbBe5dBMRuhOsK6idT7gev39MKnyOT+XfBw785Iduoc9VhkKR+Ygo/x6gttcG1rN/hE hrlh/LWhFJojpJIiH4Q5rDCeVEyFkFeFUM5KOCjePJta3Us2Fva1AvFW3pySt28qHpdnCuO3nTkz7 W6dwnPjQ==; 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 1h8XaE-0003mS-JY; Mon, 25 Mar 2019 21:56:42 +0000 Received: from mail-pg1-x542.google.com ([2607:f8b0:4864:20::542]) by bombadil.infradead.org with esmtps (Exim 4.90_1 #2 (Red Hat Linux)) id 1h8Xa9-0003ki-KZ for linux-arm-kernel@lists.infradead.org; Mon, 25 Mar 2019 21:56:40 +0000 Received: by mail-pg1-x542.google.com with SMTP id y3so7205717pgk.12 for ; Mon, 25 Mar 2019 14:56:36 -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=xhaBC6ydIMYCyLey3kCYXRTceSLU6oAANFb+GCvpJRlAKn+gg45Zn7MW/nY1GFqDmD BmvPshpw7+w8c5lMocvqPgVcLxc/JxmFM5QM1CX1QRGXp2JYcT/pYNEC++ICR5nwirQs fgvSj9epT5Dc8SBB5nviGgnV+o5wQwJGWf8v22k+97t1PAzsJjPpZEantIEUnH2Tc7jp Ir/aep/7bgglKGBsHuHf+etPhPz1QnVocFpukLRG8ujQWMqGfAdea5O7fCK84ZLKpBAP GlQcPIZArVPUTYiaG3RFZhk26hbkrbKqw6hH+rzqbj7f7lw7+idah76fACM2tybJSSqh rXCw== 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=LCH/rWhm7Kp1CTQTDUzxgKCNW2hTFMsHnkN1x74U64/sxiMi9FSkQb9b0bEQmmGB06 tS95+qcbyk6ud7Oq9A/KHbkGXflMb7EtWp6HlEOWeF2504mCKp+c2v+SR9zWAvSEmg9V Fw17vE3TsfxylMaurAQ+xmsg5VMrYbV3Bf7/kqznpLUnA8CxSJQqG6Mz1nDGZOUQEihj 4uKV5wimC9MiM38OB0oOW5jJ2ZB6dKwLwHe1lfzzfFOLJMo9M3hWtggqW3UZt8fYSwDE q2RiOZEN6I8SDcIZ9BnBYUgQFMZqz7oNO2dBj4yCNgm4y7nyHJ8OWAvh9NSRmOkF4Mqy Up3w== X-Gm-Message-State: APjAAAXTybBrZK2x8TVJvkmzxSGfCOiPqUwZzSuDkWMtDFdezx4jkd4i e34Z0WM+Tyc0td9pmCOtmmLvGi0lmQc= X-Google-Smtp-Source: APXvYqymYsF5pTquxVn0e8tyKd6tVpkZ/MNwxzG3nNIIHe3hDn9TDzV6TM+Nful3JvBXJirAynoppQ== X-Received: by 2002:a63:e845:: with SMTP id a5mr25311500pgk.246.1553550995760; Mon, 25 Mar 2019 14:56:35 -0700 (PDT) Received: from xps15.cg.shawcable.net (S0106002369de4dac.cg.shawcable.net. [68.147.8.254]) by smtp.gmail.com with ESMTPSA id j20sm30645631pfi.27.2019.03.25.14.56.34 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 25 Mar 2019 14:56:35 -0700 (PDT) From: Mathieu Poirier To: linux-arm-kernel@lists.infradead.org Subject: [PATCH v2 01/16] coresight: pmu: Adding ITRACE property to cs_etm PMU Date: Mon, 25 Mar 2019 15:56:17 -0600 Message-Id: <20190325215632.17013-2-mathieu.poirier@linaro.org> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20190325215632.17013-1-mathieu.poirier@linaro.org> References: <20190325215632.17013-1-mathieu.poirier@linaro.org> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20190325_145637_683483_A50A3DF8 X-CRM114-Status: GOOD ( 12.70 ) 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, leo.yan@linaro.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-Virus-Scanned: ClamAV using ClamSMTP 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 --- drivers/hwtracing/coresight/coresight-etm-perf.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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;