Message ID | 169920064470.482486.9772883857059976420.stgit@devnote2 |
---|---|
State | New |
Headers |
Return-Path: <linux-kernel-owner@vger.kernel.org> Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:8f47:0:b0:403:3b70:6f57 with SMTP id j7csp2197877vqu; Sun, 5 Nov 2023 08:11:14 -0800 (PST) X-Google-Smtp-Source: AGHT+IEA3FNtW91kxrdGmNJQ109Jq9TJcrpq9A2sqMDF+TduzFYt/x8YJyDJ+x+EAjYwvu6iaMlC X-Received: by 2002:a05:6a20:e114:b0:14d:abc:73dc with SMTP id kr20-20020a056a20e11400b0014d0abc73dcmr28098090pzb.32.1699200674006; Sun, 05 Nov 2023 08:11:14 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1699200673; cv=none; d=google.com; s=arc-20160816; b=cgTdSl6fRRATxyD4hqJucoXUb6ARhEMOqbMQ4rFfHAr0tE2LuYHwghzwmYxVH3aJb0 tvh5DEBt8HGfSbjsS6ZDSf6XMS1FJxmOXvOnMrNhungf2Ct6OQYTytR8XH5QEdtUy6o3 l2xrz8LNeVwxKHmjSpZLvAicKGTZq2ap0OhLydyuatwROD0Ea1d+r2Ka8AXWLRE9FhnT enannUwjg+YFU5qh0RVdVsNhsmB9bdYmpf9be0eaLDFeXH/JnosDgtxBk/Qqgnum13Dl 2vlQV94qoYr4dIbAK1HcoJKUW4hHCfx6yF626SZS9pTW1EJrfUAeHfJHX5RBgDngpCSm 5bMg== 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=GvbSczaP3HE673qffyUF/8KrrGzAnI0iVdh21KthUrg=; fh=SIgps5XdV0XNwjZfT2uAI7g3mrspDldK9Qs8qQAfoa4=; b=jlh1HEYgr2xjCJRv0gALtYFZoyRDxaAUIj9VP/cZzXabrix1dMsVVfPjGa8VZjsluH 2RVh+YdZCfe49FORD0D/O0/PBMnMTjrknkmed6p8hS1KRKu+KmCL5C3axTydKuCQg0cU q8onYd97CJ7GAkJmn3rcqNwaUxupxo5yS9zUe+5aVo3pNnYK/aQYDW0egiHoG1+R+0rU sCb+Uz12850QMJhfMEYzZjeebUKdNWtIHTUme+jxoWSalstgBxV1KZLoG3HthHOzAtt1 cqpc00JpQc0AnxWbUurpvZAFEukxGrVTRCXd2n14PPHw65QbSLK+5ItO7uW47CFeEUtS lomQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=Elgaphgm; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.32 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 agentk.vger.email (agentk.vger.email. [23.128.96.32]) by mx.google.com with ESMTPS id nk15-20020a17090b194f00b0027da95531c9si5979860pjb.134.2023.11.05.08.11.13 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 05 Nov 2023 08:11:13 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.32 as permitted sender) client-ip=23.128.96.32; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=Elgaphgm; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.32 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 agentk.vger.email (Postfix) with ESMTP id 849CB805798D; Sun, 5 Nov 2023 08:11:11 -0800 (PST) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at agentk.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229978AbjKEQLA (ORCPT <rfc822;heyuhang3455@gmail.com> + 34 others); Sun, 5 Nov 2023 11:11:00 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:46486 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229922AbjKEQKy (ORCPT <rfc822;linux-kernel@vger.kernel.org>); Sun, 5 Nov 2023 11:10:54 -0500 Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id F31031BC for <linux-kernel@vger.kernel.org>; Sun, 5 Nov 2023 08:10:50 -0800 (PST) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 3DEA8C433C8; Sun, 5 Nov 2023 16:10:47 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1699200650; bh=FCiUbQ7cF3hWz3W5mYkLUGazPgX9XWR3NoQQHaWsf5Q=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=ElgaphgmZOlJVXyX6c/8ZRvVfsILDJK73lDr2cM6FuDWVRFQVi1Xl/jFjbpWMRuKl qiUTseyiLMuAGQB4ygAmSB7CeXSWOh/6CzLH7qYgVRX9Jy+jGPrVg9GVtf+h173CQ9 RV4Zke/9/N12hKsdXTVkAXIZIkd8YoxEa8A+3icYfbcDv8A5agz9eYlOWWKvZ+II4v TlFevh2JOy+CP6/Fv6AcPJ0UFGDoypzm2T99ComFygwZqQrU9IZnD8gBeWnOKNOLaG yzscPjTfm/KgcNUMQEjH92QhLUI4kznMLszTu7TS/vyRKNFwBcaWY7y36iecvK3YxB pTes6Uyn61cGg== 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: [RFC PATCH 21/32] function_graph: Expand the max reserved data size Date: Mon, 6 Nov 2023 01:10:45 +0900 Message-Id: <169920064470.482486.9772883857059976420.stgit@devnote2> X-Mailer: git-send-email 2.34.1 In-Reply-To: <169920038849.482486.15796387219966662967.stgit@devnote2> References: <169920038849.482486.15796387219966662967.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.8 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 agentk.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 (agentk.vger.email [0.0.0.0]); Sun, 05 Nov 2023 08:11:11 -0800 (PST) X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1781741045901699090 X-GMAIL-MSGID: 1781741045901699090 |
Series |
tracing: fprobe: function_graph: Multi-function graph and fprobe on fgraph
|
|
Commit Message
Masami Hiramatsu (Google)
Nov. 5, 2023, 4:10 p.m. UTC
From: Masami Hiramatsu (Google) <mhiramat@kernel.org> Expand the maximum reserved data size to 32 from 4. On 64bit system, this will allow reserving 256 bytes on the ret_stack in maximum but that may not happen. Signed-off-by: Masami Hiramatsu (Google) <mhiramat@kernel.org> --- kernel/trace/fgraph.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/kernel/trace/fgraph.c b/kernel/trace/fgraph.c index 0b8a1daef733..e7188c67356e 100644 --- a/kernel/trace/fgraph.c +++ b/kernel/trace/fgraph.c @@ -95,7 +95,7 @@ enum { #define FGRAPH_ARRAY_MASK ((1 << FGRAPH_ARRAY_SIZE) - 1) #define FGRAPH_ARRAY_SHIFT (FGRAPH_TYPE_SHIFT + FGRAPH_TYPE_SIZE) -#define FGRAPH_DATA_SIZE 2 +#define FGRAPH_DATA_SIZE 5 #define FGRAPH_DATA_MASK ((1 << FGRAPH_DATA_SIZE) - 1) #define FGRAPH_DATA_SHIFT (FGRAPH_TYPE_SHIFT + FGRAPH_TYPE_SIZE) @@ -113,7 +113,7 @@ enum { #define RET_STACK(t, index) ((struct ftrace_ret_stack *)(&(t)->ret_stack[index])) -#define FGRAPH_MAX_DATA_SIZE (sizeof(long) * 4) +#define FGRAPH_MAX_DATA_SIZE (sizeof(long) * (1 << FGRAPH_DATA_SIZE)) /* * Each fgraph_ops has a reservered unsigned long at the end (top) of the