Message ID | 170203107969.579004.12737392554145840949.stgit@devnote2 |
---|---|
State | New |
Headers |
Return-Path: <linux-kernel-owner@vger.kernel.org> Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:bcd1:0:b0:403:3b70:6f57 with SMTP id r17csp5362099vqy; Fri, 8 Dec 2023 02:24:59 -0800 (PST) X-Google-Smtp-Source: AGHT+IGWoNTcSzxhCQw15DP+RWKF0qbzTBuk4fwXcr+lMCY9OlV4+1j0WC94CFg2ymtyZkam3IEj X-Received: by 2002:a05:6a21:3102:b0:18c:90b1:7bdf with SMTP id yz2-20020a056a21310200b0018c90b17bdfmr5875131pzb.53.1702031099358; Fri, 08 Dec 2023 02:24:59 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1702031099; cv=none; d=google.com; s=arc-20160816; b=Oi2sXZlZJSnbY9Xf5h6fbayHKRDbqbOTQAliIYRXAuHqeGSBz8bduT5fhkRlIv2l4a iEAo8XV3NmaG6F2PXit+8VrXNDMnI/OT2Xs5M+lpvQDjpY7BIaBOqP/ikjIFNLNE1l0I JS32qVj9XjvGLZGUUl/NJ3/8nSiAluklh909+y4cNHluX01FB+VqLLEMwn3anHy9/5zW L/pQCxmNFmd35z4qcFbWVIxyjunhYWe3GVQdOd6/G2jZCC6xRMWT80upr45V5FGTDTS6 93roIAPwoJaB8d4bqDU8u6XjfwDupA77ND0XzjRkSTDA0g31JgAM9rWeN8g4CXgYJqw0 G6BQ== 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=6u8M/yEtWeoJVCEoLcNsgpoGnmlGQaiNnoviOD6fD5k=; fh=SIgps5XdV0XNwjZfT2uAI7g3mrspDldK9Qs8qQAfoa4=; b=ghGDhYONe2oTWhrjt/LfU2+eVkswxONKMA5XYrEhYuaAjtauq2SHbABiV9q6qRDHkO ukIG+OhtG072N+HvaYk4eISg/JNzetbYqRC6vRUXktTEZwIEJiee6us0jrK+HSGU8wUE OqrPUIdz+kuUmrgG3L6EPng2k4S/oSI5WsW/pJAacxjVn2SN2MhbWzU3IliJGMaa+Xhs Lnwplrf6nhn/ab2RNVhkLxsuibwu8WbP6656qluXpKjP6dcoVsFTuI/cFZMhJpVSTxoN +sgGmdCER+HAJLGEZX+onHct06vQsls7jbkMmCl6wMYIwnpvaUbATKaDZr6Q/hgA4sNZ wuaQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=Y1qtLnmk; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:3 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: from lipwig.vger.email (lipwig.vger.email. [2620:137:e000::3:3]) by mx.google.com with ESMTPS id mj3-20020a17090b368300b00262e5a82047si1456396pjb.44.2023.12.08.02.24.59 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 08 Dec 2023 02:24:59 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:3 as permitted sender) client-ip=2620:137:e000::3:3; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=Y1qtLnmk; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:3 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by lipwig.vger.email (Postfix) with ESMTP id 8E3A381945B2; Fri, 8 Dec 2023 02:24:56 -0800 (PST) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.11 at lipwig.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1573515AbjLHKYp (ORCPT <rfc822;chrisfriedt@gmail.com> + 99 others); Fri, 8 Dec 2023 05:24:45 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:57940 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233315AbjLHKYl (ORCPT <rfc822;linux-kernel@vger.kernel.org>); Fri, 8 Dec 2023 05:24:41 -0500 Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 703EE1735 for <linux-kernel@vger.kernel.org>; Fri, 8 Dec 2023 02:24:47 -0800 (PST) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 9F860C433B6; Fri, 8 Dec 2023 10:24:42 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1702031086; bh=dL9JJoim7F8avDTUtPFPrZxdt2I1oZt3h3FTr1Er5xQ=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=Y1qtLnmkzVzJGf0osX0F12HxdVVw+NsXi2ETuaEW+Vz/DfKMewGmRL7Fvb2Ri+Fjv ciQRh6HAg2Osg+ZER/FXXcvdgZqoaU7nNFurOKXbs7nXWH9wy9s54C/+NY0gGHD+Be aEir0/6kjg3bry8iScjBIT5Ug9+bI1Jq5Zz2lSpf+bm7pNZswA7dUI1sPmBrQWYvs1 53FaxmB8citwzqOC/gB9fOw9dXAPp6usb07ti03TlfE1Azzq6QJUoAWzTDudPw2vnh 8GFYigF5sX+lLqyIDVNjQCODLbrJ0lUTJfsysbIeOdy8yniMQjPxpMcwsYr9UpTzYZ yYeTcddH76ZpQ== 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 v4 02/33] x86: tracing: Add ftrace_regs definition in the header Date: Fri, 8 Dec 2023 19:24:40 +0900 Message-Id: <170203107969.579004.12737392554145840949.stgit@devnote2> X-Mailer: git-send-email 2.34.1 In-Reply-To: <170203105427.579004.8033550792660734570.stgit@devnote2> References: <170203105427.579004.8033550792660734570.stgit@devnote2> User-Agent: StGit/0.19 MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-1.2 required=5.0 tests=DKIMWL_WL_HIGH,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,MAILING_LIST_MULTI, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lipwig.vger.email Precedence: bulk List-ID: <linux-kernel.vger.kernel.org> X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (lipwig.vger.email [0.0.0.0]); Fri, 08 Dec 2023 02:24:56 -0800 (PST) X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1784708961907929918 X-GMAIL-MSGID: 1784708961907929918 |
Series |
tracing: fprobe: function_graph: Multi-function graph and fprobe on fgraph
|
|
Commit Message
Masami Hiramatsu (Google)
Dec. 8, 2023, 10:24 a.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 897cf02c20b1..415cf7a2ec2c 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; };