Received: by 2002:a05:7412:2a8c:b0:e2:908c:2ebd with SMTP id u12csp662195rdh; Sun, 24 Sep 2023 06:37:30 -0700 (PDT) X-Google-Smtp-Source: AGHT+IGUwGu7iRuPd1SmtoaaGelE1J+HWUAH0vF8M6QTK7JgchZ1Y8RlNFXhudvZAB5FxJjOxCRg X-Received: by 2002:a05:6a00:1d0c:b0:691:2d4:23b5 with SMTP id a12-20020a056a001d0c00b0069102d423b5mr4284921pfx.31.1695562650177; Sun, 24 Sep 2023 06:37:30 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1695562650; cv=none; d=google.com; s=arc-20160816; b=ZBfVCRmYj3s+WOEqLF89j7DVrFD0hKQfdaHpwPmjR0GxdQ6lz+8qjgeDDkju818BrX dKfzbuTkn7Bpy26VWTAyLfShGnR/mL4kd7HnOEnxl04mUsHQ+SJubAvQTBu7logIYhUD w4H8+Lzci0zJ+c+MsGQCokkOvPYbktoyNiKdCVcpuLNLp8/b3deSj66rPP6RQobjFCYg 18Y+iD1Y0h6ihOEXFmIeGTbieaw+Wb+JZIaDjunQTvd1OQjx1ZFgtV727ENALLHXHUEM IIcHWO5zdsvf8wDIiFhKbTYBpmSHUjwe4kxlFxqSeHGYzk8WMYxYFNp9rPiiOOB+q5WA Ayag== 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=HtbfxOhGJhjYYagVG0ZjVCVuf30yNuhxYj0zBuoD7ew=; fh=SIgps5XdV0XNwjZfT2uAI7g3mrspDldK9Qs8qQAfoa4=; b=cKE7lUI1zTM7dj+tQT+p421KPX803Blgz6vr/n3C46L+u4KrcTGcbl0D46GLm1BoxM iIRcSAICOZI41l6p/0H7EUoqmvC37/+xBBtBV0XEVLHruPR/nc4ElfqsbEDjRo/lY8vm T3WcAPT8/mswXTH2v6JoqhMbDUpnZQOa6aFF8eZNW1L01aNRA2g9cRtUxGNpUEPMtXTB JfAgnZwJ5hDGzpjszeKHoMpa+2g2kJy1M5Rk/m64BCRVaWv8cyGVlWw81s4sGlcIIRi5 ire1xTcRlnrhsZ1vzzl5xBXDDDqkTADx0oFF51u3/c0AvyQp/gVL8TiWV+cr4+KtCK50 qrPw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=hjlxvWFQ; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.34 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from howler.vger.email (howler.vger.email. [23.128.96.34]) by mx.google.com with ESMTPS id w67-20020a636246000000b0056fa98a8542si4302651pgb.227.2023.09.24.06.37.29 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 24 Sep 2023 06:37:30 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.34 as permitted sender) client-ip=23.128.96.34; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=hjlxvWFQ; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.34 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 howler.vger.email (Postfix) with ESMTP id 4B078830D368; Sun, 24 Sep 2023 06:37:28 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at howler.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230487AbjIXNh2 (ORCPT + 99 others); Sun, 24 Sep 2023 09:37:28 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:46974 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230104AbjIXNhL (ORCPT ); Sun, 24 Sep 2023 09:37:11 -0400 Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id A4637E44 for ; Sun, 24 Sep 2023 06:36:30 -0700 (PDT) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 720EFC433C9; Sun, 24 Sep 2023 13:36:26 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1695562590; bh=tVeWRc6NY/P1SVA880iIBWSSfIP1iQe2tBoTWU/xgMg=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=hjlxvWFQgaGpBMlqFwlnIZ9VGGXN02c/MIxxrj0jkjoXq5Dkp5EVjKLTiQCIZ+qQi t69ATsL1NxjpLZ/BSsGg23XpeCctFsJn6LLHvDohosO1KgMJ6u+R2PRBbG7L+Zaxgx y6+QFBBfA0LjX6LTPp5lOsuNH8U89yONdRb5wIrRKo7ESmLsGg742zPxiF2hCsAyA1 jYMJ6u5zAyz3Zsp/OsY2JWun3v1LFrGm7TIkVPFmKVtxfg03TrJKX5ursI4EgZ+w4w J6bWYTBctWkELztWXwOD2byUYJswu6XGjzXsV8QRIL2Wu6TuAKKbm8K53sFgeXY1Rn +euG0vig0MbyQ== 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 03/12] tracing: Add a comment about the requirements of the ftrace_regs Date: Sun, 24 Sep 2023 22:36:23 +0900 Message-Id: <169556258347.146934.12248055282843332442.stgit@devnote2> X-Mailer: git-send-email 2.34.1 In-Reply-To: <169556254640.146934.5654329452696494756.stgit@devnote2> References: <169556254640.146934.5654329452696494756.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=-2.1 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF, RCVD_IN_DNSWL_BLOCKED,SPF_HELO_NONE,SPF_PASS autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (howler.vger.email [0.0.0.0]); Sun, 24 Sep 2023 06:37:28 -0700 (PDT) From: Masami Hiramatsu (Google) Add a comment about the requirements of the ftrace_regs if it is implemented on the arch-dependent code with CONFIG_HAVE_DYNAMIC_FTRACE_WITH_ARGS. Signed-off-by: Masami Hiramatsu (Google) --- include/linux/ftrace.h | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/include/linux/ftrace.h b/include/linux/ftrace.h index e8921871ef9a..5da70f238645 100644 --- a/include/linux/ftrace.h +++ b/include/linux/ftrace.h @@ -118,6 +118,14 @@ extern int ftrace_enabled; #ifndef CONFIG_HAVE_DYNAMIC_FTRACE_WITH_ARGS +/* + * The ftrace_regs will be just a wrapper of the pt_regs if + * CONFIG_HAVE_DYNAMIC_FTRACE_WITH_ARGS is not set. If it is set on an + * architecture, it has to define the ftrace_regs data structure. + * The ftrace_regs is expected to save the registers for the function + * arguments, the registers for stack dump (e.g. stack pointer and the + * frame pointer) and the instruction pointer for reference. + */ struct ftrace_regs { struct pt_regs regs; };