Message ID | 170723209417.502590.1912889418952674532.stgit@devnote2 |
---|---|
State | New |
Headers |
Return-Path: <linux-kernel+bounces-55178-ouuuleilei=gmail.com@vger.kernel.org> Delivered-To: ouuuleilei@gmail.com Received: by 2002:a05:7301:168b:b0:106:860b:bbdd with SMTP id ma11csp1603815dyb; Tue, 6 Feb 2024 07:09:21 -0800 (PST) X-Google-Smtp-Source: AGHT+IEMxaxlF78B1kB2LXtpwpzNTSAgtFZEx7ziicYyzITLvPOTTgRZEEJVAh00X5jhCB5C5/AX X-Received: by 2002:a17:906:30c7:b0:a38:215c:89b with SMTP id b7-20020a17090630c700b00a38215c089bmr1233581ejb.73.1707232160937; Tue, 06 Feb 2024 07:09:20 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1707232160; cv=pass; d=google.com; s=arc-20160816; b=Qq7mxUeuIgGHtSniDZGJu0twDoG1HBeUCk0cQ4QOnQgUhaBEeGDHSV9+nr69sqg2m9 wtR13cVNXuRth/mdni8BD0LeL02FD2O+8CexEaMJvaAxcmXH4oYSvjjoty2uqd/O641r YOPc0qh97cZe5hXiG7c/y4211S+6e6S+m/0T1tYM4aGColt4NJwQIHBqXUhj546aBUXt gdb2DUjeD5PFyyKQzlnH0zzuf3iANTYf1COEh0NiFxO9GKLmNF71kadWPbxF6kX/z74z wTf/ebmk9PqYIj2uIrZXO5JJfsYpzTE7Jh04+iOJ9fxRnwRzfKK1pD60RZpXn0UkULX9 aK7g== 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=HhMVAUQFNRLthITqXdnWe1mkt1D1Kh8qzda9FygJ26s=; b=rDL9A03MBdFEOPvBU5Neclj3qRY0ks9OmIbhrFWdL2PsMnLrqRzEoxVp5PTxuuG093 nA4gj79EZDu1y1hIqTRI6k5YaflJQHt3CVfqNyMIZXjCtUMQPgHlum3B7j3yqCZUnvy+ pwkUdChMWk5PVe5/L4vXL2+Z/HhVeVM2gtzcAc/9Rh9/Bsnkdb9OPpu948vfI5Jyd+11 bx/wTaOODllIjbf+X0KIByEBMoN7LruMp6V+1kDcssekTc6aqFubeb6TQUKC5oXMZnUm iMAVrWxV/u04L6C+8SJ05LUERBEGebVp+vc/G270yL3vocyA9DFSP/rYx3erDP5FjbxH oqww==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=Ff66VVui; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-55178-ouuuleilei=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-55178-ouuuleilei=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org X-Forwarded-Encrypted: i=1; AJvYcCUk/KLkNmcGLUZXNJ1bTOv+q8rRug31zA45Kqxn/gnYV02P/XJ2zinQqXVgJTNBNRvD5u3+2hyTnVR9ETPLYgzs7nBiWg== Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [147.75.80.249]) by mx.google.com with ESMTPS id s11-20020a1709066c8b00b00a316f007a47si1208076ejr.57.2024.02.06.07.09.20 for <ouuuleilei@gmail.com> (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 06 Feb 2024 07:09:20 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-55178-ouuuleilei=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) client-ip=147.75.80.249; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=Ff66VVui; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-55178-ouuuleilei=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-55178-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 am.mirrors.kernel.org (Postfix) with ESMTPS id 8A8C61F23EFC for <ouuuleilei@gmail.com>; Tue, 6 Feb 2024 15:09:20 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 46818133982; Tue, 6 Feb 2024 15:08:23 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="Ff66VVui" 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 9AD7713328A; Tue, 6 Feb 2024 15:08:20 +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=1707232100; cv=none; b=Z/ITh0bi5My3FiY1F5+0eeSfH8BIH4W/kYSBtodo4d5i7FPQXBD73ou0GiMV1xC16egI6iaR5nX1DGroYNuKkIDDPuZ2E64gXulyY+Z0TYUCUaoEbr0vcrkPIVyDFIhB/s/NgyVXaEz7V9Le4Zdt+TttHMTy4fVRo16oDFZMBwI= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1707232100; c=relaxed/simple; bh=Ky/M8O0rm7AMIWcFwVKGUXTVtEFqfb+EU9Ru8C9PH5M=; h=From:To:Cc:Subject:Date:Message-Id:In-Reply-To:References: MIME-Version:Content-Type; b=skw6j7IaZJdhbz5Z2xErsIN5bhZ9ir02CTBm1ejHjhvD8raAoafYILKEzonJWy6NIIMxoMnjcrEUalu0zs5DFr0hctLsaXUECtxzylo3kBCxBVb7rbayuWwZp9Ndac7CIRgrNSVvTwUAPRSPxAo/S+pv/T3ZNCg7fDXdPcYMTSQ= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=Ff66VVui; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPSA id 79D69C433F1; Tue, 6 Feb 2024 15:08:16 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1707232100; bh=Ky/M8O0rm7AMIWcFwVKGUXTVtEFqfb+EU9Ru8C9PH5M=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=Ff66VVuimpifxG4pLQBtMTYu4BkAfVFZ/lJtfwbhKnPXzCxVyHaXJ2Q1Bl1yXh3Na zSE5JDisQTBaf+0b3qLZwh8p5guOqdB/m/I+W/SoQGwFsEbVrHLLz5qyVQteg5Ufqu qF3yqx/VLNOQGqKDcc5SblSw+571AAP6OTr0FR2sLHDDZk7beK/Q35T48DrBuFRUwC 52LKbYvoeJ1fl1sOtl413kETW6trynHTApYMMO+u3ITYbmfrUsUv/UNvVAXClRPmVd wBD/Espx+RxssAyUKAOqeJj1z0Mu1Z1YGldSuar7RL1wShyhL9tQ3bHunRnbvIE0rF nxJo7PbHfPdGw== 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 v7 04/36] x86: tracing: Add ftrace_regs definition in the header Date: Wed, 7 Feb 2024 00:08:14 +0900 Message-Id: <170723209417.502590.1912889418952674532.stgit@devnote2> X-Mailer: git-send-email 2.34.1 In-Reply-To: <170723204881.502590.11906735097521170661.stgit@devnote2> References: <170723204881.502590.11906735097521170661.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: 1790162670592075896 X-GMAIL-MSGID: 1790162670592075896 |
Series |
tracing: fprobe: function_graph: Multi-function graph and fprobe on fgraph
|
|
Commit Message
Masami Hiramatsu (Google)
Feb. 6, 2024, 3:08 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; };