From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id A5627C77B7F for ; Tue, 16 May 2023 21:12:51 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230367AbjEPVMu (ORCPT ); Tue, 16 May 2023 17:12:50 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:41376 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229670AbjEPVMs (ORCPT ); Tue, 16 May 2023 17:12:48 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [139.178.84.217]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id D595F5BAB for ; Tue, 16 May 2023 14:12:47 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id 732AD63D3D for ; Tue, 16 May 2023 21:12:47 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 8B744C433EF; Tue, 16 May 2023 21:12:46 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linux-foundation.org; s=korg; t=1684271566; bh=eFhJ5E/uyPdBbrpIyoaIwOP1sjzJ+IF88TEW3wCH5Dk=; h=Date:From:To:Cc:Subject:In-Reply-To:References:From; b=vh5YLJ8WBQ/6v9t45z6wl0Mu2wiNfyM5sOAw3yBJFzd19PoMsMRS+FdbWpusC5gOL XQAK4mofTchsm0wMyfl7MMGBhSkChZ3MlFSWVAPklW11B3C8Xq1tRt7N/FPGc7dOr2 S18JfVhf6NmaVH+xw8LoVw1LQUjoFYGPW5lgM+qY= Date: Tue, 16 May 2023 14:12:45 -0700 From: Andrew Morton To: Oscar Salvador Cc: linux-kernel@vger.kernel.org, linux-mm@kvack.org, Michal Hocko , Vlastimil Babka , Waiman Long , Suren Baghdasaryan , Marco Elver , Andrey Konovalov , Eric Dumazet , Alexander Potapenko Subject: Re: [PATCH v5 0/3] page_owner: print stacks and their counter Message-Id: <20230516141245.356200756ff3750ef4f12094@linux-foundation.org> In-Reply-To: <20230516182537.3139-1-osalvador@suse.de> References: <20230516182537.3139-1-osalvador@suse.de> X-Mailer: Sylpheed 3.8.0beta1 (GTK+ 2.24.33; x86_64-pc-linux-gnu) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, 16 May 2023 20:25:34 +0200 Oscar Salvador wrote: > > ... > > page_owner is a great debug functionality tool that gets us to know > about all pages that have been allocated/freed and their stacktrace. > This comes very handy when e.g: debugging leaks, as with some scripting > we might be able to see those stacktraces that are allocating pages > but not freeing theme. > > ... > > include/linux/stackdepot.h | 8 +++ > lib/stackdepot.c | 128 ++++++++++++++++++++++++++++++++++--- > mm/page_owner.c | 54 ++++++++++++++++ > 3 files changed, 180 insertions(+), 10 deletions(-) Documentation/mm/page_owner.rst is feeling very sad. I'll toss it in there for some testing for now. The changelogs would benefit from a bit of proofreading, please - quite a few typos and grammaros.