Received: by 2002:a05:6a10:9848:0:0:0:0 with SMTP id x8csp370455pxf; Wed, 10 Mar 2021 08:01:41 -0800 (PST) X-Google-Smtp-Source: ABdhPJzR7WMEreGh0Oh7CCKJpOwQWWH7Udu3mpLjNSqJRuxXPlzk+N+u9IC9uqbzkYbeaE1FfzDi X-Received: by 2002:a17:906:32da:: with SMTP id k26mr4403238ejk.483.1615392101452; Wed, 10 Mar 2021 08:01:41 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1615392101; cv=none; d=google.com; s=arc-20160816; b=hxjXZhCmB9NpNSBQMjSTq/LcCzsuA6eNH1FcabXaQXm7iJDBx9Y48gqUId2JgVPZd1 o88vbiT7MjAeDvco29jlQV+OJy+0WQL52pJp7BCey7iIuotBaQneUUuVKnvmpKpNnqAo FTSJKzWYEUJ/vK7jqgyb4XgpQ3HCNYP5y4qAWQlB2GLhrXGDwCAkIh9Wps1bQxO15UG0 motYufqIs86enucB27gJjw1JD4ytoH/WMiqchAr+kcRRFubAU/2/BVZd98cuVxfSZTWt gNZyUyXnuZhBDRGUy46tezfPPCfxp8t3Q9lW25XrDnMe0o8Kt/TSMlLMEIzXVJfMgX6K Wncg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:sender:dkim-signature; bh=XYIw53FG6Pi0idyEbOGAM+kfG1SQqpJslcWfjDqB6js=; b=NozxMZ5vF7Hr0iHLEs1jwxxus+vrcIDIwOY4eK5MFFio3DvIYWlXq2aBt+eaXUiLon AHcOMmt9OldLJkO6DuHSNt8z3uTUcJmHY/YUYrxuHX59S7xfLSqZnIPYqCvv1ZDvfbUb UqpHitMBIQ9AtxJmGUqrpWy8mTtiDUAN9svbmbgvTu+OE2X6VKoFdeZieUs2WU04q2HQ ULvdJYndldcOzY+0MrDbmyq1GkRG22UsXz6Ud4Oh6NcFzVu3LmHQQYNY+fubc99ax43Q v2hse/6w2KbzIjP/JZ2Y47CQ1SWYm37ncE/MBSOTaig4sEb5OOUkiaK3FoOKFbXK73sY /RgQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=prYQIQ3q; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id r21si10736980edw.605.2021.03.10.08.01.14; Wed, 10 Mar 2021 08:01:41 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=prYQIQ3q; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232821AbhCJQAI (ORCPT + 99 others); Wed, 10 Mar 2021 11:00:08 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:51318 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232130AbhCJP7i (ORCPT ); Wed, 10 Mar 2021 10:59:38 -0500 Received: from mail-pj1-x1036.google.com (mail-pj1-x1036.google.com [IPv6:2607:f8b0:4864:20::1036]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 77FE8C061760 for ; Wed, 10 Mar 2021 07:59:38 -0800 (PST) Received: by mail-pj1-x1036.google.com with SMTP id lr1-20020a17090b4b81b02900ea0a3f38c1so328580pjb.0 for ; Wed, 10 Mar 2021 07:59:38 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=sender:date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to; bh=XYIw53FG6Pi0idyEbOGAM+kfG1SQqpJslcWfjDqB6js=; b=prYQIQ3qyXWCVibRtNvRq4flpOmaMd4lkcnSgz/w7bz6BKppSS0icpG1u485cofcxh l6GchQXDHIrUAS8oQUK55YNP3CeIQtaA6ZUGvtzehNMplVm2wt5zNf9nG2Osy6bhY9MC D/izinGXARDF/6KJv9HJ8k0h23vy9PBKh5N88D7D42lbhQngCpsUqVQmpvcdgzfQEyw5 83yGT0xVrOVCbmQyXJxSbP553TQ0OwMmMAzUGXdLB6brA9hIsRNQv9MCbCFANc08hoRC IsExRfEvwiRtA9yHu8cgAbFBsLuUMvN8KQpKffzhU+PX/d2cm0vg0s05HP1H6R5Gk3mI MOfA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:sender:date:from:to:cc:subject:message-id :references:mime-version:content-disposition:in-reply-to; bh=XYIw53FG6Pi0idyEbOGAM+kfG1SQqpJslcWfjDqB6js=; b=tHdFk1O89NAjWDD8t8jMFELsr+Wmqp7v/3gMFnBqYBDj+GoCOMVktoCwB61DbbzX5n xSUtnwE8hhgtQYB2Z7BlDcw4aUBX9+cf21ZrmaoOYY3YUqYs8j+4x14WoufLaxw7oQLW EBYBoCYrbjir76bLhijlgsgw2YkqCAJsEuMgY2MeXIxyO1Q0b5Kit023OsbPaBOkHyuM cNY/CC0oTQ/FxicT5sA33cUCDyhHmUAP4jbpTsWnvticssdPzqHTAnXimJKubEADColq vpIIUzarqFZXDgNZd3fYoSrxFzTfZWw85vZ6MIxNPcL234BckWQq+qCFNcDONi7fhQBD Pz9w== X-Gm-Message-State: AOAM530SasHMVF1aU9VHk2wHTiPJiVkkoh7A3pV4fDe0FYaBb3y6XlNJ ne8/1ITF0gbfKdDdpVxfxFQ= X-Received: by 2002:a17:902:d2c7:b029:e6:34e2:7a83 with SMTP id n7-20020a170902d2c7b02900e634e27a83mr3759493plc.60.1615391977985; Wed, 10 Mar 2021 07:59:37 -0800 (PST) Received: from google.com ([2620:15c:211:201:64cb:74c7:f2c:e5e0]) by smtp.gmail.com with ESMTPSA id c193sm17971105pfc.180.2021.03.10.07.59.36 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 10 Mar 2021 07:59:36 -0800 (PST) Sender: Minchan Kim Date: Wed, 10 Mar 2021 07:59:34 -0800 From: Minchan Kim To: Michal Hocko Cc: Andrew Morton , linux-mm , LKML , John Dias , David Hildenbrand , Jason Baron Subject: Re: [PATCH v2] mm: page_alloc: dump migrate-failed pages Message-ID: References: <20210308202047.1903802-1-minchan@kernel.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, Mar 10, 2021 at 02:04:55PM +0100, Michal Hocko wrote: < snip > > > > Also are all those CONFIG_DYNAMIC_DEBUG* ifdefs necessary? Can we > > > simply enable DYNAMIC_DEBUG for page_alloc as I've suggested above? > > > > They are different usecases. > > > > With DYNAMIC_DEBUG_MODULE with CONFIG_DYNAMIC_DEBUG_CORE, > > it works for only specific compile flags as you suggested. > > (CONFIG_DYNAMIC_DEBUG_CORE is requirement to work DYNAMIC_DEBUG_MODULE. > > > > With CONFIG_DYNAMIC_DEBUG, user could enable/disable every dynamic > > debug places without needing DYNAMIC_DEBUG_MODULE flags for source > > files. > > > > Both usecase makes sense to me. > > Well, this is more of a question for dynamic debugging maintainers. But > it would be really great to reduce the ifdefery as much as possible. I don't understand why this is something particular case which is okay to lose either way to make dyndbg dynamic.