Received: by 2002:a25:b323:0:0:0:0:0 with SMTP id l35csp2689228ybj; Mon, 23 Sep 2019 07:52:20 -0700 (PDT) X-Google-Smtp-Source: APXvYqw5uzsqwT87DibXjBjjL2xzN2RuQwh6N2nVHEcjLCfP39Sf+m7SI+/QcXNF2othKnN2+73b X-Received: by 2002:a50:9b0c:: with SMTP id o12mr408927edi.303.1569250340771; Mon, 23 Sep 2019 07:52:20 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1569250340; cv=none; d=google.com; s=arc-20160816; b=WzGpbKA9q4hyfoBMQ1PguNnt4Qf6PMfKFQLHbfe3ttNOf+QQGKc71Hx5V3BsfJn71D Pi1Rg6Biw+L/VwESNC8y1syIqUZUXOJhLcyf47bCVHSAmTA6xZD0yGLIzwYxpw9l4uez Tu9C3nfLZ2CyNBWx6rOfBOjOuK8OlK9RK7AmNUBSrQ/yLcM436oWhBdA08dk9m/fHtTr 7FPlpTbUrtfNekld5RDNIzHAZ+idDQFCB52XQQJCmjXrE+AeqK4+nibF3otVUHlKXPrD 0TslcR6PuYf+GK9Qxh/2RKMybKnMdZrHvqqZljM4Ay1Chn+v3SvnNO0akbHbE2IXQcf9 GVHw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:user-agent:references :message-id:in-reply-to:subject:cc:to:from:date; bh=LPFRaHQWK+Jt07HEyIcoZS3YzuAEVJK0ATWIxWgLYs4=; b=JiF+0rN/7PDPGqHuZgmB9zyvoQPMa/MA6lhGy10uIzCVaH16Lut1V+iIY2YDN+BdWf 4r613xfXA0PfFMGh4Jvf/+bwWxlXrw7hS1QFgDnGXtDNfp7qa/YA+MBaZhmd4cy5LEOe vqpwwjeYIZp5IlAJib8CBdjVutvoO5EAtyHuEF57wBA1RlkBOV/e92SKiATfJfQg/fF0 rZXGByPbciK8ZjKgJPzYWuIJhBMatkNfrK+KDLgi61ixsGIgvbKv7YF+lw2OCgH3lNo8 KD1GheNQ06x/psHSIJ7nhR12147qlrpcu92nzW3bnW30IqQCK+tT7QsVhD8VIfX8eJTg 0ZJg== ARC-Authentication-Results: i=1; mx.google.com; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id p14si6876879edc.227.2019.09.23.07.51.57; Mon, 23 Sep 2019 07:52:20 -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; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2407692AbfIURHC (ORCPT + 99 others); Sat, 21 Sep 2019 13:07:02 -0400 Received: from gentwo.org ([3.19.106.255]:54060 "EHLO gentwo.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1731103AbfIURHC (ORCPT ); Sat, 21 Sep 2019 13:07:02 -0400 X-Greylist: delayed 371 seconds by postgrey-1.27 at vger.kernel.org; Sat, 21 Sep 2019 13:07:02 EDT Received: by gentwo.org (Postfix, from userid 1002) id 546873EEB4; Sat, 21 Sep 2019 17:00:51 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by gentwo.org (Postfix) with ESMTP id 5325B3E86F; Sat, 21 Sep 2019 17:00:51 +0000 (UTC) Date: Sat, 21 Sep 2019 17:00:51 +0000 (UTC) From: cl@linux.com X-X-Sender: cl@ip-172-31-20-140.us-east-2.compute.internal To: David Rientjes cc: Miles Chen , Pekka Enberg , Joonsoo Kim , Andrew Morton , linux-kernel@vger.kernel.org, linux-mm@kvack.org, linux-mediatek@lists.infradead.org, wsd_upstream@mediatek.com Subject: Re: [PATCH] mm: slub: print_hex_dump() with DUMP_PREFIX_OFFSET In-Reply-To: Message-ID: References: <20190920104849.32504-1-miles.chen@mediatek.com> User-Agent: Alpine 2.21 (DEB 202 2017-01-01) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Sat, 21 Sep 2019, David Rientjes wrote: > I agree it looks nicer for poisoning, I'm not sure that every caller of > print_section() is the same, however. For example trace() seems better > off as DUMP_PREFIX_ADDRESS since it already specifies the address of the > object being allocated or freed and offset here wouldn't really be useful, > no? The address is printed earlier before the object dump. Maybe that is sufficient and we could even reduce the number of digits further to have the display more compact? In this case two hex digits would do the trick.