Received: by 2002:a05:7412:bbc7:b0:fc:a2b0:25d7 with SMTP id kh7csp1871908rdb; Sun, 4 Feb 2024 05:09:26 -0800 (PST) X-Google-Smtp-Source: AGHT+IGKr450pPDgcv62NY5YTHOsRnSJqWdQEB7uAHQ/sp6ZNhkWeCadhk+iBuQuKJztfOh/9H7h X-Received: by 2002:a0c:e0cb:0:b0:68c:8667:f77f with SMTP id x11-20020a0ce0cb000000b0068c8667f77fmr3406503qvk.18.1707052166309; Sun, 04 Feb 2024 05:09:26 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1707052166; cv=pass; d=google.com; s=arc-20160816; b=ZI0b+vfnsDT4M4jH91YY4+DUnEUWd7yYIs8GZsfH53QzaYQ28oHY8QeD6TuXPrYe4q IeOBi6eSeXktbnKzJ9rz7Zzvlui2jXkOXFn2Rz2+pkPRb4fKSI0K1aHm98a5ExNq8gNg aWisWOeAyNJUvmTGH3d4idMf9J5lFxoYF8o4xtc8nw4infpbIdwAvS8LgGdbR84semoB SpqQNXdl+sKG5Qy0BKxcGUXfiZ3hjgNAs2+5K5AiaJ4Dkm3PLvi8FE+M7oBHmyR+JLXQ u0EaewGkUBS5h7euv8S+jAqnOQahkM2ehCkujbwXw/WHgVQERle7lJ+3XHvyxhx7lWtI pwmw== 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:dkim-signature; bh=+NJoLSVZxThuI8pKdUvxE4uLXUdMZOul6zavULR8eqA=; fh=/Mrr42K1PdDsVtkybXfi2BCoNoDnT26W87xhdo2ypVk=; b=B9IYCpI++XiWS7AMuEANnjrZU8AjRr3YrVAC71A6lnYSmulbHzwdbonsH9FAwPXn0R 11NbzDaWg9bt4+Ja+pUinGk0HAnTz1zcrjNVLqvELYt4hEykC9j3nPJv1Msui8M+A6TW 8oo7M1K/+06nmSL8rWZQWv+5i6zhidOrxwaJDQXaG6Mpsr8HbOdpw2AdKcvTcvcv1mPX SJ0kDGtnWQ2G6pjwRjS6nX4buwD2ovh2XILARrW3WiG4TYR3864oMZOoQcR07nolg91E 1VG4OWvNQ6idm6lybS1rGUws9zIqPTtfj30eR/NTr+hae9bllh88FmI+g3pVnA+v9Ffq /tDA==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=M4Um41+t; arc=pass (i=1 dkim=pass dkdomain=linuxfoundation.org); spf=pass (google.com: domain of linux-kernel+bounces-51657-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-51657-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org X-Forwarded-Encrypted: i=1; AJvYcCXuaN64rjyZFFqZ6Hk6YKMiR+BuFEj+4UhUwQ/Q69KO3zcSPSUt2T4Yq05xxTKya+4f0wB5UVOCTUCZ4oaCLy89jaT5xwDaT+po1y1UfA== Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [147.75.199.223]) by mx.google.com with ESMTPS id q15-20020a05620a038f00b0078538825194si6223167qkm.421.2024.02.04.05.09.26 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 04 Feb 2024 05:09:26 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-51657-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) client-ip=147.75.199.223; Authentication-Results: mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=M4Um41+t; arc=pass (i=1 dkim=pass dkdomain=linuxfoundation.org); spf=pass (google.com: domain of linux-kernel+bounces-51657-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-51657-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.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 BE18B1C22C3E for ; Sun, 4 Feb 2024 13:09:25 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 05725224DF; Sun, 4 Feb 2024 13:09:21 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b="M4Um41+t" 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 281EC224CE for ; Sun, 4 Feb 2024 13:09:19 +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=1707052160; cv=none; b=fUqciupeUg53tg6KV/NPNz20+0093gTdBO69ZxlI3IAcFa2IkdddCZA4yqHLhwnWOpDNuEmG5GXuBRsetICW5ToN6i2eYkSd5sI3DqzfTBLkEZS//kVRVnQw7d7GVzrmwrm6+xPmOph2/4aQYPEQCFSNo+hCq6yed7eAgt+ZSgE= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1707052160; c=relaxed/simple; bh=wS5G8p7qKOmOMkyKYFO2M4ZLkfVca+B/dMqr4h+AJCs=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=hqDQ4HQBvWejouvHpb5dCMOaEmctNHCrd9XFd3iGOrB9McjMoznI8VpcnaZU8pmenaulBNlKVUvP2ffnvVvHKfdi/IMuuxnWgX9W+zDLFULVKWlWC/VPw6F9iPfEdhoX96SGV00JQGv6lJKxV0VA+NvcD9HSze75vqOJnpc2oPY= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=M4Um41+t; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPSA id 98F4EC433F1; Sun, 4 Feb 2024 13:09:19 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1707052159; bh=wS5G8p7qKOmOMkyKYFO2M4ZLkfVca+B/dMqr4h+AJCs=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=M4Um41+tWedkPEUIYTt1vo58ax57nGthjHG4mdjIl0VWInh0tJS8T2kBHdy5nHx/b H2tJkjwtUEVNmr6lpgWOO4n4y61V1EcXjLPWDJqE6bLBHP6dC79ENJj3zLzDRnAo96 SE2mueivUyNojMY4BP++VzsONomZLK84UtyCnZDg= Date: Sun, 4 Feb 2024 05:09:18 -0800 From: Greg KH To: Fangzheng Zhang Cc: Christoph Lameter , Pekka Enberg , David Rientjes , Joonsoo Kim , Andrew Morton , Vlastimil Babka , Roman Gushchin , Hyeonggon Yoo <42.hyeyoo@gmail.com>, linux-mm@kvack.org, linux-kernel@vger.kernel.org, Fangzheng Zhang , Yuming Han , Chunyan Zhang Subject: Re: [PATCH] mm/slab: Add slabreclaim flag to slabinfo Message-ID: <2024020441-version-chihuahua-1067@gregkh> References: <20240131094442.28834-1-fangzheng.zhang@unisoc.com> 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: <20240131094442.28834-1-fangzheng.zhang@unisoc.com> On Wed, Jan 31, 2024 at 05:44:42PM +0800, Fangzheng Zhang wrote: > In order to enhance slab debugging, we add slabreclaim flag to > slabinfo. Slab type is also an important analysis point in slabinfo > for per slab, when various problems such as memory leaks or memory > statistics occur. > > Signed-off-by: Fangzheng Zhang > --- > mm/slab_common.c | 7 ++++--- > 1 file changed, 4 insertions(+), 3 deletions(-) > > diff --git a/mm/slab_common.c b/mm/slab_common.c > index 238293b1dbe1..aeeb2bfe6dda 100644 > --- a/mm/slab_common.c > +++ b/mm/slab_common.c > @@ -1038,7 +1038,7 @@ static void print_slabinfo_header(struct seq_file *m) > seq_puts(m, "slabinfo - version: 2.1\n"); > seq_puts(m, "# name "); > seq_puts(m, " : tunables "); > - seq_puts(m, " : slabdata "); > + seq_puts(m, " : slabdata "); Doesn't this change the slabinfo version number above? Where is this change documented so that userspace knows about it? thanks, greg k-h