Received: by 2002:ab2:6991:0:b0:1f7:f6c3:9cb1 with SMTP id v17csp197462lqo; Tue, 7 May 2024 17:42:17 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCV4kqv9A5I6alj6e6DEZZLQg5dnsyhhmHWodyi8UsdL12UyTfGiYFnkEtoVVQG5C6rOnGN+r1hYywAaQ3tzo2db/DSRgZ69GHQs1/nuIg== X-Google-Smtp-Source: AGHT+IEwWJTYRcbpvbpzMhPkzsAEPV3k2HhWCgexTVXC7ktmQijBTguykWF/23ySR7K8KYCtzFEg X-Received: by 2002:ac8:5f10:0:b0:43a:1d94:c573 with SMTP id d75a77b69052e-43dbe26da19mr22505581cf.22.1715128937428; Tue, 07 May 2024 17:42:17 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1715128937; cv=pass; d=google.com; s=arc-20160816; b=lLvlfPxzkQ9FerwythfYI5eFmG5Gq7KiBp7ZVtQhkzvNKLb75YA1M4klxco3EwS03P 21vYPHQtRjDAzT9LZshOvK0x+LZVhQuCkb0Egn2CLfQDb7P8gkvt1zLuFnpjqa6oW18I knsnKxSmX8VL2kja837NoGBCLXP3zryVyiyC38qJFSGj6WmyVzU/kwjS2q+8WdNs0MrV 8RaIKbWA7Y6cKM19yNlf502fGedboGBUpH4QKqVDIDHs16xR1PzlL5IxcUhv/c+ieLWc VMuzbiigCpnytVsrm0mLLDnRScEYdWfnbgUXSQhY0pkq4FGzEV44uWmpF3eEfAKN7wHg e96w== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=in-reply-to:content-disposition:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:message-id:subject:cc :to:from:date:dkim-signature; bh=f45MrcQj57Ok4PrdNl+Fd1/nPKEmXJj7p/kUolF9Gns=; fh=2FU4Zn8fuK8pUJKq3QZuAzCCv9Cze9ZF/1Uu085oqlI=; b=xItLnPtoOEzUBpKqhcfpmQf+aiIS+wpX75v/0/Izpk8ajgwo/+Uq+UzKMzwnMn7mxq vQ5caJyNFj9i05R3U1Cy3pp1DN+vXroW/4d2juoxNhiXgN37/iUABbRRVfpVXBoPWCwC ifPNgPvLggdVwoz/YSwzTJlufErDUrpNtMDx/y1M1N11UDnrxuoWT17XcCBHPR2TjnYm KM1TCl0cixDgYN1av2UOvW1AJ5p6GT37EKhw/99KYogPuogxgj0a82nnFoG5sp6ECHc7 2kbxypNtJ+4pS+urzY8AR3w7X7SBUlQuv+RuPbFT46f8/W0RkUmhsa0BpVYa/PqmA32N wgZw==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=Nw9IWcnN; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-172568-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-172568-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [2604:1380:45d1:ec00::1]) by mx.google.com with ESMTPS id k7-20020ac85fc7000000b0043ae5b17f68si12842888qta.410.2024.05.07.17.42.17 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 07 May 2024 17:42:17 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-172568-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) client-ip=2604:1380:45d1:ec00::1; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=Nw9IWcnN; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-172568-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-172568-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ny.mirrors.kernel.org (Postfix) with ESMTPS id 2ABC31C23100 for ; Wed, 8 May 2024 00:42:17 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 7B848653; Wed, 8 May 2024 00:42:11 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="Nw9IWcnN" Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id A1726622; Wed, 8 May 2024 00:42:10 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1715128930; cv=none; b=nsSQU6LfwwXhhh1wOQmH27ATjES8yXeDIFuL8tppzxBIsKIQE/kWWDlF1fMWxsrAxvjG8j92xSrmP+EvKTT3wNC9/f32WKoDpadHut6w8MvDNQNQi1t2Xs/28POMcisnxtdUEYlZCxizdaWSfB6Q8wcq1vKGpje+B3/HsBpJDKk= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1715128930; c=relaxed/simple; bh=cMPB8JByBguRKhjILcllAZIhhWQ03/cNqUNHlW3lq94=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=MIk0Xnnu7P0/VAnFd5QyBQqo1Zhq6byjpuYJLO+ZxY/8uf+gcHs7yhnot+Y3kji/i37spothmpZN1m9aE+ymDeY1fBKVoYJjHRpW3qsJUCaDAqd3YW/yPXSkaV8OZiK7D3hUJaWrWEN6mZ27DfcuaTSJ9v+WerAQzsIIDxYXl6w= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=Nw9IWcnN; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPSA id D6D8BC2BBFC; Wed, 8 May 2024 00:42:09 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1715128930; bh=cMPB8JByBguRKhjILcllAZIhhWQ03/cNqUNHlW3lq94=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=Nw9IWcnNlap8METO3z95eEE2YZAe7sPhbR9PipjrOv2OUJ+uKJv1boDUsbk9YKnSt ENJ4jjTak2SL69VS2CbgJ7dVXwm2XvUqvyfiLboUom6gSslclPXRpZrP/oSZ3qSxF/ AM2KwkFOnwuavhHjggcmF6tUujY1xlSUO1Mrn6vxXek0NiDperyr65PShErUEcdwTu LTqEoSBmChbboIJlzqoSuTFFTx0FOOmxieOO9d0ABsZUeZKb8sCbMOsudvX7W/cBmz oUScLyNldpkGbpQtRgCRRHSdWP+l8wQqkEqEv43Ao+H5fNSzLbKBB01v/+PIKIF25h hmyDmSNJOeMBA== Date: Tue, 7 May 2024 21:42:06 -0300 From: Arnaldo Carvalho de Melo To: Masami Hiramatsu Cc: Namhyung Kim , Ian Rogers , Kan Liang , Jiri Olsa , Adrian Hunter , Peter Zijlstra , Ingo Molnar , LKML , linux-perf-users@vger.kernel.org Subject: Re: [PATCH] perf dwarf-aux: Print array type name with "[]" Message-ID: References: <20240507041338.2081775-1-namhyung@kernel.org> <20240508085751.a1a5dbd31e1fa7d4e80cdd85@kernel.org> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20240508085751.a1a5dbd31e1fa7d4e80cdd85@kernel.org> On Wed, May 08, 2024 at 08:57:51AM +0900, Masami Hiramatsu wrote: > On Mon, 6 May 2024 21:13:38 -0700 > Namhyung Kim wrote: > > > It's confusing both pointers and arrays are printed as *. Let's print > > array types with [] so that we can identify them easily. Although it's > > interchangable, sometimes it can cause confusion with size like in the > > below example. > > > > Note that it is not the same with C syntax where it goes to the variable > > names, but we want to have it in the type names (like in Go language). > > > > Before: > > mov [20] 0x68(reg5) -> reg0 type='struct page**' size=0x80 (die:0x4e61d32) > > > > After: > > mov [20] 0x68(reg5) -> reg0 type='struct page*[]' size=0x80 (die:0x4e61d32) > > > > Good improvement! > > Acked-by: Masami Hiramatsu (Google) Indeed, Thanks, applied to perf-tools-next, - Arnaldo