Received: by 2002:a05:6a11:4021:0:0:0:0 with SMTP id ky33csp739432pxb; Tue, 14 Sep 2021 07:45:44 -0700 (PDT) X-Google-Smtp-Source: ABdhPJygoOUTf1RzRSkOpSA4vtFwz1EtSOWddn6JioHnucogo++rKYVgHjMByMg1JQQwtuyCcIso X-Received: by 2002:a17:906:32d9:: with SMTP id k25mr19479326ejk.290.1631630744054; Tue, 14 Sep 2021 07:45:44 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1631630744; cv=none; d=google.com; s=arc-20160816; b=mTcSNhJsTEecmZELmF6lZBhXgbb6rYdMI4N3DtYkWzq2PJau4d/fHsVyyvYNHEYWCf DQm1cPQ+l2ovuvecwai41CstfJmyjvw0lMAapms7V0vSnchy6I8bkkCSL/RniIRDNDqo oY+xTy0JbMCAtGhq/kCGs+F/s8Std9vk+Z2F1Th1XdDYhT96rVktPFkz9g7ayI3Hinjg sYCvrBAVqPjgu2nv6kWj9KSP8nUufz7zSBDFMW6CcBYSV/J78Yt5xx8Z6UlHVk2bVYNB ez8mU4acG1JwPp9vpa5Khs277bQKocgPbQIG2VL2TbHgw0Mkx+S3a59vUOfGD/qvVvNO JlRA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :user-agent:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=mLkmLtfZ6qgc99Q78QFBq8UK8Juw3ARpDdKKZbMNWiU=; b=Dt+eOybmyMIzyLYNADHazCetLQoY9eh1Ohf/yHGoqBg1zxpvPIYLCvX9NNxArxI8X/ KzcknBCaq8EGt4DO5bzs2HGeBWAj90IJZb8TDqn9b9GwH4uRlCDna3LW+mHMNaDWfWo0 6zh4mon+YjempDibaYuGQY23XfNjpGRyu4qDBpI/qV0GIprFaM9TwL0LNAu2RRj6c/B8 2xsWro8vLW5wSqOmdpafboyHZEX5oUmeVqP1govcUmZ09Pu+rz7sYmPuNjspmRaQ3mkY yQ8PeFCNN6WeXyDnfak/kXZ7tpPd7OeEgBdrs+A+4aEx7G8AFakJ3onTCqdt29SiPd0R jbNA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=H0O7Knjh; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id v12si10025442ejv.493.2021.09.14.07.45.14; Tue, 14 Sep 2021 07:45:44 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=H0O7Knjh; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S235067AbhINOnv (ORCPT + 99 others); Tue, 14 Sep 2021 10:43:51 -0400 Received: from mail.kernel.org ([198.145.29.99]:36030 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233765AbhINOnD (ORCPT ); Tue, 14 Sep 2021 10:43:03 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id 5730560F11; Tue, 14 Sep 2021 14:41:43 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1631630506; bh=KEe5WdEyJHtzuPMGzpiocUmfrX3xOnunn5dZvpKwBh8=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=H0O7KnjhENSKmymiA5AxlQMCLHYg2ceHsvASG+IFQBPitXqJgEtKcmTy+nr49fhnL g0s7MfkeO3HE80yGuVRkDI+kGC14tnhxbdCtYGY1O8bB+i50VEjZhyNX6H7bTFHA3S NpqCCWHm6vPzLRiCAUjJMS1ni9RPTH7Cbgk0/FbXrOi4nsdZJgrst5f1lKNe5+kZeG MQns1JpgsOL9GS2uWv+7CL93cE9g0RoXWQea906+LQNpn1PyXs82dfxB0mWJqcA0zw WDDlXpN44zB5wg19AUokdc3xyqoZVlhiJUYbMkBpRolTbOkCeDB0XSFsBUAPSxLU3Y /ht2po03iTdCQ== From: Masami Hiramatsu To: Steven Rostedt , Josh Poimboeuf , Ingo Molnar Cc: X86 ML , Masami Hiramatsu , Daniel Xu , linux-kernel@vger.kernel.org, bpf@vger.kernel.org, kuba@kernel.org, mingo@redhat.com, ast@kernel.org, Thomas Gleixner , Borislav Petkov , Peter Zijlstra , kernel-team@fb.com, yhs@fb.com, linux-ia64@vger.kernel.org, Abhishek Sagar , Andrii Nakryiko , Paul McKenney Subject: [PATCH -tip v11 20/27] ARC: Add instruction_pointer_set() API Date: Tue, 14 Sep 2021 23:41:41 +0900 Message-Id: <163163050148.489837.15187799269793560256.stgit@devnote2> X-Mailer: git-send-email 2.25.1 In-Reply-To: <163163030719.489837.2236069935502195491.stgit@devnote2> References: <163163030719.489837.2236069935502195491.stgit@devnote2> User-Agent: StGit/0.19 MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Add instruction_pointer_set() API for arc. Signed-off-by: Masami Hiramatsu --- arch/arc/include/asm/ptrace.h | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/arch/arc/include/asm/ptrace.h b/arch/arc/include/asm/ptrace.h index 4c3c9be5bd16..cca8d6583e31 100644 --- a/arch/arc/include/asm/ptrace.h +++ b/arch/arc/include/asm/ptrace.h @@ -149,6 +149,11 @@ static inline long regs_return_value(struct pt_regs *regs) return (long)regs->r0; } +static inline void instruction_pointer_set(struct pt_regs *regs, + unsigned long val) +{ + instruction_pointer(regs) = val; +} #endif /* !__ASSEMBLY__ */ #endif /* __ASM_PTRACE_H */