Received: by 2002:a05:7412:a9a3:b0:f9:327e:43ab with SMTP id o35csp92530rdh; Mon, 18 Dec 2023 05:25:54 -0800 (PST) X-Google-Smtp-Source: AGHT+IFeML0Q0X8ZNA4UeCY/yzU+fLWnu4bFVGV9qN5BcioiPyMjpGqbpcn61G+dNIsHILmiHRdM X-Received: by 2002:a05:6a00:84f:b0:6ce:2732:1e0a with SMTP id q15-20020a056a00084f00b006ce27321e0amr9013542pfk.68.1702905954321; Mon, 18 Dec 2023 05:25:54 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1702905954; cv=none; d=google.com; s=arc-20160816; b=hghAPqe5Roe3Dqp1cE/Gg3tzrYznEmjLPJMJl1foHSgyp9LmdpVEOo1NeLeztDjgb+ ui8kG5IhpHa8c0s1GK0V3zAdNW3akuQ2p3mV136xFRjiu/uBSYPZdmbtvAANXvpVdpcc cs4XjeNqf82YkFQzxZJkKldG9IzRTHzyFzIJXC9p8suvqB4hheHuQTBgiHXWgc4qR1KY 01kGUOGJ7DogullFY3Si932uaU4AtL8SAnjzEholDKlQgELVZCGnqy0AXwML7Rsxv8Io hGxHEpo33LGyYvRYkKUv5/v5xR3B+c1k7Cn3UAFtQtruO53aS3nTQ0G06RDvq9Hb7S8m YpdA== 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=5WX+qynQD794EUV0hGiiaHuIApqapbmiHkRbeTgC1Yk=; fh=SIgps5XdV0XNwjZfT2uAI7g3mrspDldK9Qs8qQAfoa4=; b=JejUPIkq4uFkNPDFPZmuWmNKqggc3bVOQ6VnwFvYxG+ZfA2C2i206lGpBEnr9HaJV1 rcQOYSSrziotsI90CPE0Cwcmu7HlPy0BAQfIrf5pgd6iHPZosol1dw3KM40dEU8/mMl0 OgYOlnHgdUJBQ/eWPiNng1PGFW5LvFqc0UG3AaN6O8wVJ+PTGjZHJi0mpIxdRfhNcDiu yXLuLA2VuRZTKB0bxXqXdNGLGfiRFc6NRzZnPea0tRyhRhtJ3kqAkl0gXyA51UnHYF/A w/LVCWLAIS4+qv/oIhFQdnpMRydRcDRncak1nv3vxC4ygc+2O/jx9f2xzU8Uo+I4yYpg vo1w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=ftNRR+k3; spf=pass (google.com: domain of linux-kernel+bounces-3728-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-3728-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [139.178.88.99]) by mx.google.com with ESMTPS id j11-20020a056a00174b00b006cb88a16f29si17887289pfc.161.2023.12.18.05.25.54 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 18 Dec 2023 05:25:54 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-3728-linux.lists.archive=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=ftNRR+k3; spf=pass (google.com: domain of linux-kernel+bounces-3728-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-3728-linux.lists.archive=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 B40E928547A for ; Mon, 18 Dec 2023 13:22:49 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 30FC949883; Mon, 18 Dec 2023 13:16:07 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="ftNRR+k3" X-Original-To: linux-kernel@vger.kernel.org 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 5349A49881; Mon, 18 Dec 2023 13:16:06 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 632A3C433C8; Mon, 18 Dec 2023 13:16:02 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1702905365; bh=lM+aJl+jM53bRKVdRCgrzv4abmBRPx3ti8qQyjSXSnA=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=ftNRR+k3vAVATHQKBMxxxpZ7uI9h4EN+t7YS185ShIHM/+DAJxKYmfmcz+it1JhND Swj82U/1Lnze2IXrI0kXWK3ipc+iqIF0rCJchThKDjXPrFItXvboGGAbncvZXCf9QH bii4lUa7Pf3vr3pdKcfRHK0nohvmoKkyPjG0F9GldAEVAbynBjW1f1+8S1+kX7TdoO JfbieGUm0P9M3/JinOkwH0Sp3COQXbuVA0Pp2J0Z5hvOG0c9TKEBInMFM2s98OR5HW z81LHiX6yzY/wo8l9lbFzFX7jKUspKBNEnk2dI7++WVb88D6PZZwXFO5MYT3jZzBDo 0P/hgPceOn0EQ== 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 v5 22/34] tracing: Rename ftrace_regs_return_value to ftrace_regs_get_return_value Date: Mon, 18 Dec 2023 22:15:59 +0900 Message-Id: <170290535934.220107.9998902467249003656.stgit@devnote2> X-Mailer: git-send-email 2.34.1 In-Reply-To: <170290509018.220107.1347127510564358608.stgit@devnote2> References: <170290509018.220107.1347127510564358608.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 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 8bit 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) --- 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 +- kernel/trace/fgraph.c | 2 +- 6 files changed, 6 insertions(+), 6 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 0b306c82855d..a061f8832b20 100644 --- a/arch/x86/include/asm/ftrace.h +++ b/arch/x86/include/asm/ftrace.h @@ -64,7 +64,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 79875a00c02b..da2a23f5a9ed 100644 --- a/include/linux/ftrace.h +++ b/include/linux/ftrace.h @@ -187,7 +187,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) diff --git a/kernel/trace/fgraph.c b/kernel/trace/fgraph.c index 088432b695a6..9a60acaacc96 100644 --- a/kernel/trace/fgraph.c +++ b/kernel/trace/fgraph.c @@ -783,7 +783,7 @@ static void fgraph_call_retfunc(struct ftrace_regs *fregs, trace.rettime = trace_clock_local(); #ifdef CONFIG_FUNCTION_GRAPH_RETVAL if (fregs) - trace.retval = ftrace_regs_return_value(fregs); + trace.retval = ftrace_regs_get_return_value(fregs); else trace.retval = fgraph_ret_regs_return_value(ret_regs); #endif