Received: by 2002:a05:7412:5112:b0:fa:6e18:a558 with SMTP id fm18csp972503rdb; Wed, 24 Jan 2024 00:15:35 -0800 (PST) X-Google-Smtp-Source: AGHT+IFzX4BOOdslfxre2NBwf3rEJhi3iMAxKBHDmnZfyCAYRseYyDyCfuMOZWKwN/ZB/Hq/sEKf X-Received: by 2002:a17:90a:7141:b0:28d:e380:ddd6 with SMTP id g1-20020a17090a714100b0028de380ddd6mr3445770pjs.0.1706084134893; Wed, 24 Jan 2024 00:15:34 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1706084134; cv=pass; d=google.com; s=arc-20160816; b=yV3AsdsSvbFdydNMqkiAMzUwUyPHc53lmI2AgqoQu2Iy3Av7YMX++BDhgpeSKMoedj /JFcMnRZj0/bd8B4FIgNQAIWkh7O60dGxdyPEq4k6WthtcaqNE//NUSFQBiBqaPmp4CF i4KPF1zXL4Y8azFpde6nxwX7aUf/8Zw0gyRrIQRK99rrnXwjv1J2usi6YTFjJS5f2m2i D0MB8bpSbMDWeV+R6urFJtWvWUu8mhrB6GIWi0vwwTqhxzG5Hhqhber3P11fveF9066O BnoJltlHnRwpaq4BbBGu5i4yG/4u4mBsi03ohpdz4VsmX4BuF/sZ6b5nmlg0+mNJhGjT DUpg== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=in-reply-to:content-disposition:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:message-id:subject:cc :to:from:date; bh=B9qF18RzvDXzodIwOLOD1mj5uV5sasqvoSwmEt0eiQ8=; fh=6cz+Q+SE+stjHpsKkjaJySAOvsYwPsewiUf2gzDHhxU=; b=A/26mAwh2l9OciKDADPpDea3eUluh/NblOPpcE+2cUrCtUd/HMGzRtY19SBQjOVCBn XV+vVUVE1Avv0BD+J7ug2yU1xsuVTVQwd2gLiCJpISLC+A7dCQc3wqeN3kgpGCABFwPw jI+A2+lpeU94/mlQTqeXQ1KoJrAEhBwURbHoU0HFwubl+57xln+KWQHEtDQyZP79xjTH 20Q42BBZf07oI5g+DVmLrY7pPb9PwjjoL2EtVa77/mmAHAPlW5uIoVQ7BPOUnSjO0suC VbbEZUgniYjpIXcPvL3oZ2nNDINlLvsLd2DI2SK0UZHSrFngcsR0EIXwL0EZasb7xMEO wqxA== ARC-Authentication-Results: i=2; mx.google.com; arc=pass (i=1 spf=pass spfdomain=gmail.com); spf=pass (google.com: domain of linux-kernel+bounces-36620-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-36620-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [139.178.88.99]) by mx.google.com with ESMTPS id w6-20020a17090abc0600b002904ea1a4b7si8941078pjr.188.2024.01.24.00.15.34 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 24 Jan 2024 00:15:34 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-36620-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) client-ip=139.178.88.99; Authentication-Results: mx.google.com; arc=pass (i=1 spf=pass spfdomain=gmail.com); spf=pass (google.com: domain of linux-kernel+bounces-36620-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-36620-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=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 sv.mirrors.kernel.org (Postfix) with ESMTPS id C0E5529281E for ; Wed, 24 Jan 2024 08:13:49 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 7C60917555; Wed, 24 Jan 2024 08:13:17 +0000 (UTC) Received: from mail-pf1-f170.google.com (mail-pf1-f170.google.com [209.85.210.170]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 9C62C17543; Wed, 24 Jan 2024 08:13:15 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.210.170 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1706083996; cv=none; b=QnRcR2ux0HbqH0yT01fgmg7LU9gfInqWxHG2EeY2vJws6xx3zSSUY+xyFdOGGaljKUkNn+XPDUjAh6g6OYSsAXvNAjvFqdPbmYlEEF+LCyHt7Y4wiKT3GOcW5J6rLkdglSEnIK3md+sd8obpbwMlEtz5/oWDeL3IyoebvR6HgAQ= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1706083996; c=relaxed/simple; bh=RfjYW6e1IYhvrEGXxzFytIMTdGZXx5WayXRK/3yFuoY=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=dwEeVHh+Vny80+5YOneNIh0veah0yZOFaCzzA+z8QMeQ0qDHgvAUqK5zylOnIW0B6nbhvBMsLYOrAjZEheUN1LGs7nhTI6utKy/fMSngg6X3IvYErrDQUiLbXMUKwqwcfU3vTX2AaBGjqtrxfbRnzMauM/FApJ3qA8F1H+DdYog= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=fail (p=none dis=none) header.from=kernel.org; spf=pass smtp.mailfrom=gmail.com; arc=none smtp.client-ip=209.85.210.170 Authentication-Results: smtp.subspace.kernel.org; dmarc=fail (p=none dis=none) header.from=kernel.org Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=gmail.com Received: by mail-pf1-f170.google.com with SMTP id d2e1a72fcca58-6daa89a6452so3558593b3a.2; Wed, 24 Jan 2024 00:13:15 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1706083995; x=1706688795; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to; bh=B9qF18RzvDXzodIwOLOD1mj5uV5sasqvoSwmEt0eiQ8=; b=F2DOFkUIl2kTknTwBfUrELoWoyNVNjWC4hxw+9nSrOC5jJ6HN3lNzY6o3q5MDS9r1m GP5n9NOYd+VSmGLHEbrqjwPuRu51ZyCbQWsRNB3TuZpd93zlStnRJ+Be3AFQNj/86kz9 bnxJyuF2FJ6dVfdBXvWIjcrjzTQ4DiZkF0iZE/uzpj2181AYukrq4HFcf0K1jS3A1UwV FVzvgOb03clKpNWA9NHA8by078p1n7hkQtmAPG/C9mTMfKTPDizUm1hwpqEDls7x2x7R vmitZ6kdtxKlMIK5Y+tkyKofJFyTHmMrvEOgykxO0ju98vJDlaP9ov1Ocio9VlDCU4Hw M+JA== X-Gm-Message-State: AOJu0YzUsInSqwk0XFr7pFgKe1vMSLPlVAUxryrGahqSzHOWMSoHgVZe ZEMqEkk9BlWUVOkDeiO1nhBjksgUo7drD12pa9vMBFzYV4TJNgFK X-Received: by 2002:a05:6a00:2443:b0:6db:afd4:f54c with SMTP id d3-20020a056a00244300b006dbafd4f54cmr4792529pfj.0.1706083994816; Wed, 24 Jan 2024 00:13:14 -0800 (PST) Received: from snowbird ([136.25.84.107]) by smtp.gmail.com with ESMTPSA id e14-20020a056a001a8e00b006dd8985e7c6sm974076pfv.1.2024.01.24.00.13.13 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 24 Jan 2024 00:13:14 -0800 (PST) Date: Wed, 24 Jan 2024 00:13:11 -0800 From: Dennis Zhou To: Steven Rostedt , George Guo Cc: Masami Hiramatsu , Mathieu Desnoyers , 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: References: <20240122073629.2594271-1-dongtai.guo@linux.dev> <20240122105700.05e5ee46@gandalf.local.home> <20240123094443.00007b20@linux.dev> <20240122205539.705f5701@gandalf.local.home> 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-Disposition: inline In-Reply-To: <20240122205539.705f5701@gandalf.local.home> Hello, On Mon, Jan 22, 2024 at 08:55:39PM -0500, Steven Rostedt wrote: > 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. > I agree, I don't think this is a worthwhile change. If we do change this, I'd like it to be more actionable in some way and as a result something we can fix or tune accordingly. George is this a common problem you're seeing? > 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 Thanks, Dennis