Received: by 2002:ac0:aed5:0:0:0:0:0 with SMTP id t21csp2107478imb; Sun, 3 Mar 2019 18:26:53 -0800 (PST) X-Google-Smtp-Source: APXvYqx5bNn8/5zWnHHri2e59SBEzZq0O+55CrpR8ryu+qyRm7V1BWU2njSaCfD1MM0DoXNm+02p X-Received: by 2002:a62:ac10:: with SMTP id v16mr18339920pfe.111.1551666413462; Sun, 03 Mar 2019 18:26:53 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1551666413; cv=none; d=google.com; s=arc-20160816; b=nogV03fcyxEDKF0UYxv/NjryVLddav1xGlt7bC+bCtIwsTTKClntcVr+OS99R9jo+I UTwPAkqexdKjHIk1v4d0y8YV1oS7glsw+YEj8QOC0+Fm68GY+pUH1tTVVQD/1rQWmoMw cnvZsupDfbeb3mvRuKY3RlB2LjNI1a+T3q/QBDs14ZmTXZdICZBKgZ4gcgTIVW67CV7R t93oD99JdG4Ld4MU518LB0PFD7sv2uTaRKTKrIJzmiM2Ph+QEk0N2qInOxvzH7+xbe+M dgwt2sv/URdQg90Gc4bds9wStW4sibCjCR2ajwsCO0YpzcIQRAInXay+VD77J8gE5WpC I3Yw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:dkim-signature; bh=SlxiaBDtCsb8s+AHXZJQEIWXirTcDE9/aTxKrUnRaR4=; b=WA8StQPD8IM0E5V1/HGV+yINgSHhDAcdZRWQJE+AFF+crp7SWFum8bAQLSKOrbtCSI xArbSHQikDz6+2g5RY26gB6cHUEKIiMCcRZjzVJp2yH+ZO0pQ4m6q2S9Rt3McaeZ4ZcU g8tCMWjMFPTtHwvbuHoEXVarT8uXzFftt/Xg4Z2FKfGOIj24HefxqF22cuodtjRMTNmP vUkSIiEr5zLJFJ5E3Wn1B9qca2FoTHbu7XLJiBIY0TVlQ+vDDg0eeXkjkOD9ULDqmFgN FIgDhrn5td2VM5xlZRoTOqnHw3PYilyNVFukESydz8dczL505z/9+KKL9am9iZ3oCVWi HUVA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=Op7t8mr2; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id c21si4031743pfd.55.2019.03.03.18.26.38; Sun, 03 Mar 2019 18:26:53 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=Op7t8mr2; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1725998AbfCDC0S (ORCPT + 99 others); Sun, 3 Mar 2019 21:26:18 -0500 Received: from mail-it1-f194.google.com ([209.85.166.194]:36718 "EHLO mail-it1-f194.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725933AbfCDC0R (ORCPT ); Sun, 3 Mar 2019 21:26:17 -0500 Received: by mail-it1-f194.google.com with SMTP id v83so5371014itf.1 for ; Sun, 03 Mar 2019 18:26:16 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=SlxiaBDtCsb8s+AHXZJQEIWXirTcDE9/aTxKrUnRaR4=; b=Op7t8mr2aPhyg/N82dMo16QAf7Y20RPLi6Hq+814LAkXcZjdT2AsuK0Mw0CjgVh3Wj 5ZWSuAZHeuhJJBejxAH6V/eOKlY49r0nl9OfJT8mwgIm8dIGUc9GBBchtwItQFWdjo3y cY2Yv8xlhbeWR0ikCbhehJBAc+lF+XCMTzvEssMeEsyQ1BCofcMBo4ZjaSyTXqlmMtWw ITC6/9zugY0B12B5DsD6H2X4FlOv49mvJGTqD74mnzVDJZVsDTkWqcY5Xmw0GIEhZo3Z ZNFXAQLFIkU2NWOzqAHwWhfkD97y1gRsmuB2ffb7EDFsCY4q9OiHTi+Mz8Fm90ZhiESH CnfA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=SlxiaBDtCsb8s+AHXZJQEIWXirTcDE9/aTxKrUnRaR4=; b=RI2z1kdpnBSawpvpqwCs8a1CVzUaDu+a1IlZYGdfqnQASg5ZTSQKSv9Uj/Dst/VVxs PGd5Tmk3ggofEVycMq47og6cRQFj6Op/naFml8NiSXYHzMhFOWjnQ8NHqr791nJS/8Oj Rp09PCq+z5b2hgCnASLTwn3zPkQp/U9cwvoh+iO6wJVkJeOtIn3aqWQdVPCTjEQIpVBZ Tjwjwb/zjEp5zlySr0aDmM9pS0g3pQ3FXPYIQuvOZM6FLV4ZoO5LGudDnkfQifNtE8H5 qHWwkvfeLsvPzEgpYgboIjCfzEaa4F/BZbDCCcYm8H7MERe8Ok6aN073cMiOTRwKtn3U bZMA== X-Gm-Message-State: APjAAAVCjCE8hiOKFoIU1iNXmmh9dG6h17X6eIl+ZhyLKtapBV3d4S0L T7RQfQli+ujjqj0ofHvpI/grcHT1w4+lZfKlWFU= X-Received: by 2002:a02:13ca:: with SMTP id 193mr9070150jaz.117.1551666376494; Sun, 03 Mar 2019 18:26:16 -0800 (PST) MIME-Version: 1.0 References: <1551501538-4092-1-git-send-email-laoar.shao@gmail.com> <201903030739.kcuGQINq%fengguang.wu@intel.com> In-Reply-To: <201903030739.kcuGQINq%fengguang.wu@intel.com> From: Yafang Shao Date: Mon, 4 Mar 2019 10:25:40 +0800 Message-ID: Subject: Re: [PATCH] mm: compaction: show gfp flag names in try_to_compact_pages tracepoint To: kbuild test robot Cc: kbuild-all@01.org, Vlastimil Babka , Michal Hocko , Souptick Joarder , Andrew Morton , Linux MM , LKML , shaoyafang@didiglobal.com Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Sun, Mar 3, 2019 at 7:04 AM kbuild test robot wrote: > > Hi Yafang, > > Thank you for the patch! Perhaps something to improve: > > [auto build test WARNING on tip/perf/core] > [also build test WARNING on v5.0-rc8 next-20190301] > [if your patch is applied to the wrong git tree, please drop us a note to help improve the system] > > url: https://github.com/0day-ci/linux/commits/Yafang-Shao/mm-compaction-show-gfp-flag-names-in-try_to_compact_pages-tracepoint/20190302-212241 > reproduce: > # apt-get install sparse > make ARCH=x86_64 allmodconfig > make C=1 CF='-fdiagnostic-prefix -D__CHECK_ENDIAN__' > > All warnings (new ones prefixed by >>): > > >> include/trace/events/compaction.h:171:1: sparse: warning: cast from restricted gfp_t > >> include/trace/events/compaction.h:171:1: sparse: warning: cast from restricted gfp_t > >> include/trace/events/compaction.h:171:1: sparse: warning: cast from restricted gfp_t > >> include/trace/events/compaction.h:171:1: sparse: warning: cast from restricted gfp_t > >> include/trace/events/compaction.h:171:1: sparse: warning: cast from restricted gfp_t > >> include/trace/events/compaction.h:171:1: sparse: warning: cast from restricted gfp_t > >> include/trace/events/compaction.h:171:1: sparse: warning: cast from restricted gfp_t > >> include/trace/events/compaction.h:171:1: sparse: warning: cast from restricted gfp_t > >> include/trace/events/compaction.h:171:1: sparse: warning: cast from restricted gfp_t > >> include/trace/events/compaction.h:171:1: sparse: warning: cast from restricted gfp_t > >> include/trace/events/compaction.h:171:1: sparse: warning: cast from restricted gfp_t > >> include/trace/events/compaction.h:171:1: sparse: warning: cast from restricted gfp_t > >> include/trace/events/compaction.h:171:1: sparse: warning: cast from restricted gfp_t > >> include/trace/events/compaction.h:171:1: sparse: warning: cast from restricted gfp_t > >> include/trace/events/compaction.h:171:1: sparse: warning: cast from restricted gfp_t > >> include/trace/events/compaction.h:171:1: sparse: warning: cast from restricted gfp_t > >> include/trace/events/compaction.h:171:1: sparse: warning: cast from restricted gfp_t > >> include/trace/events/compaction.h:171:1: sparse: warning: cast from restricted gfp_t > >> include/trace/events/compaction.h:171:1: sparse: warning: cast from restricted gfp_t > >> include/trace/events/compaction.h:171:1: sparse: warning: cast from restricted gfp_t > > sparse warnings: (new ones prefixed by >>) > > include/trace/events/compaction.h:171:1: sparse: warning: cast from restricted gfp_t > include/trace/events/compaction.h:171:1: sparse: warning: cast from restricted gfp_t > include/trace/events/compaction.h:171:1: sparse: warning: cast from restricted gfp_t > include/trace/events/compaction.h:171:1: sparse: warning: cast from restricted gfp_t > include/trace/events/compaction.h:171:1: sparse: warning: cast from restricted gfp_t > include/trace/events/compaction.h:171:1: sparse: warning: cast from restricted gfp_t > include/trace/events/compaction.h:171:1: sparse: warning: cast from restricted gfp_t > include/trace/events/compaction.h:171:1: sparse: warning: cast from restricted gfp_t > include/trace/events/compaction.h:171:1: sparse: warning: cast from restricted gfp_t > include/trace/events/compaction.h:171:1: sparse: warning: cast from restricted gfp_t > include/trace/events/compaction.h:171:1: sparse: warning: cast from restricted gfp_t > include/trace/events/compaction.h:171:1: sparse: warning: cast from restricted gfp_t > include/trace/events/compaction.h:171:1: sparse: warning: cast from restricted gfp_t > include/trace/events/compaction.h:171:1: sparse: warning: cast from restricted gfp_t > include/trace/events/compaction.h:171:1: sparse: warning: cast from restricted gfp_t > include/trace/events/compaction.h:171:1: sparse: warning: cast from restricted gfp_t > include/trace/events/compaction.h:171:1: sparse: warning: cast from restricted gfp_t > include/trace/events/compaction.h:171:1: sparse: warning: cast from restricted gfp_t > include/trace/events/compaction.h:171:1: sparse: warning: cast from restricted gfp_t > include/trace/events/compaction.h:171:1: sparse: warning: cast from restricted gfp_t > include/trace/events/compaction.h:171:1: sparse: warning: cast from restricted gfp_t > include/trace/events/compaction.h:171:1: sparse: warning: cast from restricted gfp_t > include/trace/events/compaction.h:171:1: sparse: warning: cast from restricted gfp_t > include/trace/events/compaction.h:171:1: sparse: warning: cast from restricted gfp_t > include/trace/events/compaction.h:171:1: sparse: warning: cast from restricted gfp_t > include/trace/events/compaction.h:171:1: sparse: warning: cast from restricted gfp_t > include/trace/events/compaction.h:171:1: sparse: warning: cast from restricted gfp_t > include/trace/events/compaction.h:171:1: sparse: warning: cast from restricted gfp_t > include/trace/events/compaction.h:171:1: sparse: warning: cast from restricted gfp_t > include/trace/events/compaction.h:171:1: sparse: warning: cast from restricted gfp_t > include/trace/events/compaction.h:171:1: sparse: warning: cast from restricted gfp_t > include/trace/events/compaction.h:171:1: sparse: warning: cast from restricted gfp_t > include/trace/events/compaction.h:171:1: sparse: warning: cast from restricted gfp_t > include/trace/events/compaction.h:171:1: sparse: warning: cast from restricted gfp_t > include/trace/events/compaction.h:171:1: sparse: warning: cast from restricted gfp_t > include/trace/events/compaction.h:171:1: sparse: warning: incorrect type in argument 3 (different base types) > >> include/trace/events/compaction.h:171:1: sparse: expected unsigned long flags > >> include/trace/events/compaction.h:171:1: sparse: got restricted gfp_t [usertype] gfp_mask > include/trace/events/compaction.h:171:1: sparse: warning: cast to restricted gfp_t > include/trace/events/compaction.h:171:1: sparse: warning: cast to restricted gfp_t > include/trace/events/compaction.h:171:1: sparse: warning: restricted gfp_t degrades to integer > include/trace/events/compaction.h:171:1: sparse: warning: restricted gfp_t degrades to integer > include/linux/gfp.h:318:27: sparse: warning: restricted gfp_t degrades to integer > mm/compaction.c:1750:39: sparse: warning: incorrect type in initializer (different base types) > mm/compaction.c:1750:39: sparse: expected int may_perform_io > mm/compaction.c:1750:39: sparse: got restricted gfp_t > mm/compaction.c:351:13: sparse: warning: context imbalance in 'compact_trylock_irqsave' - wrong count at exit > include/linux/spinlock.h:384:9: sparse: warning: context imbalance in 'compact_unlock_should_abort' - unexpected unlock > mm/compaction.c:545:39: sparse: warning: context imbalance in 'isolate_freepages_block' - unexpected unlock > mm/compaction.c:943:53: sparse: warning: context imbalance in 'isolate_migratepages_block' - unexpected unlock > > vim +171 include/trace/events/compaction.h > > b7aba698 Mel Gorman 2011-01-13 170 > 837d026d Joonsoo Kim 2015-02-11 @171 TRACE_EVENT(mm_compaction_try_to_compact_pages, > 837d026d Joonsoo Kim 2015-02-11 172 > 837d026d Joonsoo Kim 2015-02-11 173 TP_PROTO( > 837d026d Joonsoo Kim 2015-02-11 174 int order, > 837d026d Joonsoo Kim 2015-02-11 175 gfp_t gfp_mask, > a5508cd8 Vlastimil Babka 2016-07-28 176 int prio), > 837d026d Joonsoo Kim 2015-02-11 177 > a5508cd8 Vlastimil Babka 2016-07-28 178 TP_ARGS(order, gfp_mask, prio), > 837d026d Joonsoo Kim 2015-02-11 179 > 837d026d Joonsoo Kim 2015-02-11 180 TP_STRUCT__entry( > 837d026d Joonsoo Kim 2015-02-11 181 __field(int, order) > 837d026d Joonsoo Kim 2015-02-11 182 __field(gfp_t, gfp_mask) > a5508cd8 Vlastimil Babka 2016-07-28 183 __field(int, prio) > 837d026d Joonsoo Kim 2015-02-11 184 ), > 837d026d Joonsoo Kim 2015-02-11 185 > 837d026d Joonsoo Kim 2015-02-11 186 TP_fast_assign( > 837d026d Joonsoo Kim 2015-02-11 187 __entry->order = order; > 837d026d Joonsoo Kim 2015-02-11 188 __entry->gfp_mask = gfp_mask; > a5508cd8 Vlastimil Babka 2016-07-28 189 __entry->prio = prio; > 837d026d Joonsoo Kim 2015-02-11 190 ), > 837d026d Joonsoo Kim 2015-02-11 191 > 91811e0d Yafang Shao 2019-03-02 192 TP_printk("order=%d gfp_mask=%s priority=%d", > 837d026d Joonsoo Kim 2015-02-11 193 __entry->order, > 91811e0d Yafang Shao 2019-03-02 194 show_gfp_flags(__entry->gfp_mask), > a5508cd8 Vlastimil Babka 2016-07-28 195 __entry->prio) > 837d026d Joonsoo Kim 2015-02-11 196 ); > 837d026d Joonsoo Kim 2015-02-11 197 > > :::::: The code at line 171 was first introduced by commit > :::::: 837d026d560c5ef26abeca0441713d82e4e82cad mm/compaction: more trace to understand when/why compaction start/finish > > :::::: TO: Joonsoo Kim > :::::: CC: Linus Torvalds > > --- > 0-DAY kernel test infrastructure Open Source Technology Center > https://lists.01.org/pipermail/kbuild-all Intel Corporation Seems this warning isn't introduced by my patch. My patch is fine. I will try to investigate how this warning is introduced. Thanks Yafang