Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1161184AbbENU0o (ORCPT ); Thu, 14 May 2015 16:26:44 -0400 Received: from aserp1040.oracle.com ([141.146.126.69]:35519 "EHLO aserp1040.oracle.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S965116AbbENU0f (ORCPT ); Thu, 14 May 2015 16:26:35 -0400 Message-ID: <555504F3.5020209@oracle.com> Date: Thu, 14 May 2015 16:26:27 -0400 From: Sasha Levin User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:31.0) Gecko/20100101 Thunderbird/31.6.0 MIME-Version: 1.0 To: Andrew Morton CC: linux-mm@kvack.org, linux-kernel@vger.kernel.org, kirill@shutemov.name Subject: Re: [PATCH 00/11] mm: debug: formatting memory management structs References: <1431623414-1905-1-git-send-email-sasha.levin@oracle.com> <20150514132413.2a56b25489e0c644e68229bb@linux-foundation.org> In-Reply-To: <20150514132413.2a56b25489e0c644e68229bb@linux-foundation.org> Content-Type: text/plain; charset=windows-1252 Content-Transfer-Encoding: 7bit X-Source-IP: userv0021.oracle.com [156.151.31.71] Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1159 Lines: 34 On 05/14/2015 04:24 PM, Andrew Morton wrote: > On Thu, 14 May 2015 13:10:03 -0400 Sasha Levin wrote: > >> > This patch series adds knowledge about various memory management structures >> > to the standard print functions. >> > >> > In essence, it allows us to easily print those structures: >> > >> > printk("%pZp %pZm %pZv", page, mm, vma); >> > >> > This allows us to customize output when hitting bugs even further, thus >> > we introduce VM_BUG() which allows printing anything when hitting a bug >> > rather than just a single piece of information. >> > >> > This also means we can get rid of VM_BUG_ON_* since they're now nothing >> > more than a format string. > A good set of example output would help people understand this proposal. That would be the equivalent of doing: dump_page(page); dump_mm(mm); dump_vma(vma); I'll add a few example usages in. Thanks, Sasha -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/