Received: by 2002:a05:7412:7c14:b0:fa:6e18:a558 with SMTP id ii20csp402698rdb; Mon, 22 Jan 2024 07:43:43 -0800 (PST) X-Google-Smtp-Source: AGHT+IHJLEP9kptCRyfwIirF3kxYkxEr/V43RB4eCPFjbDldSWSuJrxlqsi0OIxgkN1/T2yg3bZX X-Received: by 2002:aa7:9806:0:b0:6d9:b75e:ddc3 with SMTP id e6-20020aa79806000000b006d9b75eddc3mr1626483pfl.33.1705938223334; Mon, 22 Jan 2024 07:43:43 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1705938223; cv=pass; d=google.com; s=arc-20160816; b=Q0KNBYNhPEKqd5WTyhMqBWFjvkKNewUDJT6S1l71VNyxLFPl4I/5C8Yz08kAAa64FX V3LVyGrHl+vwqOg3FCd0zHlQCh6rf8v00Yzs6vpXhz51l2nWvd9sWYvNttdijB1+B03M yubUE1189FN0Lq5+n00f+NO2aUQJZ2mCXhSw2c63+2iA5XKHTbbv+cCLixa9wzrRFitS 1J69bpc2XQVHR/Uv9HLJPlssuLH6i43frzm6oNJhfpLD/3sa4OXvtitZe1dTYyGP8POb e8wafBFK89oVWSn2KN932JmunDGDVFTrv56Izu9xzCOHPQ17kxPYjpy5Cce5+JcPfk04 BQNQ== 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=JwDrnTFg2miKGWS1t/pFgwriNSlRfKaU+W7UtZ7sZmM=; fh=nqaLAcYPkG7emINAR3MOhRXmc5nQMiJBiJ8uhVoESXo=; b=XSml0pFrro58yh4V1u5b/RHwA2m+Ix0y4lukNlCkOpy3GP4P2UDsJWPuA6dGoMVS9D 0kfhUibgvMfMug530o/UsxAFQ++LH+JStG4mt1FGPku5pgqbZS72ZoZlO7oQxIhgxu+m /9+ExQS4I9ETwZksXmyMqGw4zyY9vZjJSGhzB2XLLWa2rYG/x3RNPXRcNxmbYnhQ/lF7 jJqieh7Vc5y446JQWUq6k5jzawCiQ+S8NLR/q9egf/koA11BmwihAI2SB/GZgKHZEQXj 071N+V+lt6wcMUqLIm2BQ7dsVgLSXydxHFIJPCyxO1DHSEIOsixxuoBd1FnSWECSVL9a QQLg== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b="Oj/oztOT"; arc=pass (i=1 dkim=pass dkdomain=intel.com dmarc=pass fromdomain=linux.intel.com); spf=pass (google.com: domain of linux-kernel+bounces-33104-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-33104-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [139.178.88.99]) by mx.google.com with ESMTPS id m13-20020a633f0d000000b005cfbedffb54si4373058pga.128.2024.01.22.07.43.43 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 22 Jan 2024 07:43:43 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-33104-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) client-ip=139.178.88.99; Authentication-Results: mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b="Oj/oztOT"; arc=pass (i=1 dkim=pass dkdomain=intel.com dmarc=pass fromdomain=linux.intel.com); spf=pass (google.com: domain of linux-kernel+bounces-33104-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-33104-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.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 sv.mirrors.kernel.org (Postfix) with ESMTPS id A641428383D for ; Mon, 22 Jan 2024 13:42:04 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 791BC3D0AA; Mon, 22 Jan 2024 13:41:48 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=intel.com header.i=@intel.com header.b="Oj/oztOT" Received: from mgamail.intel.com (mgamail.intel.com [192.55.52.115]) (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 F094D3D386; Mon, 22 Jan 2024 13:41:45 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=192.55.52.115 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1705930907; cv=none; b=rkOssgSeW9jNxMYtWvm2FQj4vvugO2AMTciYhUu/tPkxPoI2w2soan9iuo4llhpjU0ZGQ+gwi0JuUPQto8og5epN5LiP4lr9C+r+SedVCr9UTchebYZ0fhAXSjaY2NF0MIlMu0vVwRs/wLVnMzm9fBDU6RnJIziVCJB5F0buDT8= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1705930907; c=relaxed/simple; bh=AsuLOZLavbor6sjRqmZR5gb66ksuaGhNQsXZjpeKpX4=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=IpbYi3qQ5YzzyRG/hqi0rUjuSXlSnj5Kq7VtnI2CAQz7XavTEtaY1wKw9E7BDgwGC6T2/S1OZbiWrX7lnGC3E8DbpQaw+7aVt/aJuoNF9wZatumaxM74Z3rxlx9AtKFXxjEf3fkJMiKFjKQ9ctbwEFOfB8dnellF17AEsI7QBQk= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linux.intel.com; spf=none smtp.mailfrom=linux.intel.com; dkim=pass (2048-bit key) header.d=intel.com header.i=@intel.com header.b=Oj/oztOT; arc=none smtp.client-ip=192.55.52.115 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linux.intel.com Authentication-Results: smtp.subspace.kernel.org; spf=none smtp.mailfrom=linux.intel.com DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1705930906; x=1737466906; h=date:from:to:cc:subject:message-id:references: mime-version:in-reply-to; bh=AsuLOZLavbor6sjRqmZR5gb66ksuaGhNQsXZjpeKpX4=; b=Oj/oztOTipz8e1QC/knPLDOWThC2qgwBTh4KqdGhMF/twDmrCLBWkdIN I4cwNu+yKVaMwlTjt1ewdXYqy2HGgT9mjvUq8c8hdutBUSEK4lOWMGZx1 lwly5Is81od6cNZSlzLswTaYq2aneDaN0OnqzimwbrekAhi5eotu3egNf VNf5V/WG7aEK6QpuZL4aVTPpX/PR/cBgIHel6A7hhi3/xb3FFUU1UgHYR jAcc/7JAVW5K2cNBe717WhdULcJ1mXK/8cKVLwhcgqU3vxNog3qKexijt oIUOswLk7ExKgIZ41fdHzobru8tGhF8Tb9avJAXZbxPM0E48vXczEwgbA Q==; X-IronPort-AV: E=McAfee;i="6600,9927,10960"; a="400856591" X-IronPort-AV: E=Sophos;i="6.05,211,1701158400"; d="scan'208";a="400856591" Received: from fmviesa002.fm.intel.com ([10.60.135.142]) by fmsmga103.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 22 Jan 2024 05:41:44 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="6.05,211,1701158400"; d="scan'208";a="19989404" Received: from tassilo.jf.intel.com (HELO tassilo) ([10.54.38.190]) by fmviesa002-auth.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 22 Jan 2024 05:41:44 -0800 Date: Mon, 22 Jan 2024 05:41:42 -0800 From: Andi Kleen To: Changbin Du Cc: 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: 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: <20240122104646.oqa7jnmd6ed2dzdw@M910t> > > >> > > > 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. -Andi