From patchwork Fri Jan 12 10:11:26 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Masami Hiramatsu (Google)" X-Patchwork-Id: 187665 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a05:693c:2614:b0:101:6a76:bbe3 with SMTP id mm20csp75376dyc; Fri, 12 Jan 2024 02:12:50 -0800 (PST) X-Google-Smtp-Source: AGHT+IHGYOOitgIsYGq7a04c++nIB2OFc520HWns2nXiHAwfWljpwfj5zWmPkGzeWwnWFk6fFLTr X-Received: by 2002:a17:90b:4a92:b0:28c:717:e2a9 with SMTP id lp18-20020a17090b4a9200b0028c0717e2a9mr1662680pjb.36.1705054370115; Fri, 12 Jan 2024 02:12:50 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1705054370; cv=none; d=google.com; s=arc-20160816; b=wNRLH323PKN1oOaiI9Vs18wPOQWrjS0+xrlZ6FgW84dTs3I0dalQmbznRTp9KaHapO xmL1yVDAevPkdE30IBMPVN/dM6OPttg1RoEWcNlA5H2qa4FOm4pMrBT/dGFL83RVu3Vu eaYLpyUzwhO76XHDU0Tf1lu/1R8iwIWZn1FR6rExeJHE4QDuNwUapEISR7CfdV6wEzqR zTeVj663bGcbtFirbdj0CWdTFSCfaRPbRVC1rFr22bcbGWP65sA9p2fYCkGBy/0uTOzn pua5VFByiE9+hcpR0TsKIVKHH3n3paF1of7KtRj8tdnsHCC32M6aWx4XYBT4au3GCckD HdGw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:user-agent:references:in-reply-to :message-id:date:subject:cc:to:from:dkim-signature; bh=C+YeYcERChqrM+mB6MJGnm6nSgQg+t3VAhT1c3xjbKg=; fh=SIgps5XdV0XNwjZfT2uAI7g3mrspDldK9Qs8qQAfoa4=; b=ucX9qoalqt7t1VN0hI+2U4yQz+pYuIVwNvjzDd2LoC21vAVu9ZJXLl+0z45vRcP0j6 dzv+HpW/NNUfsBQauBb1xQoVMpHowIy2eLOqLwd6tDFT1DmRdWXUZMtmqL38Z+DJABEj got5uVXCegFvnYLKb06FuK/lUe6bAmuE+dG3a3HSZznAK9x6Q2oEmhDn8lEk3QEejh0N L/bM0uAGBp62hkTziOuFhWAtVG9FNkiYTn9DoNVREaJ2ZsZytl8vJI+m5W4fTOrp8DUf wJU4kM+rcCHqrtz1ZMkjF7ClFeadE7RyrHXRNx96kKI6Y7pgcQ6GIq9NoxxqFYowyich WANg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=Z8v2r+nP; spf=pass (google.com: domain of linux-kernel+bounces-24549-ouuuleilei=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-24549-ouuuleilei=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [139.178.88.99]) by mx.google.com with ESMTPS id a1-20020a17090ad80100b0028dfd6feb3csi1974464pjv.96.2024.01.12.02.12.50 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 12 Jan 2024 02:12:50 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-24549-ouuuleilei=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) client-ip=139.178.88.99; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=Z8v2r+nP; spf=pass (google.com: domain of linux-kernel+bounces-24549-ouuuleilei=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-24549-ouuuleilei=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by sv.mirrors.kernel.org (Postfix) with ESMTPS id DC2E5287AE0 for ; Fri, 12 Jan 2024 10:12:49 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id F0E425FEF7; Fri, 12 Jan 2024 10:11:35 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="Z8v2r+nP" Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 4F8ED5FEE5; Fri, 12 Jan 2024 10:11:32 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 27B34C43143; Fri, 12 Jan 2024 10:11:29 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1705054292; bh=kNRd2hWrO7IhygJA2R89Qwn9iuPQTJYXm7k9t7rmDqE=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=Z8v2r+nP9TFnq1PLR+msEt8/mCNMyB8v/Wp/YgsvJcG2kLx08LBfcQizVcSKVzdk6 9OtNsfm9wKy0CZwUksx1VqRQUdOA87vRsvCDYREvPG4yLz8NJMFQn1ADuv2D0uI66V j+un1ivNmKe1Vy0LfdC5Lt1/hyyki8o7DJwBBB0Kh+TjbIL6iwIYN5nb4ZHdTId2B7 c7gCVfH3ZV5dlNRu9/wRXVU/hculd+3Nmw27nmbCgGtdnJrrOSLk8XMyjtSFHFKdNI 7pMWKlS+i/b9g8FbCJw4Hdwx9FcnUxIlqq7e9jKAO+l0ubgm/Togt//bB461elZ6B4 1Cht5NRNbNvzQ== From: "Masami Hiramatsu (Google)" To: Alexei Starovoitov , Steven Rostedt , Florent Revest Cc: linux-trace-kernel@vger.kernel.org, LKML , Martin KaFai Lau , bpf , Sven Schnelle , Alexei Starovoitov , Jiri Olsa , Arnaldo Carvalho de Melo , Daniel Borkmann , Alan Maguire , Mark Rutland , Peter Zijlstra , Thomas Gleixner , Guo Ren Subject: [PATCH v6 03/36] tracing: Rename ftrace_regs_return_value to ftrace_regs_get_return_value Date: Fri, 12 Jan 2024 19:11:26 +0900 Message-Id: <170505428634.459169.3461513510942403752.stgit@devnote2> X-Mailer: git-send-email 2.34.1 In-Reply-To: <170505424954.459169.10630626365737237288.stgit@devnote2> References: <170505424954.459169.10630626365737237288.stgit@devnote2> User-Agent: StGit/0.19 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1787879091239171465 X-GMAIL-MSGID: 1787879091239171465 From: Masami Hiramatsu (Google) Rename ftrace_regs_return_value to ftrace_regs_get_return_value as same as other ftrace_regs_get/set_* APIs. Signed-off-by: Masami Hiramatsu (Google) Acked-by: Mark Rutland --- Changes in v6: - Moved to top of the series. Changes in v3: - Newly added. --- arch/loongarch/include/asm/ftrace.h | 2 +- arch/powerpc/include/asm/ftrace.h | 2 +- arch/s390/include/asm/ftrace.h | 2 +- arch/x86/include/asm/ftrace.h | 2 +- include/linux/ftrace.h | 2 +- 5 files changed, 5 insertions(+), 5 deletions(-) diff --git a/arch/loongarch/include/asm/ftrace.h b/arch/loongarch/include/asm/ftrace.h index a11996eb5892..a9c3d0f2f941 100644 --- a/arch/loongarch/include/asm/ftrace.h +++ b/arch/loongarch/include/asm/ftrace.h @@ -70,7 +70,7 @@ ftrace_regs_set_instruction_pointer(struct ftrace_regs *fregs, unsigned long ip) regs_get_kernel_argument(&(fregs)->regs, n) #define ftrace_regs_get_stack_pointer(fregs) \ kernel_stack_pointer(&(fregs)->regs) -#define ftrace_regs_return_value(fregs) \ +#define ftrace_regs_get_return_value(fregs) \ regs_return_value(&(fregs)->regs) #define ftrace_regs_set_return_value(fregs, ret) \ regs_set_return_value(&(fregs)->regs, ret) diff --git a/arch/powerpc/include/asm/ftrace.h b/arch/powerpc/include/asm/ftrace.h index 9e5a39b6a311..7e138e0e3baf 100644 --- a/arch/powerpc/include/asm/ftrace.h +++ b/arch/powerpc/include/asm/ftrace.h @@ -69,7 +69,7 @@ ftrace_regs_get_instruction_pointer(struct ftrace_regs *fregs) regs_get_kernel_argument(&(fregs)->regs, n) #define ftrace_regs_get_stack_pointer(fregs) \ kernel_stack_pointer(&(fregs)->regs) -#define ftrace_regs_return_value(fregs) \ +#define ftrace_regs_get_return_value(fregs) \ regs_return_value(&(fregs)->regs) #define ftrace_regs_set_return_value(fregs, ret) \ regs_set_return_value(&(fregs)->regs, ret) diff --git a/arch/s390/include/asm/ftrace.h b/arch/s390/include/asm/ftrace.h index 5a82b08f03cd..01e775c98425 100644 --- a/arch/s390/include/asm/ftrace.h +++ b/arch/s390/include/asm/ftrace.h @@ -88,7 +88,7 @@ ftrace_regs_set_instruction_pointer(struct ftrace_regs *fregs, regs_get_kernel_argument(&(fregs)->regs, n) #define ftrace_regs_get_stack_pointer(fregs) \ kernel_stack_pointer(&(fregs)->regs) -#define ftrace_regs_return_value(fregs) \ +#define ftrace_regs_get_return_value(fregs) \ regs_return_value(&(fregs)->regs) #define ftrace_regs_set_return_value(fregs, ret) \ regs_set_return_value(&(fregs)->regs, ret) diff --git a/arch/x86/include/asm/ftrace.h b/arch/x86/include/asm/ftrace.h index 897cf02c20b1..cf88cc8cc74d 100644 --- a/arch/x86/include/asm/ftrace.h +++ b/arch/x86/include/asm/ftrace.h @@ -58,7 +58,7 @@ arch_ftrace_get_regs(struct ftrace_regs *fregs) regs_get_kernel_argument(&(fregs)->regs, n) #define ftrace_regs_get_stack_pointer(fregs) \ kernel_stack_pointer(&(fregs)->regs) -#define ftrace_regs_return_value(fregs) \ +#define ftrace_regs_get_return_value(fregs) \ regs_return_value(&(fregs)->regs) #define ftrace_regs_set_return_value(fregs, ret) \ regs_set_return_value(&(fregs)->regs, ret) diff --git a/include/linux/ftrace.h b/include/linux/ftrace.h index 8b48fc621ea0..39ac1f3e8041 100644 --- a/include/linux/ftrace.h +++ b/include/linux/ftrace.h @@ -184,7 +184,7 @@ static __always_inline bool ftrace_regs_has_args(struct ftrace_regs *fregs) regs_get_kernel_argument(ftrace_get_regs(fregs), n) #define ftrace_regs_get_stack_pointer(fregs) \ kernel_stack_pointer(ftrace_get_regs(fregs)) -#define ftrace_regs_return_value(fregs) \ +#define ftrace_regs_get_return_value(fregs) \ regs_return_value(ftrace_get_regs(fregs)) #define ftrace_regs_set_return_value(fregs, ret) \ regs_set_return_value(ftrace_get_regs(fregs), ret)