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 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 smtp.lore.kernel.org (Postfix) with ESMTPS id 9C0E0C433F5 for ; Thu, 21 Apr 2022 16:53:22 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:Message-Id:Date:Subject:Cc :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=kNvV4P0mipRrLeS6Qz7adWVV/4/7F4yZvOtV1jLqtKU=; b=3/SDWVUTuK1iA/ ukLFr6Ol98KcKj6xjuk1U8yj7xsIF3baOGp/v+n3dJcLGVF2+CKz5/eSXIgpwhjHllTgPdN/mcdkj 61z94dzyrjkA7flwwxsoQo6ERtT/hZpzI9nR6LEDhpAmdY+AD4gdPoVlZt0W5N5TkGW6ZY6IqJJNm 02HMKZdJuu1ff/Je0gOJv5iZ/MjSVS7InQVAUdKwaiNFcQlWkWgpt0kkC50Jz4KxIqHd9JF5xhQCy V9x1rgy3aMaZ22Pu5Makk3GRepH4+qW7VMgW2E9ZFbpouUyVRejGNe+LhA5fs14DpxULGQ3DHLJZZ HkcdeGFxnSd1PTSUNplA==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1nha2e-00EKEZ-6c; Thu, 21 Apr 2022 16:52:28 +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 1nha2a-00EKD5-Gv for linux-arm-kernel@lists.infradead.org; Thu, 21 Apr 2022 16:52:25 +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 96C82153B; Thu, 21 Apr 2022 09:52:20 -0700 (PDT) Received: from ip-10-252-15-9.eu-west-1.compute.internal (unknown [10.252.15.9]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPA id DAE213F73B; Thu, 21 Apr 2022 09:52:17 -0700 (PDT) From: Timothy Hayes To: linux-kernel@vger.kernel.org, linux-perf-users@vger.kernel.org, acme@kernel.org Cc: John Garry , Will Deacon , Mathieu Poirier , Leo Yan , Mark Rutland , Alexander Shishkin , Jiri Olsa , Namhyung Kim , Martin KaFai Lau , Song Liu , Yonghong Song , John Fastabend , KP Singh , linux-arm-kernel@lists.infradead.org, netdev@vger.kernel.org, bpf@vger.kernel.org Subject: [PATCH 0/3] perf: arm-spe: Fix addresses of synthesized Arm SPE events Date: Thu, 21 Apr 2022 17:52:02 +0100 Message-Id: <20220421165205.117662-1-timothy.hayes@arm.com> X-Mailer: git-send-email 2.25.1 MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20220421_095224_646881_BC064582 X-CRM114-Status: UNSURE ( 6.74 ) X-CRM114-Notice: Please train this message. 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-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org This patch set fixes problems related to address in synthesized events from SPE. Committer testing: perf record --no-bpf-event -e arm_spe_0/pa_enable=1/ -- sleep 1 perf inject -i perf.data -o perf-inj.data --itrace --strip perf script -i perf-inj.data --fields hw:+addr,+phys_addr Before: sleep 49337 [004] 20133.731889: 1 l1d-access: ffffcbebcde1d5b8 [unknown] ([unknown]) sleep 49337 [004] 20133.731889: 1 tlb-access: ffffcbebcde1d5b8 [unknown] ([unknown]) sleep 49337 [004] 20133.731889: 1 memory: ffffcbebcde1d5b8 [unknown] ([unknown]) After: sleep 49337 [004] 20133.731889: 1 l1d-access: ffff800034123970 ffffcbebcde1d5b8 [unknown] ([unknown]) 153d19970 sleep 49337 [004] 20133.731889: 1 tlb-access: ffff800034123970 ffffcbebcde1d5b8 [unknown] ([unknown]) 153d19970 sleep 49337 [004] 20133.731889: 1 memory: ffff800034123970 ffffcbebcde1d5b8 [unknown] ([unknown]) 153d19970 tools/perf/arch/arm64/util/arm-spe.c | 10 ++++++++++ tools/perf/tests/attr/README | 1 + tools/perf/tests/attr/test-record-spe-physical-address | 12 ++++++++++++ tools/perf/util/arm-spe.c | 5 +++-- 4 files changed, 26 insertions(+), 2 deletions(-) _______________________________________________ linux-arm-kernel mailing list linux-arm-kernel@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel