Received: by 2002:ab2:1149:0:b0:1f3:1f8c:d0c6 with SMTP id z9csp114102lqz; Fri, 29 Mar 2024 10:10:07 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCX6D3APPY39WeBVO5nqGu8SAvMET23HNWBmErMJ0ZrHIEi/3eYNXXhLq6dBGQTOzDWcthyheh/cCazR7yFTcF+WahlzkcHYAU54o6oOkA== X-Google-Smtp-Source: AGHT+IEa/spGWmd8OHVc7lYGXR0V9SF9iZrTFxs2dXKPnVsZDkRoz2te8JFDGUsilKDjtNsjc6wF X-Received: by 2002:a50:99d8:0:b0:568:d7fe:a768 with SMTP id n24-20020a5099d8000000b00568d7fea768mr2286316edb.25.1711732207341; Fri, 29 Mar 2024 10:10:07 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1711732207; cv=pass; d=google.com; s=arc-20160816; b=YIA/G4tBqJtLfG/f3RgE/eF39WzQy+F+1TUYBi8Sg0H5w4aWx5orktxSKn2fwHfqLF F3YpXCq4zC/IxltCOPTvALE6OjE3bm7ZoEVCZlzCquDLp96agTnVQtRJ9p6nzOvT+ixV emVNoMdwimKAdClz0208uAgQMPYR/6P8Xtcw5TWKMdbi/6u7/WJ4igLbVU5cyEUfgL2J R60a3qIxVopPb8lx/mqqKFwoP8eWQCqy02qpoElmBC7XaM/b333FFicpKmxL9MwiZvxg 2a9lBOg8WaCbRd5p2P9C6YMMAPG1hqBK3E8crl0XcHhs/1b0FSSvvcj9G3fPKk98Jooe 81Og== 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=sUZrgGOv0AhJkhP2/WdalLawWH46Yg0STwI739dI7bo=; fh=FwxNRjO0qd8chps7vil42xpr0EiecGhmgRUEHXqO5oo=; b=ZAHb1PUUWRi2KflXm/f7joOHkCXhmC/MMv27O15r04hN9+JYNS++IxjYr20l8qdUMl uuVTHd8U5rpqsD9SdINj4iM+xiQdYVG4auhqyENwqmizmt7PQwEy2DGv53NnlmKoVSfr jp7VElrjYXbiWnp13cjxNn4RMrqONox0bBNiXdirAGAu0PiKoKtHa25+Aq052rfVMmfa V896M3zp32NdzmIbEN6akolCLgwEG2xTjyYc2XtpZH5AKBzncOKx2OV+/Q69tiwJQU54 sjLx6GzQX1vVLfvXYenqgUtpYjmNDKP0B3Qi0uWYZ4AxgaoNflelpOwrZXUlTq/Sb0yo ReuA==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b="WK6hGq/s"; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-125222-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-125222-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [2604:1380:4601:e00::3]) by mx.google.com with ESMTPS id t28-20020a508d5c000000b0056bc1504a23si1966439edt.258.2024.03.29.10.10.07 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 29 Mar 2024 10:10:07 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-125222-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) client-ip=2604:1380:4601:e00::3; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b="WK6hGq/s"; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-125222-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-125222-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 am.mirrors.kernel.org (Postfix) with ESMTPS id 089321F2620B for ; Fri, 29 Mar 2024 17:10:07 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id C479B130AD4; Fri, 29 Mar 2024 17:10:00 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="WK6hGq/s" 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 E7B5128DC0; Fri, 29 Mar 2024 17:09:59 +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=1711732200; cv=none; b=iJo/adnj5GmolOGQazkI02Dg3TSTKB1hhoo0d4XbQAISEK/B1T48u/w8uTd+dbkH2Qx/XC5X1JN5k0+WirPJlcDXWbKL4ktUzn2CALsPVe1hNqfqfyGweh/Nx9X9gG6gnunrQiI3IgQLN5fVNLjPPdsph5aCPVzFmOOKbI9D4+c= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1711732200; c=relaxed/simple; bh=BuGWdecQ/Njyxbft7vhGROS6EDgjjEQxrXuJekhPQqE=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=qOu8BD5Q/WeFuGMGc3CIIZly3wGtDWIpsOdeU0ruzNnko1I/dVFVI5kLsfPAZ80lHdSex968nLqmcINz8wvKhY4DZ2JBHQYo6GdTycy008SBqrIz7FCCu79NC3ArDgd0HgO6ZiPP3fWbng4RqzTqqqAPT2RFoY0h5R4wo+uzOco= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=WK6hGq/s; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPSA id 87676C433C7; Fri, 29 Mar 2024 17:09:49 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1711732199; bh=BuGWdecQ/Njyxbft7vhGROS6EDgjjEQxrXuJekhPQqE=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=WK6hGq/sZacTM+03ujyZrburl+1ffpCWgurNYh75zLx9uMxC/Cvn2lc8GbCMx+xP3 93tNlP5PD9R3QyqFXL6XL0OROgWca3kMM/oU1Qpr6Bcn5W6Iq9rxrGS+vFj9tYNGP7 RqFQxz8OcbTMsHOi6nXr6DWT6qv6w3l9J+qemBjIZ6N6lIEV+zNklZroCi0mgJzBYa TIrUNS8bXRRCmpFyUm5PsZU60t0pDGC+fHOBIfiQV8V/oqGPNBgwUVj9dCFRTLLQeM otHQhsn5WRzZVY/CER04RpIdTptM+rTC/qUe/Omw3YSrvDMMhKEGXb9hMoK68XOkDr bC+qZUtHQznFA== Date: Fri, 29 Mar 2024 14:09:41 -0300 From: Arnaldo Carvalho de Melo To: Namhyung Kim Cc: Ian Rogers , Kan Liang , Jiri Olsa , Adrian Hunter , Peter Zijlstra , Ingo Molnar , LKML , linux-perf-users@vger.kernel.org, Changbin Du Subject: Re: [PATCH 0/4] perf annotate: Use libcapstone as a disasssembler Message-ID: References: <20240328232009.466018-1-namhyung@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: <20240328232009.466018-1-namhyung@kernel.org> On Thu, Mar 28, 2024 at 04:20:05PM -0700, Namhyung Kim wrote: > Hello, > > As we've added libcapstone support, it's natural to use it for perf annotate > as well. This change added the capstone support on x86 first. Other archs > can be added later (by someone who can verify it doesn't break things). > > For now it tries to use capstone (if available) before objdump. But it > doesn't support source file and line number info. So users should use the > objdump (by passing --objdump=PATH option) if they need them. For example, > this command line will keep the existing behavior (i.e. using objdump). > > # not to use capstone for disassembly > $ perf annotate --objdump=objdump > > The capstone uses LLVM objdump style output which is slightly different than > the GNU objdump. But it should not have differences besides that. I've > verified the result of data type profiling and it produced the same output > but gave me ~3x speedups. Excellent news, I'll try and test all this soon! - Arnaldo