From patchwork Fri Sep 4 02:41:05 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Linu Cherian X-Patchwork-Id: 11755643 Return-Path: Received: from mail.kernel.org (pdx-korg-mail-1.web.codeaurora.org [172.30.200.123]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 54D37746 for ; Fri, 4 Sep 2020 02:43:47 +0000 (UTC) Received: from merlin.infradead.org (merlin.infradead.org [205.233.59.134]) (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 2743020775 for ; Fri, 4 Sep 2020 02:43:47 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=lists.infradead.org header.i=@lists.infradead.org header.b="U6wHx7li"; dkim=fail reason="signature verification failed" (2048-bit key) header.d=marvell.com header.i=@marvell.com header.b="FinwdJ5x" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 2743020775 Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=marvell.com Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=merlin.20170209; h=Sender:Content-Transfer-Encoding: Content-Type:Cc:List-Subscribe:List-Help:List-Post:List-Archive: List-Unsubscribe:List-Id:MIME-Version: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=zslJl4aUkXnioctt3jAzzZsHJi8r1nR+c9HgVvEzoAk=; b=U6wHx7liPaUBzJfF5X9mX2UJe p+GgFMhqbbOaUUlREcsBjosGKeoWFFtcuA2EUkDD7gvv0b0qIpSwbizEtvnfI4K6epfLdG3Lzve9m c+D1ReFKq5I2DlnZCPOjVfUZ9FyjxwZA/RZ76eoM2WPVJcdcvj00OaVU7HEybEccHBS6Bwjl7mnAz EJUO/ui7vbHF5w3x2Ev3ovN2Kk+fCpTaHHLm6EuurE4IhtkEx7mlEXPlPe9UBUVmEseU4gFagN0wR IqXPnCcWMrpcAq0hQoVVVLqyTszMT4njeaTCuw44I6cXY3YZK3wohquGLEu2advIp8yMj4dg+cY3F K1j3D9LUg==; Received: from localhost ([::1] helo=merlin.infradead.org) by merlin.infradead.org with esmtp (Exim 4.92.3 #3 (Red Hat Linux)) id 1kE1hQ-0006RT-65; Fri, 04 Sep 2020 02:43:36 +0000 Received: from mx0b-0016f401.pphosted.com ([67.231.156.173]) by merlin.infradead.org with esmtps (Exim 4.92.3 #3 (Red Hat Linux)) id 1kE1hN-0006Qy-JY for linux-arm-kernel@lists.infradead.org; Fri, 04 Sep 2020 02:43:34 +0000 Received: from pps.filterd (m0045851.ppops.net [127.0.0.1]) by mx0b-0016f401.pphosted.com (8.16.0.42/8.16.0.42) with SMTP id 0842aAvF015071; Thu, 3 Sep 2020 19:43:30 -0700 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=marvell.com; h=from : to : cc : subject : date : message-id : in-reply-to : references : mime-version : content-transfer-encoding : content-type; s=pfpt0220; bh=sNVpIu2OP1jfjigtIALebgwUSM0vEYr53UXb+m3Nz9w=; b=FinwdJ5xEgwiKhG6evqOdOfjhtU4wKHUwstuwj/RAX2xoo1Nhai/7zQCvu37eQ+xch6S Ifr/3svcSYZxvK7n0vhVykV/O0HsEBu95xJGMKG9NFL+Gr3suMMugvCLLbxkyXqM8EhY 2cYasYBEPUSuFtkGEm4Owu/jzRUXnReGGMb5mJw1Jl2QO9pJDF1CKaP2yaojGLC3pe+k BWXGXSryoky5orIFW0EmGA75xXFx9lLF8f9RwJGspAPkbDINfyTOKh4ettEvpfT8N3HW o4BmG6ozE2UiaQjtgjHN1xlu70HpVO+O4CsLcTVvDEyvF6t4Q/KwRIjPXGS6Li9/9PiW Qw== Received: from sc-exch03.marvell.com ([199.233.58.183]) by mx0b-0016f401.pphosted.com with ESMTP id 337phqfd9v-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-SHA384 bits=256 verify=NOT); Thu, 03 Sep 2020 19:43:30 -0700 Received: from DC5-EXCH02.marvell.com (10.69.176.39) by SC-EXCH03.marvell.com (10.93.176.83) with Microsoft SMTP Server (TLS) id 15.0.1497.2; Thu, 3 Sep 2020 19:43:29 -0700 Received: from virtx40.marvell.com (10.69.176.80) by DC5-EXCH02.marvell.com (10.69.176.39) with Microsoft SMTP Server id 15.0.1497.2 via Frontend Transport; Thu, 3 Sep 2020 19:43:26 -0700 From: Linu Cherian To: , , Subject: [PATCH v4 1/2] coresight: etm: perf: Sink selection using sysfs is deprecated Date: Fri, 4 Sep 2020 08:11:05 +0530 Message-ID: <20200904024106.21478-2-lcherian@marvell.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20200904024106.21478-1-lcherian@marvell.com> References: <20200904024106.21478-1-lcherian@marvell.com> MIME-Version: 1.0 X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10434:6.0.235, 18.0.687 definitions=2020-09-04_02:2020-09-03, 2020-09-04 signatures=0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20200903_224333_700751_823FAF4B X-CRM114-Status: GOOD ( 13.85 ) X-Spam-Score: -0.2 (/) X-Spam-Report: SpamAssassin version 3.4.4 on merlin.infradead.org summary: Content analysis details: (-0.2 points) pts rule name description ---- ---------------------- -------------------------------------------------- -0.0 RCVD_IN_DNSWL_NONE RBL: Sender listed at https://www.dnswl.org/, no trust [67.231.156.173 listed in list.dnswl.org] -0.0 SPF_PASS SPF: sender matches SPF record 0.0 SPF_HELO_NONE SPF: HELO does not publish an SPF Record -0.1 DKIM_VALID_AU Message has a valid DKIM or DK signature from author's domain -0.1 DKIM_VALID_EF Message has a valid DKIM or DK signature from envelope-from domain 0.1 DKIM_SIGNED Message has a DKIM or DK signature, not necessarily valid -0.1 DKIM_VALID Message has at least one valid DKIM or DK signature X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: coresight@lists.linaro.org, linuc.decode@gmail.com, linux-arm-kernel@lists.infradead.org, Linu Cherian Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org When using the perf interface, sink selection using sysfs is deprecated. Signed-off-by: Linu Cherian --- drivers/hwtracing/coresight/coresight-etm-perf.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/drivers/hwtracing/coresight/coresight-etm-perf.c b/drivers/hwtracing/coresight/coresight-etm-perf.c index 1a3169e69bb1..d1bf62f47f72 100644 --- a/drivers/hwtracing/coresight/coresight-etm-perf.c +++ b/drivers/hwtracing/coresight/coresight-etm-perf.c @@ -222,8 +222,6 @@ static void *etm_setup_aux(struct perf_event *event, void **pages, if (event->attr.config2) { id = (u32)event->attr.config2; sink = coresight_get_sink_by_id(id); - } else { - sink = coresight_get_enabled_sink(true); } mask = &event_data->mask;