From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 75359C433F5 for ; Tue, 17 May 2022 13:13:44 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S244710AbiEQNNm (ORCPT ); Tue, 17 May 2022 09:13:42 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:59676 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1347403AbiEQNNW (ORCPT ); Tue, 17 May 2022 09:13:22 -0400 Received: from mga02.intel.com (mga02.intel.com [134.134.136.20]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 777AA419A6 for ; Tue, 17 May 2022 06:13:21 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1652793201; x=1684329201; h=message-id:date:mime-version:subject:from:to:cc: references:in-reply-to:content-transfer-encoding; bh=aGHeyf0OgdG5HUBJgWMS4qMAAmT8DIlyW3zwg6qOhAk=; b=KtEOcCjLzmY1/yyK6kWJPpHHLqk/XMNyvLai17UZ0p6y4zdrGYbHZ5LT gTBDrICdmcCpZ24MhetWMjznfcRiO7/Qhvqx8Aj5azqqM+mat0hQp7zzq JFabEugk9Tijhk/0rkVS69i87zuzItHStGiIYR3CnFOU8FPzdDuXr5OzY lyBiXv2MBRn3k580ZnkdiQvrufvevUOb8ZXUCiqxj8b19DjIvpY1XnX8K rSD9S/VxoRytmUx2wD0Z337u+yoQBFmMZSk6msxSoBgobtWpq96yxehET 9JD+nYriBrhmShBGwsDe53tg53SPgJ87gsh5DVe/pJvVjeTJI5j7A/s2F A==; X-IronPort-AV: E=McAfee;i="6400,9594,10349"; a="258741238" X-IronPort-AV: E=Sophos;i="5.91,232,1647327600"; d="scan'208";a="258741238" Received: from orsmga008.jf.intel.com ([10.7.209.65]) by orsmga101.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 17 May 2022 06:13:21 -0700 X-IronPort-AV: E=Sophos;i="5.91,232,1647327600"; d="scan'208";a="597119167" Received: from ahunter6-mobl1.ger.corp.intel.com (HELO [10.0.2.15]) ([10.252.52.217]) by orsmga008-auth.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 17 May 2022 06:13:19 -0700 Message-ID: Date: Tue, 17 May 2022 16:13:14 +0300 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101 Firefox/91.0 Thunderbird/91.8.1 Subject: Re: [PATCH 0/3] perf intel-pt: Add support for emulated ptwrite Content-Language: en-US From: Adrian Hunter To: Arnaldo Carvalho de Melo Cc: Jiri Olsa , linux-kernel@vger.kernel.org, Andi Kleen References: <20220509152400.376613-1-adrian.hunter@intel.com> Organization: Intel Finland Oy, Registered Address: PL 281, 00181 Helsinki, Business Identity Code: 0357606 - 4, Domiciled in Helsinki In-Reply-To: <20220509152400.376613-1-adrian.hunter@intel.com> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 9/05/22 18:23, Adrian Hunter wrote: > Hi > > Here are 3 patches (on top of "perf intel-pt: Add link to the perf wiki's > Intel PT page") to add support for decoding emulated ptwrite i.e. for > hardware that does not have the ptwrite instruction. Is this OK? > > > Adrian Hunter (3): > perf intel-pt: Add support for emulated ptwrite > perf script: Print Intel ptwrite value as a string if it is ASCII > perf scripts python: intel-pt-events.py: Print ptwrite value as a string if it is ASCII > > tools/perf/Documentation/perf-intel-pt.txt | 88 +++++++++++++++++++ > tools/perf/builtin-script.c | 32 ++++++- > tools/perf/scripts/python/intel-pt-events.py | 8 +- > .../perf/util/intel-pt-decoder/intel-pt-decoder.c | 99 +++++++++++++++++++++- > .../perf/util/intel-pt-decoder/intel-pt-decoder.h | 1 + > .../util/intel-pt-decoder/intel-pt-insn-decoder.c | 1 + > .../util/intel-pt-decoder/intel-pt-insn-decoder.h | 1 + > tools/perf/util/intel-pt.c | 37 +++++++- > 8 files changed, 261 insertions(+), 6 deletions(-) > > > Regards > Adrian