Message ID | 170887413645.564249.15526252585297594575.stgit@devnote2 |
---|---|
State | New |
Headers |
Return-Path: <linux-kernel+bounces-80131-ouuuleilei=gmail.com@vger.kernel.org> Delivered-To: ouuuleilei@gmail.com Received: by 2002:a05:7300:a81b:b0:108:e6aa:91d0 with SMTP id bq27csp1619800dyb; Sun, 25 Feb 2024 07:16:07 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCU4mrWXznp0WgWWOQZ576XOpaKRmAiGMXYNIWTVqs/8mxyS4ortiyW9PrgtvTui9eKWIQe/KZIlJBj5FrtqpLY35UcGcw== X-Google-Smtp-Source: AGHT+IFSdqcL508rr/T+YOgW7o5JKIMSgaRa1Ia1jDXe7DbLAkF11EO9chPDNjIKrF4xHRtPDX1e X-Received: by 2002:a05:6a00:1a86:b0:6e4:6ca5:30b7 with SMTP id e6-20020a056a001a8600b006e46ca530b7mr4958910pfv.34.1708874167181; Sun, 25 Feb 2024 07:16:07 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1708874167; cv=pass; d=google.com; s=arc-20160816; b=HNYIbNzZ2cWosut6LJ7OkuHGWIHcNab2/nQxI1g1RVaJ8fgRUYO3P1P7T+a5lgkD2m DUvN03GlpcFeKmjtcu2HC2im6nD9SWqfUqASnR4i5o1F5BQqkihdfsnf0dKlBu+w6dox g3GPBxQ7L2Ir+jydaQLFtocLpmsAZDyKSpJw97mou+Gt8x9LcTzb88LZxIbWKJN2USn5 7qrudOU1H5gJ++lY0l3FgINt/YjwDRYp6C+46LF0RHOhlvcdL7epMUQv4MlNVWaedAEL C72IWUTvxqxxkV7/RZTOhrYu4SjXQqo+I4vX1En9C4Pu4fItoXWWLKD+4u8IOESStd16 hg9A== ARC-Message-Signature: i=2; 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=6UWyW+HZQB9PkPidfS9kyGvOgCmjAVd9N756+zbkz8k=; fh=SIgps5XdV0XNwjZfT2uAI7g3mrspDldK9Qs8qQAfoa4=; b=CC20THW1cC9Bgi+jVRDWz5pyIpNiAKKWL930GBo3rDUqyKEH/ITdeYmy1ql0ajAmXe m+iov0fXPUVsAGRNdUvk1VdJaMDah65ch1tBL0JyJMmddUk19wEniZfclbjHQ+EoCFv5 AGVSHRO6GCQku9Jk6eIYQxBUBevZkg5U9IonOm6C55Sq1i6vvZIwHQ/VRWQDBsA4vIFu ABSz8Syr1BsWFdA8MEqrmCfoSX7uKMAlnPaJ3gB/AeovBVBEcU95H/KW5jFAfpJtr57d AWIDwS3ZsasYGfGWXwtm4UJMN0ege/+9jb0jOaWsBfn4Vidk3kAsYzIqHGRJ5c9VJReU OrCg==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=jF7Fcv6G; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-80131-ouuuleilei=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-80131-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 e63-20020a636942000000b005dc505aef9asi2267703pgc.354.2024.02.25.07.16.07 for <ouuuleilei@gmail.com> (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 25 Feb 2024 07:16:07 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-80131-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=jF7Fcv6G; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-80131-ouuuleilei=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-80131-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 0635828157F for <ouuuleilei@gmail.com>; Sun, 25 Feb 2024 15:16:07 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 74D3315491; Sun, 25 Feb 2024 15:15:45 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="jF7Fcv6G" 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 C31A4125C1; Sun, 25 Feb 2024 15:15:42 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1708874142; cv=none; b=OnYkCx+keY4NbqRSCu18JEtjqQGkctgeiSkQta5WH1z2AQBCAMo2wJNVMPcCagLpYDyR/EfR/9N6PQENZzijxXpz9N/faLKnu/GF+FQjzjeklVP1yoTVMYzzWk6hzk3fiXiKsgGCW37wZNWJs2DlFV3AtFlsErsmvCXiM+48CFg= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1708874142; c=relaxed/simple; bh=Ky/M8O0rm7AMIWcFwVKGUXTVtEFqfb+EU9Ru8C9PH5M=; h=From:To:Cc:Subject:Date:Message-Id:In-Reply-To:References: MIME-Version:Content-Type; b=YILBoB4mWCkFXY7IvmIXXuHW4C41r0z0x8k7K9JN/50QXvPZ+71JuTrQy1OwLkuXct/8EkgXKIYLpcI85S0YZGFie3hGu/rNee3lDUe+M9gC2uIMUlUXWFvjjzi+g5e9pC7EdVI4ViVxwMqDR49CwGhkARAtys+OpcJCHf30muo= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=jF7Fcv6G; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPSA id 50304C433C7; Sun, 25 Feb 2024 15:15:39 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1708874142; bh=Ky/M8O0rm7AMIWcFwVKGUXTVtEFqfb+EU9Ru8C9PH5M=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=jF7Fcv6G9W2IrXgKAhiYtOiW+5ZqB3//sKd6o5EWirPLh5pfm4ioRvvnOLWc0FZB6 Rtx0yb2fvCwDpqbIUb/3h5lP6iuWyvPSuTHyzEE7+MmEwmA2Tuld53DXVclis3quPE GBouLw1KuA7bl/YSH5+jzAOaETgTacBwLou1/eEgSkduIXLF4t1YfHHGmIgTEZUozX GjjMq2HVgggFPloaTU7SqIXxYDpiAoKnE6UJ33Fnocc5zt2Yo2w4jbVfqYzfhKr7ID 9Kg15C7LyxWTZTjsGH5/ogHafBvBswCDAQyUfpjktgTLNeLMDUDzOK0CH/2OQEx714 W1y8iECtrZ69w== From: "Masami Hiramatsu (Google)" <mhiramat@kernel.org> To: Alexei Starovoitov <alexei.starovoitov@gmail.com>, Steven Rostedt <rostedt@goodmis.org>, Florent Revest <revest@chromium.org> Cc: linux-trace-kernel@vger.kernel.org, LKML <linux-kernel@vger.kernel.org>, Martin KaFai Lau <martin.lau@linux.dev>, bpf <bpf@vger.kernel.org>, Sven Schnelle <svens@linux.ibm.com>, Alexei Starovoitov <ast@kernel.org>, Jiri Olsa <jolsa@kernel.org>, Arnaldo Carvalho de Melo <acme@kernel.org>, Daniel Borkmann <daniel@iogearbox.net>, Alan Maguire <alan.maguire@oracle.com>, Mark Rutland <mark.rutland@arm.com>, Peter Zijlstra <peterz@infradead.org>, Thomas Gleixner <tglx@linutronix.de>, Guo Ren <guoren@kernel.org> Subject: [PATCH v8 03/35] x86: tracing: Add ftrace_regs definition in the header Date: Mon, 26 Feb 2024 00:15:36 +0900 Message-Id: <170887413645.564249.15526252585297594575.stgit@devnote2> X-Mailer: git-send-email 2.34.1 In-Reply-To: <170887410337.564249.6360118840946697039.stgit@devnote2> References: <170887410337.564249.6360118840946697039.stgit@devnote2> User-Agent: StGit/0.19 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: <linux-kernel.vger.kernel.org> List-Subscribe: <mailto:linux-kernel+subscribe@vger.kernel.org> List-Unsubscribe: <mailto:linux-kernel+unsubscribe@vger.kernel.org> MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 8bit X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1791884438510295523 X-GMAIL-MSGID: 1791884438510295523 |
Series |
tracing: fprobe: function_graph: Multi-function graph and fprobe on fgraph
|
|
Commit Message
Masami Hiramatsu (Google)
Feb. 25, 2024, 3:15 p.m. UTC
From: Masami Hiramatsu (Google) <mhiramat@kernel.org> Add ftrace_regs definition for x86_64 in the ftrace header to clarify what register will be accessible from ftrace_regs. Signed-off-by: Masami Hiramatsu (Google) <mhiramat@kernel.org> --- Changes in v3: - Add rip to be saved. Changes in v2: - Newly added. --- arch/x86/include/asm/ftrace.h | 6 ++++++ 1 file changed, 6 insertions(+)
diff --git a/arch/x86/include/asm/ftrace.h b/arch/x86/include/asm/ftrace.h index cf88cc8cc74d..c88bf47f46da 100644 --- a/arch/x86/include/asm/ftrace.h +++ b/arch/x86/include/asm/ftrace.h @@ -36,6 +36,12 @@ static inline unsigned long ftrace_call_adjust(unsigned long addr) #ifdef CONFIG_HAVE_DYNAMIC_FTRACE_WITH_ARGS struct ftrace_regs { + /* + * On the x86_64, the ftrace_regs saves; + * rax, rcx, rdx, rdi, rsi, r8, r9, rbp, rip and rsp. + * Also orig_ax is used for passing direct trampoline address. + * x86_32 doesn't support ftrace_regs. + */ struct pt_regs regs; };