Received: by 2002:a05:7412:5112:b0:fa:6e18:a558 with SMTP id fm18csp219032rdb; Mon, 22 Jan 2024 18:27:32 -0800 (PST) X-Google-Smtp-Source: AGHT+IHSkFsuwZSTZTV1krSxl4mTsiNbnOMpZ5cEhimpCIRhqmIMaCslWoNz1XNNifjpl9uz6y4D X-Received: by 2002:a05:620a:ed7:b0:783:24c1:dd7c with SMTP id x23-20020a05620a0ed700b0078324c1dd7cmr8530498qkm.1.1705976852694; Mon, 22 Jan 2024 18:27:32 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1705976852; cv=pass; d=google.com; s=arc-20160816; b=REnMJt0aXKHi/uHIAXEKgRKdrw9kvCrmEdTecygnENS6zxmuaN/6izzpcSowtgybcS Y3WzPsr1T3v4ZMxH7J/snsYJd9jtJdCVpZsqr//4x/7lrR+2/58jCciuN4mIEwKnr/LG EsaY4QtILN1DXdrKEBxRxhAddma97pzjrjKQPh2miLRP8/D/XDYjda8Pw5KTFXEnOyb8 9gA8KMwZ58btsBAhyEehR8Qmn9hCVOtoxgJlQC6j5qM8dZvwgqWq0GYnct5Y4Dj3NrnC jDiw0te/yMCBtWUcxSaFNxIaMhKjCoTwPpLqM05CvEme7wAPT/o2DgQlh+Ql55LELSbO v+fA== 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=wbkI4hbJH0Omi1vH0U0mtEeNCIYZJkwSkqihpVTg/+o=; fh=aoSjC1W5KqPo0ut2cPtS81hb0v0CI5UikrphkEMwp+s=; b=l5sSQpgeCZV/+ih95Oq7gAKNZUCeltRjsAR8MMiPzs+V6TpLu7W92KCHODxqjW7XXX ty/KNXkQXUH0TR9VRDLxDSC8X0bYF5lO9UOSi1KFqoOiTILza3O4YKvlTYF/dbKEYZRn tOqJuFEb4pO9336uw+X49WtMn9WQoOwu2dJ9xzaO8pI/LH5h/JV4T9Zhs/dTsNsMWw1Y Tl60DlkrShYW0KpHwKYYJaiTRDNJFWMLyfOBtSPsho6An7znuiLzgKRbqynchsYqQ2bb mzZhFKl4px6KIGWvgLT3rkwRhPQcGJRMdzaa2cgC1b4+ZQYHh1UUJX1j051ttHGyJQqF FvnA== ARC-Authentication-Results: i=2; mx.google.com; arc=pass (i=1); spf=pass (google.com: domain of linux-kernel+bounces-34614-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-34614-linux.lists.archive=gmail.com@vger.kernel.org" Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [2604:1380:45d1:ec00::1]) by mx.google.com with ESMTPS id d29-20020a05620a205d00b007839054efc6si6811385qka.437.2024.01.22.18.27.32 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 22 Jan 2024 18:27:32 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-34614-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) client-ip=2604:1380:45d1:ec00::1; Authentication-Results: mx.google.com; arc=pass (i=1); spf=pass (google.com: domain of linux-kernel+bounces-34614-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-34614-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 ny.mirrors.kernel.org (Postfix) with ESMTPS id 748271C299CF for ; Tue, 23 Jan 2024 02:27:32 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 0C4AC60EE0; Tue, 23 Jan 2024 01:54:12 +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 8737960DD6; Tue, 23 Jan 2024 01:54:11 +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=1705974851; cv=none; b=PTkpeJbL2mW4y3WekBbVMwnHWq1YEeChCcWSwHsaeYhSPcWjkCUbg6pWPYWRvXJty3OT1NiOwze2kGLbg3Cg8Hzwlzb6M3fCeuoC0CejbSpChOWtAwjrwCH7y/oDy7KEpiyxfg+hclPjSdGJr0DgnZlDOAFD5OOGFUw/MNPYlYo= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1705974851; c=relaxed/simple; bh=nt6Hl62u5AXRkmcTQcS/xesbw7puA81xqOiLHvBdtHM=; h=Date:From:To:Cc:Subject:Message-ID:In-Reply-To:References: MIME-Version:Content-Type; b=EYbb8ChhcjUUAN63QHu1K2qwn4tvly+U4WyxylcTEQQ6HgCJsz2j80dWH+KxOlmlYTI5/ADJ31YsCy0MG9UiNbZbOHDht0CHeY1vf12nD+AYwgg6rHO7wHQ4JT72cFhGouJwSWM9nI83KVmkBS7rGBL43Qh9tCtf+TBda8PUXIs= 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 D3510C433C7; Tue, 23 Jan 2024 01:54:09 +0000 (UTC) Date: Mon, 22 Jan 2024 20:55:39 -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: <20240122205539.705f5701@gandalf.local.home> In-Reply-To: <20240123094443.00007b20@linux.dev> References: <20240122073629.2594271-1-dongtai.guo@linux.dev> <20240122105700.05e5ee46@gandalf.local.home> <20240123094443.00007b20@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 Tue, 23 Jan 2024 09:44:43 +0800 George Guo wrote: > There are two reasons of percpu_alloc failed without warnings: > > 1. do_warn is false > 2. do_warn is true and warn_limit is reached the limit. Yes I know the reasons. > > Showing do_warn and warn_limit makes things simple, maybe dont need > kprobe again. It's up to the maintainers of that code to decide if it's worth it or not, but honestly, my opinion it is not. The trace event in question is to trace that percpu_alloc failed and why. It's not there to determine why it did not produce a printk message. -- Steve