Received: by 2002:a05:6a11:4021:0:0:0:0 with SMTP id ky33csp716437pxb; Wed, 22 Sep 2021 11:10:01 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwJOiKHslatgSkjl6Bs/BAute8mCuSLxheCL1GJ/qzQ89ancBlEu1fu/22BrQ07aEmeVF1M X-Received: by 2002:aa7:c5d2:: with SMTP id h18mr764927eds.218.1632334201030; Wed, 22 Sep 2021 11:10:01 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1632334201; cv=none; d=google.com; s=arc-20160816; b=OBKT4Jp5X8HJUxrLVUpW0Em0/gTG7YB6JKZBdF29aDUxW58rvpN90U/zQ1FMwGrqCY 2J8hT/uuveiBzXjDdwUH2VNP3eD2l5IDt4hYr4cy2OVIbO+FOA6dN7evzF0nB5+D807J 3XcT84auanUoTdZw4cllHuMaPU2B9CN1xzPi8gtRPsE4hSPmBxCStONuIKNXp+9WmGxr BZ2CqyKdbDa+6imFplSwHWsYmvvoBSo40vVZJtTvxE4TGOvryTmwex23xd3Y36To5mSr XrQiYHZGl898WxPC/eKno6UZ9h4ACesADv/LRrq7Cig320HUUOdoqF0WV9kF/G0mvq8A CgzA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:content-language :in-reply-to:mime-version:user-agent:date:message-id:from:references :cc:to:subject; bh=I5sYw+bSyHIGaSpNI3tdpwWRWpZhz0nrSXfvUCbXn7I=; b=cbVVt0nJEnuxi+fDnV6Ck4o6/roPWybSSpBZMdjeVHzhu2X+6GTR+9kjCzwPJ2/Qwf 6MZQva8OwvcSSDqt1UdqOzkBR9jH5RAoOR7SENr7kjC24N/bxi84KHRUQMvEsd5HBjcL caQkPSrrPjDV4RKPv46Ddyw34+HyFV9YJuhFwALpM3T+oxi1ysDw39wUdu+fKcDTA3Wn Tr6QAjE9yKOPHytZB9/BX6iPdvk+dC+w2VW0uTN96iejhxtcbiUI6935Dyl+FAOO4D7M nlLlrsj9KjfSOxXEaUkTWOJr+lsbsd/lEJR7Sb6wQpcRgIGM0rB8tf4qhWNHtePfbn8t +F2w== ARC-Authentication-Results: i=1; mx.google.com; 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 v14si3593813edb.187.2021.09.22.11.09.37; Wed, 22 Sep 2021 11:10:01 -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; 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 S236988AbhIVSHS (ORCPT + 99 others); Wed, 22 Sep 2021 14:07:18 -0400 Received: from mail-pl1-f181.google.com ([209.85.214.181]:33650 "EHLO mail-pl1-f181.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S236837AbhIVSHP (ORCPT ); Wed, 22 Sep 2021 14:07:15 -0400 Received: by mail-pl1-f181.google.com with SMTP id t4so2363865plo.0; Wed, 22 Sep 2021 11:05:45 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:subject:to:cc:references:from:message-id:date :user-agent:mime-version:in-reply-to:content-language :content-transfer-encoding; bh=I5sYw+bSyHIGaSpNI3tdpwWRWpZhz0nrSXfvUCbXn7I=; b=ssXy9U40+F9IfrC6fpp5u1P/cJQsmr5M1RK/MO2W7t3ebmS/1ryhi5MjDc9eCs341O Kp03CXrFKcNv6kEiu/lzv68+ztkdkgKCBPBTDlOzovKwUwK99Wng3nZvGV9fw8UHdVHF 7nP+BDPhRPCEkdVJMVd3KVUfcq9KlA1WuY58eJDZuCK80AaxMBWLyOwJCKNyceFNYk+P Zf6qWdZrpEoc8imdbrqfY6xan346HnwRVZm/3uQgY23UXLO7I7eek4Xd4beS+rMseKdg Dq5CGrgICGYp0rbojUxy1rm6VS1eHAABSFWS6LvKCqFRjJkpgRFBJREr7fZsJ9SNT54c CG3A== X-Gm-Message-State: AOAM530oWMY3BXbQXSMGixYY8YXNnp0mziDOtJlqLG2G6txPApH9pDxD Asj9wypxlacnWr/lzQuejtZaUGxk3C0= X-Received: by 2002:a17:902:ab16:b0:13a:356c:6a03 with SMTP id ik22-20020a170902ab1600b0013a356c6a03mr167270plb.38.1632333944401; Wed, 22 Sep 2021 11:05:44 -0700 (PDT) Received: from bvanassche-linux.mtv.corp.google.com ([2620:15c:211:201:f3b9:da7d:f0c0:c71c]) by smtp.gmail.com with ESMTPSA id c9sm3050706pfi.212.2021.09.22.11.05.43 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Wed, 22 Sep 2021 11:05:43 -0700 (PDT) Subject: Re: [PATCH] infiniband hfi1: fix misuse of %x in ipoib_tx.c To: "Marciniszyn, Mike" , Guo Zhi , "Dalessandro, Dennis" , "dledford@redhat.com" Cc: "linux-rdma@vger.kernel.org" , "linux-kernel@vger.kernel.org" References: <20210922134857.619602-1-qtxuning1999@sjtu.edu.cn> From: Bart Van Assche Message-ID: <276b9343-c23d-ac15-bb73-d7b42e7e7f0f@acm.org> Date: Wed, 22 Sep 2021 11:05:42 -0700 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Thunderbird/78.13.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 9/22/21 10:51 AM, Marciniszyn, Mike wrote: >> Subject: [PATCH] infiniband hfi1: fix misuse of %x in ipoib_tx.c >> >> Pointers should be printed with %p or %px rather than cast to (unsigned long >> long) and printed with %llx. >> Change %llx to %p to print the pointer. >> >> Signed-off-by: Guo Zhi > > The unsigned long long was originally used to insure the entire accurate pointer as emitted. > > This is to ensure the pointers in prints and event traces match values in stacks and register dumps. > > I think the %p will obfuscate the pointer so %px is correct for our use case. How about applying Guo's patch and adding a configuration option to the kernel for disabling pointer hashing for %p and related format specifiers? Pointer hashing is useful on production systems but not on development systems. Thanks, Bart.