From patchwork Wed Aug 19 21:10:14 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Mike Leach X-Patchwork-Id: 11725049 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 041E314E3 for ; Wed, 19 Aug 2020 21:10:34 +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 CD503204FD for ; Wed, 19 Aug 2020 21:10:33 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=lists.infradead.org header.i=@lists.infradead.org header.b="YAKWxUMc"; dkim=fail reason="signature verification failed" (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b="DaqP1smy" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org CD503204FD 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+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:MIME-Version:Cc:List-Subscribe:List-Help:List-Post:List-Archive: List-Unsubscribe:List-Id: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:In-Reply-To:References:List-Owner; bh=4qFIFGQoGn9BJXAqKU+HPYS7DU0jEsL3GWXtxjCRPNc=; b=YAKWxUMcT+ko2IkjZ/ifYGjZWB Kr4Ou4Ttwo945tXOT6uaqM4nyFcvE1mkV1XAcOw3K5cshrK1uhrrMHqIrEk2SxgFkpNRSC27SjgMm C9Y2xfkzZ/9SZ8W2PrmbGbQjwThIH5qKY7xTq/rAvWZwknxU6of7Vz9Ms4pj0wsoNVcG48XwI73RP FfKEj+LD2LD8e+KOwKNoUrL2wKFMEtCe8EBtKSWV3XUh/R8QJdRcm6v7c/ttkMpoPwiG7taHoyMZA p/6cSANX1N0DtCw3METffYoW5mcX2Ym0jSw4xCUNTDyITDt99AzEaGkgoowjXAf9doRewZD5xSPW2 HYo0WAMA==; Received: from localhost ([::1] helo=merlin.infradead.org) by merlin.infradead.org with esmtp (Exim 4.92.3 #3 (Red Hat Linux)) id 1k8VLi-00065C-7w; Wed, 19 Aug 2020 21:10:22 +0000 Received: from mail-wm1-x343.google.com ([2a00:1450:4864:20::343]) by merlin.infradead.org with esmtps (Exim 4.92.3 #3 (Red Hat Linux)) id 1k8VLe-0005zb-R3 for linux-arm-kernel@lists.infradead.org; Wed, 19 Aug 2020 21:10:20 +0000 Received: by mail-wm1-x343.google.com with SMTP id f18so2455253wmc.0 for ; Wed, 19 Aug 2020 14:10:18 -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; bh=p2F8vIBO9ej2nqTWxrw7KgzkIBkc7jfpRuAR2NhS8iE=; b=DaqP1smyHipZf/NshPEI8i7cFkcKYFtMKZdB0GI3DqJASXSrHLX/Q2n7ieA8D0fPmI Iftvv1iRI+TSnvMeWwH3etWI17tVu62bTlVKZCQafhv2SYQi3uXhfoR2PdIcDNmvpRYA EW7VuE3uU84X8wfgtLt+wNTupOrozxKeWAG2LqYIyTFWCR27JZ0XiZcMBIAzDVobCODr 0sv3LDcetZByKwfAGImB5u5e5ts709c8HIHXTnD7b+pM7zXIHQZaHz47elkwbfFuwla8 /QYN344XwLMm/lcFlqpiTrARNdfLL74VxguJqqrxrcxW1ob5NHQzZ6FD+XUWlToi7cJb uzkA== 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; bh=p2F8vIBO9ej2nqTWxrw7KgzkIBkc7jfpRuAR2NhS8iE=; b=ridgVo4eDLWA+6111kofXZfNXi6QfOQxlIJ82ZlSSQEcsto4VOdsCOcMbFXOS1SgGF 1f+j/M/47NsI2KDN3ohJEZJ4/q0hDd27M1EEaCnnlQoaA3skKugc6Zd5ipb8sSCwd4UJ w0VYdKKdCZYwti+zDbIj3mM0Z7SHolTJiBOkWkNdih0+Cjap0NoTxKVRgAcc4R6BsnMN PWIqxoUyKZ9OlIUq114hahP89gyYgsifgDaiZ5BBDK4sHQZjb7VLWEWRAwjVE68dZKJ3 qmRfOVg77yHJVenNhdkTlnt5T538GIRDcI/tZiQjTErBmRCsOHWgBfH8Z0TsKCLNRtVA jQTw== X-Gm-Message-State: AOAM532N8tb3bAjRVgXzNuZP7ioeeXVJ4X1lDuOhcpFkKE8GTH2HINi3 dFTPzov/QYdICbwy3LWDrUoBP2EhsxmSzQ== X-Google-Smtp-Source: ABdhPJzwMwcpv29TH6w5v0Kady1LFuffUlKPDR64SbzVeMQt/hYMPN6yD6Y8yzht7r5y3IHPkT/K5Q== X-Received: by 2002:a1c:541b:: with SMTP id i27mr136351wmb.179.1597871417199; Wed, 19 Aug 2020 14:10:17 -0700 (PDT) Received: from linaro.org ([2a00:23c5:6801:1801:cd32:959f:4432:132a]) by smtp.gmail.com with ESMTPSA id x11sm135646wrl.28.2020.08.19.14.10.16 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 19 Aug 2020 14:10:16 -0700 (PDT) From: Mike Leach To: linux-arm-kernel@lists.infradead.org, coresight@lists.linaro.org, mathieu.poirier@linaro.org, leo.yan@linaro.org Subject: [PATCH v2 0/1] coresight: etm4x: Fix kernel / user space filtering in perf Date: Wed, 19 Aug 2020 22:10:14 +0100 Message-Id: <20200819211015.28448-1-mike.leach@linaro.org> X-Mailer: git-send-email 2.17.1 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20200819_171019_166510_E0E98A23 X-CRM114-Status: UNSURE ( 9.54 ) X-CRM114-Notice: Please train this message. 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 [2a00:1450:4864:20:0:0:0:343 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_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 -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 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: Mike Leach , suzuki.poulose@arm.com MIME-Version: 1.0 Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org Kernel / User mode filtering was relying on side effect of access control of default full address range filtering. This now uses the main control register to remove dependency on address filter being present as default setting. Changes since v1: 1. created helper fn to set filter values & improved comment. 2. added fix to sysfs mode settings Mike Leach (1): coresight: etm4x: Ensure default perf settings filter user/kernel drivers/hwtracing/coresight/coresight-etm4x.c | 32 +++++++++++++------ drivers/hwtracing/coresight/coresight-etm4x.h | 3 ++ 2 files changed, 25 insertions(+), 10 deletions(-)