Received: by 2002:a05:7412:7c14:b0:fa:6e18:a558 with SMTP id ii20csp343950rdb; Mon, 22 Jan 2024 06:08:03 -0800 (PST) X-Google-Smtp-Source: AGHT+IGEWZkAyxMBSratEMdtgriIYFACM+InJW5Ll5KVbl7JkqQachDgStaoaz4VS9h8vidfcy2f X-Received: by 2002:a17:907:a788:b0:a2b:2503:88c3 with SMTP id vx8-20020a170907a78800b00a2b250388c3mr1528969ejc.134.1705932483171; Mon, 22 Jan 2024 06:08:03 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1705932483; cv=pass; d=google.com; s=arc-20160816; b=NY9NAkx3ml0qy31muHlPr0F4fvqWbwxvOj9IxBwmpCCL7M+hYq0Ba+UU3ykQKvUY+F hxW0i3YBgIYpYXYTlvXak5I1JWpyYVt7+c3ZAXvO45sQ+LAI8t0s9IGusAXIe7l9FVGK GKk1Wsrf7t+Arf1Jzc1/ZKfirlYmnaEUeFDwa+kBTrbfBsckWWR4epQEQsZQp+1Cf/4M HXkFSvb5eYj8dN/cpwlSkndEsSvDCkmDqH5Gp2T7UFM6eXFKAVA8G+pA4LzKHTd6RIpI 7G0CK4100tE/8L+ZaLoHBnLgrYw2/MfOHQ98R6tWYwgOGPrFa8Z0Bv5hyBgay2LBTA34 VObA== 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=6LiWlQV6quOOKCE6KvxcGJUO8hIT2RKaEXrOFhVC9AA=; fh=N0aoF45U+cZvowzkb/3kgOPLulgXvfHX9E2wnTv55Do=; b=g1O5Dqj5/KPXWUZ8EeodoJTE1TCdBA8w90D7Eykmbt4IvOWa7cjxBGqIN1+XmyaC9d Fej7GHo9Xk+J05xU9sF6uWPkpK15cPRcQ+V6RdrUZ3GGxzD5OAVaHBZYMoHSArWPSuvB U+kyHDl8png0Bq2sm9EeDaJ7Co6bg5tmughafF2MIQFK7H4mEEDFHOqn7qtsAa18BKtB Fb6hQ4gvgVO165EFJ3LMnEgCJdbUC97VdZpoKBFdEk5pVwxnYt8W7LDAuKeArtvv2+SO 0LRtsu+QU31H9b4m1WHXdCQcmTYi++Mzw5X6T29KbOBb0rG+2E0Ylzz/d/3jJ+HctXtQ GoYA== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=b0spzsIQ; arc=pass (i=1 spf=pass spfdomain=gmail.com dkim=pass dkdomain=gmail.com dmarc=pass fromdomain=gmail.com); spf=pass (google.com: domain of linux-kernel+bounces-33137-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-33137-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [147.75.80.249]) by mx.google.com with ESMTPS id hg3-20020a170906f34300b00a2ed09eb29csi5500724ejb.708.2024.01.22.06.08.03 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 22 Jan 2024 06:08:03 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-33137-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) client-ip=147.75.80.249; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=b0spzsIQ; arc=pass (i=1 spf=pass spfdomain=gmail.com dkim=pass dkdomain=gmail.com dmarc=pass fromdomain=gmail.com); spf=pass (google.com: domain of linux-kernel+bounces-33137-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-33137-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com 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 2EA8A1F268F1 for ; Mon, 22 Jan 2024 14:07:34 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id A006A3D0DA; Mon, 22 Jan 2024 14:05:38 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="b0spzsIQ" Received: from mail-pg1-f179.google.com (mail-pg1-f179.google.com [209.85.215.179]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 9DBAB3D0D8; Mon, 22 Jan 2024 14:05:36 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.215.179 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1705932337; cv=none; b=N/ZLeoRyz+n3um1csaUB18Omdjc5/uyEqN5tOauywHuP+IBlwIerf+d80nfdwc5J/PaDlB7yk1e+fFlWDHge6jCRurveaLjNxDlLSas7Z5G1URiFvbIWCA7gaiLVl4KMmu1V3YWMU95lmoYgcRm80vu5XW/pUQn8AUf04HkUFQk= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1705932337; c=relaxed/simple; bh=KaNcnxhfIYK75oE3sF3lp/jlWP1epffWoG1yh7Ao1VI=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=ZuwSpRzQDFj0XRk7nHZi3Q6RL2WqzyqCguYWQcx8NQNdL0oQ+6Ka+kqTUsQAmk5G6g7JOhmJJ5SzFU93vhOMsMxEuBX+cux8k/CMgwnjKw9Cfp/F4ztwqP4Y8emDCJ9BTXh/8ixMvz275QBTC5/mXyDWWUJ0WENpHhOW2r0jm5A= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com; spf=pass smtp.mailfrom=gmail.com; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b=b0spzsIQ; arc=none smtp.client-ip=209.85.215.179 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=gmail.com Received: by mail-pg1-f179.google.com with SMTP id 41be03b00d2f7-5bdbe2de25fso2350117a12.3; Mon, 22 Jan 2024 06:05:36 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1705932335; x=1706537135; darn=vger.kernel.org; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:from:to:cc:subject:date:message-id:reply-to; bh=6LiWlQV6quOOKCE6KvxcGJUO8hIT2RKaEXrOFhVC9AA=; b=b0spzsIQgnxDrwOIHrYM6PoQvd3IxbPzlqAIcYP2G0d3Av+4TXWjMtLg1Xvag8BrL+ 5QJ5W5+IAWR/ccopriKOYfYg5/HFY31crxnS8IMroqzXj3a0NOrXkryP+ZKc1S4kt23d G5EyUU0i9DfUX0QHElfPgTAi+7b0rF+ugV7Z5aTS9E6Jl2m7Qi2rWoew8EhcYpBc7MLn 71ijd68eWqQaEgAF+kgrHj3G+EfJJFdwj7yDX6/QA6eC0uPPJ9aLpFjST8dNNnfN7XWr a5rzY5unER9HRmriuTbxSstvh+CiELgKHI9T27C3kUMHz05mjWqpxkvTn99Qw4Jo6Z4J LKCA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1705932335; x=1706537135; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to; bh=6LiWlQV6quOOKCE6KvxcGJUO8hIT2RKaEXrOFhVC9AA=; b=WONvo1niVqN7YHxWCr3Na/fJxRPrlCfV4ulFoB1fRY3H8l0/YJzfkzArrzaZxNSILK GOcCQlLd/kxChyxLZZ/RD08wrAymk3T0LCJBSfD/3jcBcizBzRFsF2Obzp5OE1fnAcXR nlTXtt8g/Rr1VhUp8K5xrpiCovJ7MLGVsPieTyS3PdzR77OeibGjJq/LdRAIJsN9CScp j4WbHWtRH63ESmo+euVwJJqvr0UzNn1gizP9JylVfUl7bfMVlvgTEVwFSNu4I641J1kH uBy1U641xbtj1TIfCfexVpz0IMOBW3JcGEwlNTFsR5tZPN1XAI4ojk3MFhMhK6x+pnOU 0mgg== X-Gm-Message-State: AOJu0YxOMqYjCc9cgtS1w6ilcHb7tB+bx4BwIm+RhV6sZqgMT9WpKGGz XunLjx8HwOXXxePXXnSugPfXf985O0Q8BccJkTZwODdX+wwj5t8F X-Received: by 2002:a05:6a20:daa1:b0:19c:4bd4:520b with SMTP id iy33-20020a056a20daa100b0019c4bd4520bmr1228299pzb.44.1705932335510; Mon, 22 Jan 2024 06:05:35 -0800 (PST) Received: from mail.google.com ([38.181.79.249]) by smtp.gmail.com with ESMTPSA id e9-20020aa78249000000b006dae568baedsm9591196pfn.24.2024.01.22.06.05.30 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 22 Jan 2024 06:05:34 -0800 (PST) Date: Mon, 22 Jan 2024 22:05:27 +0800 From: Changbin Du To: Andi Kleen Cc: Changbin Du , Adrian Hunter , Mark Rutland , Alexander Shishkin , Jiri Olsa , Namhyung Kim , Ian Rogers , linux-kernel@vger.kernel.org, linux-perf-users@vger.kernel.org, Thomas Richter , changbin.du@gmail.com, Peter Zijlstra , Arnaldo Carvalho de Melo , Ingo Molnar Subject: Re: [PATCH v4 3/5] perf: script: add field 'disasm' to display mnemonic instructions Message-ID: <20240122140527.36j2jcd6abdbtlgm@mail.google.com> References: <20240119104856.3617986-1-changbin.du@huawei.com> <20240119104856.3617986-4-changbin.du@huawei.com> <20240120074009.zmywqj6irtedivqk@M910t> <20240122104646.oqa7jnmd6ed2dzdw@M910t> 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: On Mon, Jan 22, 2024 at 05:41:42AM -0800, Andi Kleen wrote: > > > >> > > > > Updated as: > > > > > > > > When doing instruction trace decoding, insn, disasm and insnlen give the > > > > instruction bytes, disassembled instructions and the instruction length > > > > of the current instruction respectively. > > > > > > I wondered about mentioning that disasm needs perf to be compiled with > > > disassembler support, but with a permissive license it seems likely > > > that libcapstone support would generally be built into perf, so that > > > should be fine. > > > > > Yes, libcapstone has a permissive license. It's available on most Linux distros. > > What I've seen in the past is that people who build perf from source > often miss installing all the build the dependencies because perf continues > without an error. Make sure that if that happens and someone uses the option > there is a clear message that points to the build process. > Currently, perf build will show libcapstone available status at the beginning of build and prompt user how to install it, as other dependencies do. > -Andi -- Cheers, Changbin Du