From nobody Sat Nov 30 05:40:12 2024 Received: from mail-yb1-f201.google.com (mail-yb1-f201.google.com [209.85.219.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 23FB11C1AD8 for ; Thu, 12 Sep 2024 20:51:40 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.219.201 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1726174301; cv=none; b=defUcCddTMJPFUvHOmzria+Lv+TYIJzIF5xJgdqKEQvJ8Tn+Attshs+INQgTw90QFB8YX9skbjPVouI4OlNMQecRPr/Rf3xhFVLCC0LvPQoPBl4nfQC/Fm5GQFf+SyIo1yBZE8agHr+23yO127iDu9hYdZsBAhHpTxy30rBE3TY= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1726174301; c=relaxed/simple; bh=pmE1v3lPafn5e/IdEGvJX2LgNHvxAhIJEOQCTre4Ijg=; h=Date:In-Reply-To:Mime-Version:References:Message-ID:Subject:From: To:Cc:Content-Type; b=Nlhs6DNT05aO+i1VFmFAcXvjsX6DYiSx+Lase9SPH4e7ynqiHadR6aztVHW/YlaT3hdyFJr6jhpMeap67UfU9OzWZJcK0qSQIeoCCMMhBpm3s/ucTNkQh9zUCE2BBULguXkJDPY3mzv6buJt4ED2+VPp/kExPUZjGcwwnpNc2Mw= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=google.com; spf=pass smtp.mailfrom=flex--coltonlewis.bounces.google.com; dkim=pass (2048-bit key) header.d=google.com header.i=@google.com header.b=4KA/Wsqr; arc=none smtp.client-ip=209.85.219.201 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=google.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=flex--coltonlewis.bounces.google.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=google.com header.i=@google.com header.b="4KA/Wsqr" Received: by mail-yb1-f201.google.com with SMTP id 3f1490d57ef6-e1a892d8438so2802902276.3 for ; Thu, 12 Sep 2024 13:51:40 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20230601; t=1726174299; x=1726779099; darn=vger.kernel.org; h=cc:to:from:subject:message-id:references:mime-version:in-reply-to :date:from:to:cc:subject:date:message-id:reply-to; bh=2R8Y3DFBOrXpT6Dp+2pnByuz3JsPwrzU4P/6bkl9CfA=; b=4KA/WsqroocPgEf/Kvn1/+NAsnFqu4g+y+EoP5K884ge0R2EhUY2p/Bc66jAEjNg1/ 37WqiJ3J4/y55PhgPCmkESjikU9t+l/LLuk54JX6mRGNKKm5jw+asQkztQ/i+HtNrb1Z j5egYrDvG8Lq82fgfzpVao98Q6DrIg43u2D+WnGhWNayX7N0KaKPDcFpPgSN+/yWq91T 6aHTmxebgGiW3HA6wOjVnWoB93MVEPUNSPsvA+w2lSvbOVXRP/w9nPB2SWvphpUFLTwT afyM0U/BtG09tzQZyhFDD3LDYvRezDGv6AOkIyOq3m5E+6e6oNJ3aehC+OLfQDu+B3Gq vM5g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1726174299; x=1726779099; h=cc:to:from:subject:message-id:references:mime-version:in-reply-to :date:x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=2R8Y3DFBOrXpT6Dp+2pnByuz3JsPwrzU4P/6bkl9CfA=; b=tXSeVItQI3hYYoqPQdiq2z5+N3Q530DnaHgWKjMZOPI0KLSoETv3w4hrLnjPqUG4w5 uE6FUJfS63XEM23/J6upudlMmX9+Mn1wQOV0yDkeRaQe/oEo5igWFmo9j0FXSn654ZO6 9k5dHRi0Lp7iBZykpXZx+Wl/wuHznmS4QdnWJ6TRYzGYOY82IP6sDDZbaGfXoPYKFpGl oaEHKob39xOkZkoGbQEkim+hWbcaJbESp90mRSqbAcwndPxrPJox09fz0dQRcE1X6eI6 Mzj+i7nn5kWVPGiEtKPYkNSr/D4HhjbqhJ7kgd9kIWbbW1QxbgusznKBJB876N9jkJL+ XZ/Q== X-Forwarded-Encrypted: i=1; AJvYcCUSGwofDPRrPDOGt3Kndi6V1w8SIumF4vADmJbl/tWssfDtp91JBvNxLzfyeMNc9wLEpwRp0Q0XX7PVWL8=@vger.kernel.org X-Gm-Message-State: AOJu0YwTqG17wtp62EJ/YymoqkB8/kmMIm+qrdk3zjr90mPA6TQwIT2k CAt4VN4IWPtrkNLyME1o8fMeu2/KgRcdeMrsbtEJnZ4wTb9epQA+RxFphaCeKK9tMuS5/f8VuqN Tb8uLljIQdGkp041PxmniOA== X-Google-Smtp-Source: AGHT+IFV1m07CCTdDWX2FOgecLasTDjDmm3XH/XZUgTEGDR6/YrsS27OTSnLSt+SciKeVBgsQCat9dX1tnl2/VgIOw== X-Received: from coltonlewis-kvm.c.googlers.com ([fda3:e722:ac3:cc00:11b:3898:ac11:fa18]) (user=coltonlewis job=sendgmr) by 2002:a05:6902:1743:b0:e03:3cfa:1aa7 with SMTP id 3f1490d57ef6-e1d9db9e1b8mr5314276.1.1726174299130; Thu, 12 Sep 2024 13:51:39 -0700 (PDT) Date: Thu, 12 Sep 2024 20:51:31 +0000 In-Reply-To: <20240912205133.4171576-1-coltonlewis@google.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: Mime-Version: 1.0 References: <20240912205133.4171576-1-coltonlewis@google.com> X-Mailer: git-send-email 2.46.0.662.g92d0881bb0-goog Message-ID: <20240912205133.4171576-4-coltonlewis@google.com> Subject: [PATCH v3 3/5] powerpc: perf: Use perf_arch_instruction_pointer() From: Colton Lewis To: kvm@vger.kernel.org Cc: Oliver Upton , Sean Christopherson , Peter Zijlstra , Ingo Molnar , Arnaldo Carvalho de Melo , Namhyung Kim , Mark Rutland , Alexander Shishkin , Jiri Olsa , Ian Rogers , Adrian Hunter , Kan Liang , Will Deacon , Russell King , Catalin Marinas , Michael Ellerman , Nicholas Piggin , Christophe Leroy , Naveen N Rao , Heiko Carstens , Vasily Gorbik , Alexander Gordeev , Christian Borntraeger , Sven Schnelle , Thomas Gleixner , Borislav Petkov , Dave Hansen , x86@kernel.org, "H . Peter Anvin" , linux-perf-users@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linuxppc-dev@lists.ozlabs.org, linux-s390@vger.kernel.org, Colton Lewis Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" Make sure powerpc uses the arch-specific function now that those have been reorganized. Signed-off-by: Colton Lewis --- arch/powerpc/perf/callchain.c | 2 +- arch/powerpc/perf/callchain_32.c | 2 +- arch/powerpc/perf/callchain_64.c | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/arch/powerpc/perf/callchain.c b/arch/powerpc/perf/callchain.c index 6b4434dd0ff3..26aa26482c9a 100644 --- a/arch/powerpc/perf/callchain.c +++ b/arch/powerpc/perf/callchain.c @@ -51,7 +51,7 @@ perf_callchain_kernel(struct perf_callchain_entry_ctx *en= try, struct pt_regs *re =20 lr =3D regs->link; sp =3D regs->gpr[1]; - perf_callchain_store(entry, perf_instruction_pointer(regs)); + perf_callchain_store(entry, perf_arch_instruction_pointer(regs)); =20 if (!validate_sp(sp, current)) return; diff --git a/arch/powerpc/perf/callchain_32.c b/arch/powerpc/perf/callchain= _32.c index ea8cfe3806dc..ddcc2d8aa64a 100644 --- a/arch/powerpc/perf/callchain_32.c +++ b/arch/powerpc/perf/callchain_32.c @@ -139,7 +139,7 @@ void perf_callchain_user_32(struct perf_callchain_entry= _ctx *entry, long level =3D 0; unsigned int __user *fp, *uregs; =20 - next_ip =3D perf_instruction_pointer(regs); + next_ip =3D perf_arch_instruction_pointer(regs); lr =3D regs->link; sp =3D regs->gpr[1]; perf_callchain_store(entry, next_ip); diff --git a/arch/powerpc/perf/callchain_64.c b/arch/powerpc/perf/callchain= _64.c index 488e8a21a11e..115d1c105e8a 100644 --- a/arch/powerpc/perf/callchain_64.c +++ b/arch/powerpc/perf/callchain_64.c @@ -74,7 +74,7 @@ void perf_callchain_user_64(struct perf_callchain_entry_c= tx *entry, struct signal_frame_64 __user *sigframe; unsigned long __user *fp, *uregs; =20 - next_ip =3D perf_instruction_pointer(regs); + next_ip =3D perf_arch_instruction_pointer(regs); lr =3D regs->link; sp =3D regs->gpr[1]; perf_callchain_store(entry, next_ip); --=20 2.46.0.662.g92d0881bb0-goog