Received: by 2002:a05:6a10:1287:0:0:0:0 with SMTP id d7csp6130030pxv; Thu, 29 Jul 2021 07:13:14 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyLgqw2N84Ul6KUJZXNkdF+4egKcWkyeOZnfxn27L8gZ++7erhaSw3HkbXxA5DLySKMq0C/ X-Received: by 2002:a92:d388:: with SMTP id o8mr3779665ilo.247.1627567994404; Thu, 29 Jul 2021 07:13:14 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1627567994; cv=none; d=google.com; s=arc-20160816; b=0AEOlehNPEStwx90xzXw6bwNTSlYQgzucY2AF6WzSeUuibsasceDE6OvzEtqQvMmf5 roCYh2iXmH2KPb+4HK7tGqx/3BkefsMw7Pm04rqN1GyDRivOny/0Pjnsq3mjOtxAbi+f zTzVF1ySHUEoB6Uxrp3PCu6ovjuXqAjFDkiRiU+oa5ELezzMJ5aXY7pIJLB4AkLsmeb5 hL7fkd0V8SdrKGmwTMLkwXcYRyc0/BIJBPgagU9CkxgEomfJEf/u/Yaf4cT1kTSxPBnS SQjo5rYbr2METhojXHJIHGEGQv2WEXt3wz+l5Y0WjyfKpgEVZcoN2gehOzMqPMKsnixU GJow== 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=vvF9SrqDFuQK3Jg/uLWTRDaZoh9Yu9YmxBIrdgQaq1OpuDc+Z66WtyVt9ITG9TVh8P qJ5WYaelPhvNqAJ18JL7yNXqIUKIloiihhSP9ZH9Bl4S04SkQ7mnywDyn7Qxib653yLO AF0ii/ikGEKOQ7FnZxiddBPQR4CKQQxFwlmpk4TnYXjqHLbvqyrMyFiIS0INXqaFV8QE Okc6kQfbZwVTEEj2YqI+J9JTA/Jqv6Vrq4b3xoP4ZcbLj2P+Gb3hFGAkZZdePgTyXOJV RAaq6G9neZOl5dZo+E3rahXrNdkL3qUb1J8PefdJ+/Ts4seE9KoePSUfVDn/0KZWhwiR L1lA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=g7kMJSyT; 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 d17si3307425ilf.150.2021.07.29.07.13.03; Thu, 29 Jul 2021 07:13:14 -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=g7kMJSyT; 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 S234357AbhG2OLC (ORCPT + 99 others); Thu, 29 Jul 2021 10:11:02 -0400 Received: from mail.kernel.org ([198.145.29.99]:57024 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S238652AbhG2OHd (ORCPT ); Thu, 29 Jul 2021 10:07:33 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id A296860FE7; Thu, 29 Jul 2021 14:07:21 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1627567644; bh=KEe5WdEyJHtzuPMGzpiocUmfrX3xOnunn5dZvpKwBh8=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=g7kMJSyTGhPNbxT3kA9PC39kYiBS/Ye1esT/cbIh/ApuGw7tznQMZMnoFdFL5dhk6 +5XDLAHAsLvnD76/etbLGieR/gJugg8L5gEgaK19GRFgpPkxUUfGy/SXYtdJxsrQdr bklQ8qkWUPdkP/FXdD4jo+CZXf1XUJjcklF107Ztpg67dBQJKPI8jaLbQNYtnnh9U+ 8dogW8Ums8slKEq2Fs024T7lmI9zvFZMF1mHXrZyob4Zys3fIyOCUxCzKJk5j9gg43 r8rYHXe+PXw4lmtesr9UtaK/nWyrEkQWMSSRFLs7Vyp9O+O4nNTHlCSyCWGdfCqAbz juOIKbMdeGkjQ== 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 Subject: [PATCH -tip v10 09/16] ARC: Add instruction_pointer_set() API Date: Thu, 29 Jul 2021 23:07:20 +0900 Message-Id: <162756764030.301564.8584321072467173508.stgit@devnote2> X-Mailer: git-send-email 2.25.1 In-Reply-To: <162756755600.301564.4957591913842010341.stgit@devnote2> References: <162756755600.301564.4957591913842010341.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 */