Received: by 2002:a05:6a10:a841:0:0:0:0 with SMTP id d1csp4141924pxy; Mon, 26 Apr 2021 19:55:43 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxt6BIFgDsxUcvRU3x+DSQO0ugU7JidMbsSmkgm+SYcCQXnDpecfN8bb6xJhe65lKnCuLze X-Received: by 2002:a05:6402:26ca:: with SMTP id x10mr1810386edd.386.1619492143230; Mon, 26 Apr 2021 19:55:43 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1619492143; cv=none; d=google.com; s=arc-20160816; b=I0NLt+8lxXxC6VY/NUaMJA4OzogzH2ogQSYeSHE0u1YCu0YcadBS+U+jxSHU49X7f0 CERhy4UfkjfWV/6LSC5yxkTaY9RCxM3yP+ssmrPTrNToK6Q7vDPnXzR/2ItK4Ahv23tW fP9Fx3cMX0x3QsImWMGZSBLSQu2WlvgW0BVhSGcetqFLLQlxgZ6b81O6386JvSVjhjXN ZQBEN9DUd3yGJXohYMbIj4O9GVbEg52k7h3R3aoMD+299y2lG0dFnyLKLG+rbUhw+7vj IQcqCf/siZ2sKDCYXy9kexzRLajnotniCHuwDAqgUOglQ7fVjoNEi7R23UdCOLaUSNBN C0zg== 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:dkim-signature; bh=TApLiyiy8kC1+MWlnitS8UqPbKuSkbZMje0719pdLtA=; b=O4pQtk5mClkLYbsOC1kf/FODPDWPSJb/iJRGGOt7l/lkk61cepgy+NQHNxp2blr6/z d04OG4FwlHyYpBbGY74eV+EEa2w1mdzSf913jPelTC7mmftG/NFiO7SoZt1zWShaiTaw 1yafTSBxU5owfdxDiw/sVC+kCxv+zQ2Q7bhP+gDabCy6GXhCdWfrIBPcukD7h4Um2X3A tJ+XiMknIJg71J+qP+zac5zfFha/8KxlythtygHSSzvcpBj7bjA7ywBuRX2S7s8hROJ2 Nyh6KOznUrAPDb1pEqszo8hZDMeXlUffInXzA7opOZnB+g8grHJZT2cpTFp0hVsV60rk Y+LQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@infradead.org header.s=casper.20170209 header.b=E0LeOVXa; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id du8si14640660ejc.547.2021.04.26.19.55.19; Mon, 26 Apr 2021 19:55:43 -0700 (PDT) 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=@infradead.org header.s=casper.20170209 header.b=E0LeOVXa; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232157AbhD0CzJ (ORCPT + 99 others); Mon, 26 Apr 2021 22:55:09 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:42548 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231363AbhD0CzJ (ORCPT ); Mon, 26 Apr 2021 22:55:09 -0400 Received: from casper.infradead.org (casper.infradead.org [IPv6:2001:8b0:10b:1236::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 4FCECC061574 for ; Mon, 26 Apr 2021 19:54:27 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=casper.20170209; h=In-Reply-To:Content-Type:MIME-Version: References:Message-ID:Subject:Cc:To:From:Date:Sender:Reply-To: Content-Transfer-Encoding:Content-ID:Content-Description; bh=TApLiyiy8kC1+MWlnitS8UqPbKuSkbZMje0719pdLtA=; b=E0LeOVXadZZ/HDH2GsNFaJk1fF AIt1lyfMthKQN72pT7eSDbX29uWxAv3iIaZ4VmgNDY4o+rbUO/KRl90WMOfLbir2Bm/TgZYAbVaOp MX/IOE1Tno821wFRjLLF//7giW1ObiUhzUflJQIySh1hJNGPvFoQTrwFiCqdR7+3fRNLfHmmGf/Lr cCIAZMjZGoNyRIOvYciFvWAOMqauSxk94fxYv4LZALHZoZCjWcrKyIp+wAZGq+MzuZ9xmXLzcgbFy TDWpYtH1mAB1vctD2ArcG4aQJaWLky92k6lmYAWyB/Vtd9XQFL/4oOu4r9///lu0XFNxDK8u3ScGY x2j5BEEw==; Received: from willy by casper.infradead.org with local (Exim 4.94 #2 (Red Hat Linux)) id 1lbDrK-006ODW-A1; Tue, 27 Apr 2021 02:54:00 +0000 Date: Tue, 27 Apr 2021 03:53:58 +0100 From: Matthew Wilcox To: Xiongwei Song Cc: cl@linux.com, penberg@kernel.org, rientjes@google.com, iamjoonsoo.kim@lge.com, akpm@linux-foundation.org, vbabka@suse.cz, linux-mm@kvack.org, linux-kernel@vger.kernel.org, Xiongwei Song Subject: Re: [PATCH] mm: append __GFP_COMP flag for trace_malloc Message-ID: <20210427025358.GV235567@casper.infradead.org> References: <1619491400-1904-1-git-send-email-sxwjean@me.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1619491400-1904-1-git-send-email-sxwjean@me.com> Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, Apr 27, 2021 at 10:43:20AM +0800, Xiongwei Song wrote: > From: Xiongwei Song > > When calling kmalloc_order, the flags should include __GFP_COMP here, > so that trace_malloc can trace the precise flags. I suppose that depends on your point of view. Should we report the flags used by the caller, or the flags that we used to allocate memory? And why does it matter?