Received: by 2002:a05:7412:1e0b:b0:fc:a2b0:25d7 with SMTP id kr11csp422257rdb; Thu, 15 Feb 2024 04:36:36 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCVi4lPaFPsMuJJMliVNJ6BL7VtHjgfbF8htyVLOXLQD/jAzBRz3hpUTykuCUYGXbTC0jjjnNBLNj6Mo0tySuU1j2tg3s0nsF8vCtVwIkQ== X-Google-Smtp-Source: AGHT+IHd1+9MJH23osZWQbtXBwclrkb5kTuo8PpTc23HJwnX7KprRxPQstcGGxzqoQSlN8TpVH6T X-Received: by 2002:a05:6a00:3cd0:b0:6d9:b4a7:695a with SMTP id ln16-20020a056a003cd000b006d9b4a7695amr1905024pfb.16.1708000596756; Thu, 15 Feb 2024 04:36:36 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1708000596; cv=pass; d=google.com; s=arc-20160816; b=qcEHl+q4yBXf3v3O3sFDxzSU3zh1Nir74h5xMnDs1aFPUUdARwa0m9UrI47Hdx9g3P zQQeMUuD3nB+bJ5s32Y7mJsgRz/nvju3fECAyNVTr3nUB7Mm+XFqo4nA+/LBsxyQNZkk G/91pTpZzIltHtig1qh2eJLzAujgIuxKLQ61TR0HLURn8MSdWdFc1YrzTatqUk+MASVh wz37sOCzLCL1EAXHlmEKd/2rtbilU4kDffM+HORjat1mPWK2+IeUtRGg9GXK3e3U11bh aew4ax+WeI1b0iA0g/p+ak70fBjTa/BmBUbLGrJR2TzXU1+7v8m/jB3PZXDtV481ybFQ q1Eg== 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=DQQZ00risznqQY3P+jzZHLbTh2ubc2GWn+hDHP3p07g=; fh=un/7AXazoEIibWjEhGIYzoVpGud9WBpRFG5JjZGiHEA=; b=gxZQnJnXGY6g3L9m9knl1BZGEzxKnfiLwhyOD6cL9L2ONVZ3SumUoKOrsye+PmF+QQ k7Gn/pBe4ao9z7sK8ZPPTuFWmzkTWXSPnAJYqiYXR6oguTk4lmuKN5apb4+G88T9mgDi aLPTdVblkS34nNiDttMEArazl08ku8KxA62LKEcDU9qSVds6HFVs1aAcQEuSS7huiT0j VvORa+CilTHhNSmthoCUQbWQfPi/gp2jZbJ2aTP/0tneWz1vgyJB/SjuqIMxKoJb69aF 3yvvSGqUc5PliTjIrMrdRoVuRdFRdcWUmUZYZf3kasgXoTVZwaG+az3ABTT73cta1SZx HDCw==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; arc=pass (i=1 spf=pass spfdomain=suse.de dmarc=pass fromdomain=suse.de); spf=pass (google.com: domain of linux-kernel+bounces-66847-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) smtp.mailfrom="linux-kernel+bounces-66847-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=suse.de Return-Path: Received: from sy.mirrors.kernel.org (sy.mirrors.kernel.org. [147.75.48.161]) by mx.google.com with ESMTPS id h18-20020a056a00171200b006ddcec89d8dsi1052860pfc.194.2024.02.15.04.36.36 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 15 Feb 2024 04:36:36 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-66847-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) client-ip=147.75.48.161; Authentication-Results: mx.google.com; arc=pass (i=1 spf=pass spfdomain=suse.de dmarc=pass fromdomain=suse.de); spf=pass (google.com: domain of linux-kernel+bounces-66847-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) smtp.mailfrom="linux-kernel+bounces-66847-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=suse.de 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 sy.mirrors.kernel.org (Postfix) with ESMTPS id E3A50B303E9 for ; Thu, 15 Feb 2024 11:58:22 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 90EA112BE85; Thu, 15 Feb 2024 11:57:39 +0000 (UTC) Received: from smtp-out1.suse.de (smtp-out1.suse.de [195.135.223.130]) (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 7179F12B171 for ; Thu, 15 Feb 2024 11:57:37 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=195.135.223.130 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1707998259; cv=none; b=gEgTnH/I+T4mHtLfi7itUVAsZG5/ItYeJaaxTSubf9pgFwfumI4xP6U97exqDPOtK9D+WidgcFbZjnsuzRhvoAnZ3awM087jjbEQI0s7CljW0OwV0ikBO4ZZrMOFiWFH/hOosPXC/j5TBsAW2yW6wi4XCSkpFoe4FKLGb9uusoM= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1707998259; c=relaxed/simple; bh=WNgeeoZaOMOZt+4Bl0O7s3ta+T1aHv+7CYkip/mTMGc=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=JI3mj3SaHt+0bp/emzROc0jlFZWKXA7lkZNIf0XK26JU3hRou7hGIsbuqT8jXxiKSPr+M4vY3654TNnjnMZtRzTSkDLa/tQPxwTL6xlZWzC4KodYgjm21FyY2Zn4QriN8BYmf9BQY+EhlZtmeXIWsGnt9qzu7G3DsO5t5gpklB4= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=suse.de; spf=pass smtp.mailfrom=suse.de; arc=none smtp.client-ip=195.135.223.130 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=suse.de Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=suse.de Received: from imap2.dmz-prg2.suse.org (imap2.dmz-prg2.suse.org [IPv6:2a07:de40:b281:104:10:150:64:98]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by smtp-out1.suse.de (Postfix) with ESMTPS id CA9F722205; Thu, 15 Feb 2024 11:57:34 +0000 (UTC) Received: from imap2.dmz-prg2.suse.org (localhost [127.0.0.1]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by imap2.dmz-prg2.suse.org (Postfix) with ESMTPS id 53DA21346A; Thu, 15 Feb 2024 11:57:34 +0000 (UTC) Received: from dovecot-director2.suse.de ([10.150.64.162]) by imap2.dmz-prg2.suse.org with ESMTPSA id sGO6ES78zWVaBwAAn2gu4w (envelope-from ); Thu, 15 Feb 2024 11:57:34 +0000 Date: Thu, 15 Feb 2024 12:58:44 +0100 From: Oscar Salvador To: Vlastimil Babka Cc: Andrew Morton , linux-kernel@vger.kernel.org, linux-mm@kvack.org, Michal Hocko , Marco Elver , Andrey Konovalov , Alexander Potapenko Subject: Re: [PATCH v9 5/7] mm,page_owner: Display all stacks and their count Message-ID: References: <20240214170157.17530-1-osalvador@suse.de> <20240214170157.17530-6-osalvador@suse.de> <4f4f008b-bde1-4551-ae24-db2c0778eb27@suse.cz> 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: <4f4f008b-bde1-4551-ae24-db2c0778eb27@suse.cz> X-Spam-Level: Authentication-Results: smtp-out1.suse.de; none X-Rspamd-Server: rspamd2.dmz-prg2.suse.org X-Spamd-Result: default: False [-4.00 / 50.00]; REPLY(-4.00)[] X-Spam-Score: -4.00 X-Rspamd-Queue-Id: CA9F722205 X-Spam-Flag: NO On Thu, Feb 15, 2024 at 12:10:38PM +0100, Vlastimil Babka wrote: > On 2/14/24 18:01, Oscar Salvador wrote: > > Signed-off-by: Oscar Salvador > > Acked-by: Marco Elver > > Reviewed-by: Vlastimil Babka Thanks > > + for (i = 0; i < nr_entries; i++) > > + seq_printf(m, " %pS\n", (void *)entries[i]); > > + seq_printf(m, "stack_count: %d\n\n", refcount_read(&stack_record->count)); > > So count - 1 here to report actual usage, as explained in reply to 4/7? Yes, will do. -- Oscar Salvador SUSE Labs