From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752450AbcGBQRb (ORCPT ); Sat, 2 Jul 2016 12:17:31 -0400 Received: from mail-pf0-f195.google.com ([209.85.192.195]:33331 "EHLO mail-pf0-f195.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751877AbcGBQR3 (ORCPT ); Sat, 2 Jul 2016 12:17:29 -0400 From: Sergey Senozhatsky To: Joonsoo Kim Cc: Andrew Morton , Vlastimil Babka , linux-mm@kvack.org, linux-kernel@vger.kernel.org, Sergey Senozhatsky , Sergey Senozhatsky Subject: [PATCH 0/3][RFC] mm/page:_owner: track page free call chain Date: Sun, 3 Jul 2016 01:16:53 +0900 Message-Id: <20160702161656.14071-1-sergey.senozhatsky@gmail.com> X-Mailer: git-send-email 2.9.0.37.g6d523a3 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hello, RFC Page owner tracks a call chain that has allocated a page, this patch set extends it with a PAGE_OWNER_TRACK_FREE functionality, that now also tracks a call chain that has freed the page. Page dump, thus, now has the following format: a) page allocated backtrace b) page free backtrace c) backtrace of path that has trigger bad page For a quick example of a case when this new b) part can make a difference please see 0003. Sergey Senozhatsky (3): mm/page_owner: rename page_owner functions mm/page_owner: rename PAGE_EXT_OWNER flag mm/page_owner: track page free call chain include/linux/page_ext.h | 15 ++++++- include/linux/page_owner.h | 16 +++---- lib/Kconfig.debug | 10 +++++ mm/page_alloc.c | 4 +- mm/page_owner.c | 110 +++++++++++++++++++++++++++++++-------------- mm/vmstat.c | 5 ++- 6 files changed, 113 insertions(+), 47 deletions(-) -- 2.9.0.37.g6d523a3