Received: by 2002:a25:6193:0:0:0:0:0 with SMTP id v141csp2073879ybb; Sun, 29 Mar 2020 21:50:31 -0700 (PDT) X-Google-Smtp-Source: ADFU+vsaSGVwqNQ/031QL7s53viGrt9WO6TrZGwsd3EnvsvhxuvPfWf9ZVXGceriticOXmhtmYmj X-Received: by 2002:a05:6808:aaa:: with SMTP id r10mr6074371oij.111.1585543831624; Sun, 29 Mar 2020 21:50:31 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1585543831; cv=none; d=google.com; s=arc-20160816; b=OoaBZ3VrKjoalV5kMTotYbf3M4HGnkD+NLV03CCoPE8wmlXtKbL6ZEsqLUEPUpFQVE +3yXAGE7bldeEFkAuiTqqEqc9oJ8+X7GBr+fO5L3arfmf/d9jmxElpibx9S9d2I01DWy gaHweKYNVXUWTBRccF3t41aYcugiAPW3GyBmvqOqLLVc8V2ivSGBe+25jEYIhndY3wkn o49KE+9b7MUkYf41o2wxf+hGy7eQwiaF3le8K1QKj9SdgDuMvRbUpUTL+5yzJJyQuKLN +q5uJrZCiSKxk8smK09P1h1/rWma4KHZWJ5F6fGSU5uUIhRmYu9rsfmbdVm63qHjoXbV q+5w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:references:dlp-filter:cms-type :content-transfer-encoding:in-reply-to:mime-version:user-agent:date :message-id:from:cc:to:subject:dkim-signature:dkim-filter; bh=vJOuZeYH06qw3bVAy5RWOC35Uift6SXVkIKk7ObD1VE=; b=OgUbJG2CMC6r8O/j3HuBd95oPn3uYqwic6WQSKz3PCxa5VK136k4FPjGivM4VzCgYL +Cw0z8CF4LuK3vCtgp261iUH2yWgPgPoIDOAaf+dQKwDCGMbDFvT0JfEeKevzl5uIuxR 4bVJTDH7hb6QFJLb1g8FDYkJFMwkpr13LNuWkvG0Et7IpUnUHpqnJBMh6N+blAHzTV6z CGEt/tYGmEkISmjF5edz+h4S7mwZx52l2Qt6pMVtL7wUaZ3vg4Aj+KJTxeZBk2eCwGYi SrxW6wTtQcpF30PpXcZ11OgkTqteTygokTE+QjfO0BWJuMZunTYz0Z2Wnn0063+NE5/3 t42Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@samsung.com header.s=mail20170921 header.b=TAnt3kv+; 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=NONE dis=NONE) header.from=samsung.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id f19si5565623oos.45.2020.03.29.21.50.18; Sun, 29 Mar 2020 21:50:31 -0700 (PDT) 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=@samsung.com header.s=mail20170921 header.b=TAnt3kv+; 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=NONE dis=NONE) header.from=samsung.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727892AbgC3EtS (ORCPT + 99 others); Mon, 30 Mar 2020 00:49:18 -0400 Received: from mailout3.samsung.com ([203.254.224.33]:21317 "EHLO mailout3.samsung.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726085AbgC3EtS (ORCPT ); Mon, 30 Mar 2020 00:49:18 -0400 Received: from epcas1p3.samsung.com (unknown [182.195.41.47]) by mailout3.samsung.com (KnoxPortal) with ESMTP id 20200330044915epoutp03ec16b02c92933a695e02236ff56b6534~A_6UXBm6I1801818018epoutp03f for ; Mon, 30 Mar 2020 04:49:15 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 mailout3.samsung.com 20200330044915epoutp03ec16b02c92933a695e02236ff56b6534~A_6UXBm6I1801818018epoutp03f DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=samsung.com; s=mail20170921; t=1585543755; bh=vJOuZeYH06qw3bVAy5RWOC35Uift6SXVkIKk7ObD1VE=; h=Subject:To:Cc:From:Date:In-Reply-To:References:From; b=TAnt3kv+CnmF3cfyzBk2J92EwDGsMeEZXVoJtpSSQqgR237S6OmTz9fFF8dW3rg6h UHeYNaGOSJPL/1tMchQ4BgNlQQ714fcGsexBy0hLX6lKLw5qsiu5v7lBqsnoUBYqdL zOcg+TwuxEIJGGcGSji8vUpKAmvN/zdrg/qLI4kg= Received: from epsnrtp4.localdomain (unknown [182.195.42.165]) by epcas1p2.samsung.com (KnoxPortal) with ESMTP id 20200330044914epcas1p2e5736a81d3d25b7fdb70cb5d7c8ccffa~A_6TrGLCJ3181731817epcas1p2z; Mon, 30 Mar 2020 04:49:14 +0000 (GMT) Received: from epsmges1p2.samsung.com (unknown [182.195.40.162]) by epsnrtp4.localdomain (Postfix) with ESMTP id 48rKk14cmTzMqYkV; Mon, 30 Mar 2020 04:49:13 +0000 (GMT) Received: from epcas1p2.samsung.com ( [182.195.41.46]) by epsmges1p2.samsung.com (Symantec Messaging Gateway) with SMTP id 74.3A.04140.84A718E5; Mon, 30 Mar 2020 13:49:12 +0900 (KST) Received: from epsmtrp1.samsung.com (unknown [182.195.40.13]) by epcas1p2.samsung.com (KnoxPortal) with ESMTPA id 20200330044906epcas1p22eb08191d957988dcdf1f2bb03e2d844~A_6L8gxT53183731837epcas1p2U; Mon, 30 Mar 2020 04:49:06 +0000 (GMT) Received: from epsmgms1p2new.samsung.com (unknown [182.195.42.42]) by epsmtrp1.samsung.com (KnoxPortal) with ESMTP id 20200330044906epsmtrp12862da23ad23c4b167410a6c6c8120e4~A_6L7wCEq2510125101epsmtrp1i; Mon, 30 Mar 2020 04:49:06 +0000 (GMT) X-AuditID: b6c32a36-fbbff7000000102c-74-5e817a48adc4 Received: from epsmtip1.samsung.com ( [182.195.34.30]) by epsmgms1p2new.samsung.com (Symantec Messaging Gateway) with SMTP id 4E.FF.04158.24A718E5; Mon, 30 Mar 2020 13:49:06 +0900 (KST) Received: from [10.253.104.82] (unknown [10.253.104.82]) by epsmtip1.samsung.com (KnoxPortal) with ESMTPA id 20200330044905epsmtip1fb351934c65f3d0d2603fcdacee55295~A_6LCg6gf0121501215epsmtip1j; Mon, 30 Mar 2020 04:49:05 +0000 (GMT) Subject: Re: [PATCH v3 2/2] mm: mmap: add trace point of vm_unmapped_area To: Matthew Wilcox Cc: walken@google.com, bp@suse.de, akpm@linux-foundation.org, srostedt@vmware.com, linux-mm@kvack.org, linux-kernel@vger.kernel.org, jaewon31.kim@gmail.com From: Jaewon Kim Message-ID: <5E817A40.2080202@samsung.com> Date: Mon, 30 Mar 2020 13:49:04 +0900 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:38.0) Gecko/20100101 Thunderbird/38.7.2 MIME-Version: 1.0 In-Reply-To: <20200329161410.GW22483@bombadil.infradead.org> Content-Transfer-Encoding: 8bit X-Brightmail-Tracker: H4sIAAAAAAAAA01Se2xLcRTOz21vb0e5q+GkhLoesbKuXbW76JBYuEJiIRGR2NysV9u4feht xbCkWDxqw+bZ2VhsCfPIaJltJmLzaiRCFs+FkCCGbUxmm3m1vRP77zvf7zvnO+f8DoEpz+Aq wu70ch4ny1N4gqS2OVmbwmzelq3bFZHTZTXncbp4fzK9NxxEdEtDGU6/Ov9HSt/+0Sahf5fk 0/29Zfh8gqkvfSljKkI+JnxGw4S6SmTMvWP9EiZ8fwvzLTSe6TjZjmcRq3mzjWMtnEfNOXNd FrvTmkEtWZGzIMdo0ulT9LPodErtZB1cBpW5NCtloZ2PdkWpN7K8L0plsYJApc41e1w+L6e2 uQRvBsW5Lbxbr3NrBdYh+JxWba7LMVuv06UZo8q1vK3z0B6J+458U9/pKqkftckCiCCAnAlP /kgCSE4oyToE+wryAighirsQPDr1ExeD7wgufTiBYqpYQtHpbZj4cB1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gYSZBeQlmrfO Zp7AKDgLSccshKpZSKoWMDKvYpRMLSjOTc8tNiwwykst1ytOzC0uzUvXS87P3cQIjg0trR2M J07EH2IU4GBU4uH9sL0hTog1say4MvcQowQHs5IIL5s/UIg3JbGyKrUoP76oNCe1+BCjNAeL kjivfP6xSCGB9MSS1OzU1ILUIpgsEwenVANjx4F5OkyXzh64n1ORaZPW3u76iH/TDtPIgvd/ o+61l2nn3t735ZUux/1NebUTYkPuOFR/rJeL5XtjfLBE1Ox/0JzFGhJJyhcr/6zxnJUX+189 Wj1w5aL02Mwbefot030Pnt7JpZ+lVCKaovzkf9D1r6WnTk4RLCs5Vzp3Rc50c6fPjZfaDyso sRRnJBpqMRcVJwIAS6N4wIkCAAA= X-CMS-MailID: 20200330044906epcas1p22eb08191d957988dcdf1f2bb03e2d844 X-Msg-Generator: CA Content-Type: text/plain; charset="utf-8" X-Sendblock-Type: SVC_REQ_APPROVE CMS-TYPE: 101P DLP-Filter: Pass X-CFilter-Loop: Reflected X-CMS-RootMailID: 20200320055839epcas1p189100549687530619d8a19919e8b5de0 References: <20200320055823.27089-1-jaewon31.kim@samsung.com> <20200320055823.27089-3-jaewon31.kim@samsung.com> <20200329161410.GW22483@bombadil.infradead.org> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 2020년 03월 30일 01:14, Matthew Wilcox wrote: > On Fri, Mar 20, 2020 at 02:58:23PM +0900, Jaewon Kim wrote: >> + TP_printk("addr=%lx err=%ld total_vm=0x%lx flags=0x%lx len=0x%lx lo=0x%lx hi=0x%lx mask=0x%lx ofs=0x%lx\n", >> + IS_ERR_VALUE(__entry->addr) ? 0 : __entry->addr, >> + IS_ERR_VALUE(__entry->addr) ? __entry->addr : 0, > I didn't see the IS_ERR_VALUE problem that Vlastimil mentioned get resolved? Sorry I missed the problem. And thank you for your comment and suggestion. I still do not understand why the unlikely incurs [FAILED TO PARSE] problem on trace-cmd. Then trace log should not use the unlikely? I may need to resubmit a new patch set with your suggestion. Thank you > > I might suggest ... > > +++ b/include/linux/err.h > @@ -19,7 +19,8 @@ > > #ifndef __ASSEMBLY__ > > -#define IS_ERR_VALUE(x) unlikely((unsigned long)(void *)(x) >= (unsigned long)-MAX_ERRNO) > +#define __IS_ERR_VALUE(x) ((unsigned long)(void *)(x) >= (unsigned long)-MAX_ERRNO) > +#define IS_ERR_VALUE(x) unlikely(__IS_ERR_VALUE(x)) > > static inline void * __must_check ERR_PTR(long error) > { > > and then you can use __IS_ERR_VALUE() which removes the unlikely() problem. > >