Received: by 2002:a05:7412:8d09:b0:fa:4c10:6cad with SMTP id bj9csp457187rdb; Tue, 16 Jan 2024 05:53:51 -0800 (PST) X-Google-Smtp-Source: AGHT+IHvpvQQcuP7hVqkaWh9jax9XKIN3dW0iiCKnOaaaVsOIJmH0QEQvGxOzDbhD7ktIoH804X1 X-Received: by 2002:ad4:4ee4:0:b0:681:9af:e69a with SMTP id dv4-20020ad44ee4000000b0068109afe69amr9464346qvb.72.1705413231560; Tue, 16 Jan 2024 05:53:51 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1705413231; cv=none; d=google.com; s=arc-20160816; b=IqaJVBcG73qu0IeqbercWmxMaI17R8/8+YZYkXN3MYTyufOzPqAMYovyFyu1qjVvI5 MnGfMvdGOqEz9SBgkRtha/wRs1FydSuK/4smLBQPHiqzaWHwa8zew0iw3SigHQseRc+y Mg4XaOJXdW8Cuwu28ZKk5Lq7Gczi0k4cy1lje7kkygwFTBpq9J3c2wqOROPYI4BtCVqZ cj1ZA2kkcuL/kQYDr0DBvb/o5MPMNp5Hn7CwXbelX4bx994yhqtr73AhM8bxAvuEYfNS i1RYvE6g1+toW6ZMk+CvOrb95m/sT16giG9N/vXAQCyC01KQIvT9x2pHZRbx63fYjDVF v7dw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=mime-version:list-unsubscribe:list-subscribe:list-id:precedence :user-agent:message-id:date:references:in-reply-to:subject:cc:to :from:dkim-signature; bh=jO9folGESd0ZEFAll3N4Qxi0Oa88Gb131sxpT3mbQns=; fh=ClzFBfZcQVoF/nlhMD+7ttziiNpUOOqAvCRidp92uPc=; b=iEqSmLcU6ZO5/WVeokSmPl67yFt3b9TLNk0vxUOVtx8PvSKz2aIYiUbMf/M8rrLJfx xPlkYW10s9dr6uHS4ASsZLTRRZM5+cP+RszCgkHwGCtIA72HCwCAG6Ulj5I/Zb5OD3if 28/5gJLVwORjnjweBzkq5zGKEOPfRx7MTXfCF4YSK+ABGNW2TIKQPLITd4hKGVXFbyM0 SwiV3ozQdnVbt8QKPGPMGDyDW5/py4BYEO5RVhBmx6nE6xMhDP9auPVso10wVmfv/iYB jdmaKR05AZTFM1rFu3GiqKurBy2iK+OrsWf9fwQhcPSPB6n9C6zKIOlnHSJZV318aBWu ouOA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=AgimQmPF; spf=pass (google.com: domain of linux-kernel+bounces-27436-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-27436-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [147.75.199.223]) by mx.google.com with ESMTPS id q11-20020a0ce20b000000b0068170693ac3si953022qvl.90.2024.01.16.05.53.51 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 16 Jan 2024 05:53:51 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-27436-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) client-ip=147.75.199.223; Authentication-Results: mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=AgimQmPF; spf=pass (google.com: domain of linux-kernel+bounces-27436-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-27436-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 ny.mirrors.kernel.org (Postfix) with ESMTPS id 52C071C233A7 for ; Tue, 16 Jan 2024 13:53:51 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id E1B681BDDD; Tue, 16 Jan 2024 13:53:44 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=intel.com header.i=@intel.com header.b="AgimQmPF" Received: from mgamail.intel.com (mgamail.intel.com [134.134.136.31]) (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 45C351BDC8; Tue, 16 Jan 2024 13:53:42 +0000 (UTC) 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=1705413222; x=1736949222; h=from:to:cc:subject:in-reply-to:references:date: message-id:mime-version; bh=jO9folGESd0ZEFAll3N4Qxi0Oa88Gb131sxpT3mbQns=; b=AgimQmPFIUZM8Ha6l5ixe5H+aCvwnQ8Ol2JTXBK0EXq9J+EQLaBqWxnC XtKALXPTxR/fBFzJV8Kg4IjR/0xL4Jn/WSJVaVxpVTVl/YhAtpMb9sIdL RZBYxHOG7cUf0WT+lg8oLlcnOrDk46m++qqfurK9PCrYmH9JZvrlfGCGN y5IXnY4dNeyq/1BRMyOx2AmDwG8egdoOkow+nCmog65eovXg/u/ICfdLE kv0MB2UhN+PPmPLEX4XMbv1iAwvN/iujP0KkW0DgrjW6KsX8FxWyzk2xv iFKRosD3sX5P+J1jsWDo+CRDxqK7iGQB4t7J8Dn0+kaQMAntKVzNoHx7g g==; X-IronPort-AV: E=McAfee;i="6600,9927,10954"; a="464154184" X-IronPort-AV: E=Sophos;i="6.05,199,1701158400"; d="scan'208";a="464154184" Received: from orsmga003.jf.intel.com ([10.7.209.27]) by orsmga104.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 16 Jan 2024 05:53:41 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6600,9927,10954"; a="733616603" X-IronPort-AV: E=Sophos;i="6.05,199,1701158400"; d="scan'208";a="733616603" Received: from tassilo.jf.intel.com (HELO tassilo.localdomain) ([10.54.38.190]) by orsmga003.jf.intel.com with ESMTP; 16 Jan 2024 05:53:41 -0800 Received: by tassilo.localdomain (Postfix, from userid 1000) id EE6AC301BD1; Tue, 16 Jan 2024 05:53:40 -0800 (PST) From: Andi Kleen To: Changbin Du Cc: Peter Zijlstra , Ingo Molnar , Arnaldo Carvalho de Melo , Mark Rutland , Alexander Shishkin , Jiri Olsa , Namhyung Kim , Ian Rogers , Adrian Hunter , , Subject: Re: [PATCH 0/3] perf: script: Intro capstone disasm engine to show instruction trace In-Reply-To: <20240116113437.1507537-1-changbin.du@huawei.com> (Changbin Du's message of "Tue, 16 Jan 2024 19:34:34 +0800") References: <20240116113437.1507537-1-changbin.du@huawei.com> Date: Tue, 16 Jan 2024 05:53:40 -0800 Message-ID: <87il3tl6zf.fsf@linux.intel.com> User-Agent: Gnus/5.13 (Gnus v5.13) Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain Changbin Du writes: > This series introduces capstone disassembler engine to print instructions of > Intel PT trace, which was printed via the XED tool. FWIW at least on x86 in my experience capstone isn't that great an disassembler. I used it in another project and ran into many decoding bugs. They're mostly in obscure corners, but can be fairly annoying. My other concern with your patchkit is that you change the default output formats. Since perf script is often used with scripts (as the name implies) there is a certain expectation that the output remains stable and parse-able. There are actually use cases where the raw bytes "insn" output is needed. I would rather define new perf script output types for the new decoded output, but keep the old alone. -Andi