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 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 39403C433EF for ; Tue, 16 Nov 2021 13:54:20 +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 0359E61B98 for ; Tue, 16 Nov 2021 13:54:19 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.1 mail.kernel.org 0359E61B98 Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=arm.com Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=lists.infradead.org DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender:Content-Type: Content-Transfer-Encoding:List-Subscribe:List-Help:List-Post:List-Archive: List-Unsubscribe:List-Id:In-Reply-To:From:References:To:Subject:MIME-Version: Date:Message-ID:Reply-To:Cc:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Owner; bh=nmE/TOrpf/kbP8kcXfCiUiZ67N+hSw7h3GFLQXm6YGQ=; b=kIOH9qvFDiXTEIh/bLGw4kAVke ovNu4yXy2apFgl9cIwfGPLRSb5fWywrrHUA6m1ZPG/V8Eq1vQsi4h9QqraLtL8P4+cEoFSeZy06uT FCaLIxSv+W6GkcXIosdS0+nCjsRgYNQ9W9zYXsvLCEXPEyi+WzVZ5nzDKLMvz0iJgtOu2GSjRPvBd LpKAolcZbKkgidUGMCkzdPse/OG5kt5yzvhswTMULj3G0uy9RfCpDeD3T6ETg5n+3BAfiwmPiPw/x v3+vJ5aKu4CXHDaOqEGAYbILnOFjiq3FDNjiwHDus/Fjxm/k62RmUOOA3UI7gRA2+FkQjATWLOL3X fmb4LYUw==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1mmytR-001pSV-8k; Tue, 16 Nov 2021 13:53:01 +0000 Received: from foss.arm.com ([217.140.110.172]) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1mmytN-001pRm-9G for linux-arm-kernel@lists.infradead.org; Tue, 16 Nov 2021 13:52:58 +0000 Received: from usa-sjc-imap-foss1.foss.arm.com (unknown [10.121.207.14]) by usa-sjc-mx-foss1.foss.arm.com (Postfix) with ESMTP id 71BB26D; Tue, 16 Nov 2021 05:52:55 -0800 (PST) Received: from [10.57.76.160] (unknown [10.57.76.160]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPSA id 2FD7F3F766; Tue, 16 Nov 2021 05:52:54 -0800 (PST) Message-ID: Date: Tue, 16 Nov 2021 13:52:52 +0000 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:91.0) Gecko/20100101 Thunderbird/91.3.0 Subject: Re: [PATCH v1 0/4] coresight: etm: Correct (virtual) contextID tracing for namespace To: Leo Yan , Mathieu Poirier , Mike Leach , Alexander Shishkin , James Clark , coresight@lists.linaro.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org References: <20211031144214.237879-1-leo.yan@linaro.org> From: Suzuki K Poulose In-Reply-To: <20211031144214.237879-1-leo.yan@linaro.org> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20211116_055257_431740_BF0BAB14 X-CRM114-Status: GOOD ( 14.44 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Transfer-Encoding: 7bit Content-Type: text/plain; charset="us-ascii"; Format="flowed" Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org Hi Leo On 31/10/2021 14:42, Leo Yan wrote: > If a profiling program runs in a non-root PID namespace, if CoreSight > driver enables contextID tracing, it can lead to mismatching issue > between the context ID in hardware trace data and the allocated PID in > the non-root namespace. > > CoreSight driver has tried to address this issue for the contextID > related interfaces under sysfs, but it misses other parts: it doesn't > prevent user to set VMID (virtual contextID) for kernel runs in EL2 with > VHE, and furthermore, it misses to handle the perf mode when the > profiling tool (e.g. perf) doesn't run in root PID namespace. > > For this reason, this patch series is to correct contextID tracing for > non-root namespace. > > Patch 01 is to use spinlock to protect reading virtual context ID > comparator. > > Patch 02 corrects the virtual contextID tracing for non-root PID > namespace. > > Patch 03/04 are used to fix the contextID tracing for perf mode. > > I only verified this patch series on Juno board in the root PID > namespace and confirmed the patches don't introduce any regression for > root PID namespace. > I have finished reviewing the set. Suzuki _______________________________________________ linux-arm-kernel mailing list linux-arm-kernel@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel