Received: by 2002:a05:7412:7c14:b0:fa:6e18:a558 with SMTP id ii20csp453473rdb; Mon, 22 Jan 2024 09:08:57 -0800 (PST) X-Google-Smtp-Source: AGHT+IF1+942eFPq2p1fi1WIM0LZ4/xROo2iBq3zLldSzAaQkzUpaDpFkaTb37aZKVj97+5Pvx15 X-Received: by 2002:ac2:5b0c:0:b0:50e:b205:e8b3 with SMTP id v12-20020ac25b0c000000b0050eb205e8b3mr1469453lfn.68.1705943337746; Mon, 22 Jan 2024 09:08:57 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1705943337; cv=pass; d=google.com; s=arc-20160816; b=z5oHud82I9SbfNbvJFo+t1A9rRBQrQb3Sv8V6GQ0YiRHBnGot/4fIhxfMgwuXwdFL6 gxLIX5lPGclqGOiGfEQ1ldDQ9lyC2uUNzShpcAu0w8IEysNA/h7nb97VcvSZYavEWfWP MHZW5Hk5SnXp4YlFdm3lJtWFoXd7n3lP4CcdrxK3QwUkX5E4E1/IzfHL3i5GgAVmWxCL bO5VpXKm3Hu8XoDgyfEdr/K9ZDYvA/gx5uVtuzuxVFyUKHZj2F19aghjY/sLzYkms27n jgsAzK3LUPCCgp18TBKksWjhu+m180zTTrNmTEb0L76U+mvT7jcCCdE2d0BeaDFuAP4o 34sA== 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:references:in-reply-to:message-id :subject:cc:to:from:date; bh=WeztMH++F2v1ngvCHkG9pQNZmPheS4h/WGzhGYFvzK8=; fh=aoSjC1W5KqPo0ut2cPtS81hb0v0CI5UikrphkEMwp+s=; b=FPu/3jT6ayWCf4IoW5grFNLYYjGg57D/JpTXWqfNe19Tb8zAPKyIpJAu7+y9QAQ4ju WiWkaQ2Y78y9964YtzD3wlEgHMhu+kYuWB2pf2GVOAeEs3BFj9o/9Xu+e6rivEsImhSs mlJsl9vu2Rn/0w2QukvP/HQswcoKGCwjpBtpQOuaFy8ISKB0+yntAt/Ou8daRQF06FMu LcQXYW0HnBdp91RTNmDpEMvhj7li1lmpxf7Ect1nV2xV3vGPy2b/4wRAAXrhPIA49iQ/ m9GltcHleR+O3vyq/uDacSvi2W8ord8kM2mOKUOWlNE4Vnn6YPwipZdhcV1DM0lUgEXC Iavg== ARC-Authentication-Results: i=2; mx.google.com; arc=pass (i=1); spf=pass (google.com: domain of linux-kernel+bounces-33636-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-33636-linux.lists.archive=gmail.com@vger.kernel.org" Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [2604:1380:4601:e00::3]) by mx.google.com with ESMTPS id dc26-20020a170906c7da00b00a2daf61059csi8077825ejb.615.2024.01.22.09.08.57 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 22 Jan 2024 09:08:57 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-33636-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) client-ip=2604:1380:4601:e00::3; Authentication-Results: mx.google.com; arc=pass (i=1); spf=pass (google.com: domain of linux-kernel+bounces-33636-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-33636-linux.lists.archive=gmail.com@vger.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 7E8681F2527D for ; Mon, 22 Jan 2024 17:08:57 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id BF1083DBAD; Mon, 22 Jan 2024 15:55:35 +0000 (UTC) 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 43C0F3DB9E; Mon, 22 Jan 2024 15:55:34 +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=1705938935; cv=none; b=GX1ZIgxzeR50XI//OmUVPNBUe4Dn5ZadDjVeJKSiYLjaNnvfJse8Ge7b8t6WI5wSLCe1uZj4xIWoPEhA5+UA8CiPjhMeoUD1miFFDfj8usOqb/XyEb72X+IUSytALn6dB5NFMdFmT4+vxHU2bHO2szBdqpf8zaofGMY0MjxI5RI= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1705938935; c=relaxed/simple; bh=wFHV5w4eFFMMNTf7evJdhihmrKVVk9HXlU999A05S6c=; h=Date:From:To:Cc:Subject:Message-ID:In-Reply-To:References: MIME-Version:Content-Type; b=e3OjpJmSWR7mdyZkcFgxValS/RpxsC9NJIU5Me/8EwWAdECqqJsS7ABTjTYPfWJYZAH0KJMjA/76zolc+OF2DDOe3CtInYOpdnTxf8jF/EIRoiIhgfqrhmjsbV2RMj17jHmwXAOyIsIuZnIu7p/WnpF28VX3CZtEa7qPTSMZQro= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPSA id 6071DC433C7; Mon, 22 Jan 2024 15:55:33 +0000 (UTC) Date: Mon, 22 Jan 2024 10:57:00 -0500 From: Steven Rostedt To: George Guo Cc: Masami Hiramatsu , Mathieu Desnoyers , Dennis Zhou , Tejun Heo , Christoph Lameter , Andrew Morton , George Guo , linux-kernel@vger.kernel.org, linux-trace-kernel@vger.kernel.org, linux-mm@kvack.org Subject: Re: [PATCH] percpu: improve percpu_alloc_percpu_fail event trace Message-ID: <20240122105700.05e5ee46@gandalf.local.home> In-Reply-To: <20240122073629.2594271-1-dongtai.guo@linux.dev> References: <20240122073629.2594271-1-dongtai.guo@linux.dev> X-Mailer: Claws Mail 3.19.1 (GTK+ 2.24.33; x86_64-pc-linux-gnu) Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit On Mon, 22 Jan 2024 15:36:29 +0800 George Guo wrote: > From: George Guo > > Add do_warn, warn_limit fields to the output of the > percpu_alloc_percpu_fail ftrace event. > > This is required to percpu_alloc failed with no warning showing. You mean to state; In order to know why percpu_alloc failed but produces no warnings, the do_warn and warn_limit should be traced to let the user know it was rate-limited. Or something like that? Honestly, I don't think that the trace event is the proper place to do that. The trace event just shows that it did fail. If you are confused to why it doesn't print to dmesg, then you can simply add a kprobe to see those values as well. -- Steve > > Signed-off-by: George Guo > ---