From patchwork Mon Mar 20 18:35:16 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Adrian Hunter X-Patchwork-Id: 72387 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a5d:604a:0:0:0:0:0 with SMTP id j10csp1381019wrt; Mon, 20 Mar 2023 11:58:14 -0700 (PDT) X-Google-Smtp-Source: AK7set9r+PpKMi4RPNDq+RK2ueUCPs4zk7HcS78yhjn7/wTZRclfYUhIg7VIhNh6/Y/BDjH88ro3 X-Received: by 2002:a17:90b:1d88:b0:23f:962e:825d with SMTP id pf8-20020a17090b1d8800b0023f962e825dmr555138pjb.1.1679338693817; Mon, 20 Mar 2023 11:58:13 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1679338693; cv=none; d=google.com; s=arc-20160816; b=vjWcXhss0ILyuUVbaHR8pHXWIscEMKoG2DT4+KCasj3QQyuF1s+HAQydbdrFcOYI8X 8SfzYqopL/9A1+vOrIx9tJBRgMu5lPpn1t4nywHXQaKpNUGB48RZZI3wZjR3+tRtoJS/ pXsGFgfA3gp4UX44zfz4mwjfCoIypAd0GTCpdJAitQQMJsdOkMjCdTV7JabJgTUEp+hg t8Y9/2FI80jSZP6fkQxQyMlPKGoTKZ3qDcCedFS/VPuEkmRslSxIsjp/Wl9IYCB55PUp Ya3gyFu4ozX0jKeuSNRUeYldlJCkmoTUkk6bkIzx9zWV8b98rlYl3HOe8wiRx4pPC9yT 1Buw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:organization :mime-version:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=PmRy6/6OBsmTDAJzyHw3a1wZipV0yHgRFo3MVMWdYa4=; b=pQjiSzHl/oza2Ph9Y5tg2PpnphCFQrHPk2cNfWGdYAH2beJ0psMsm+IDODA6hWYyts VyQZmPLiF57R/9/Es4H8QChBdLRrQS+1+NNnIaZitOVduVXBrUNjEAzKEJydfYcf/w8j FUWZhAbvVh/mscwmkAOOPJ41AO6UVsQ8r/LnwWYLRqAnVYcbUpVhK2kGvar+DQpByjiY AHK5WyyyTSKJLh0m5NbnQxk+88vBfN2u9UDZpZBaTv1GhLPyDFJB8OJQJtgUZ/ochGqM wNSbyIZsLjeZ3ayC2QYbPk/EOEGQ6J7zDP5R5ZH99ewIHZaV0WwyxoqxlqnN9I4msTSv sFPg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=bX34Pd3g; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id cu6-20020a17090afa8600b00215dedefc32si10726550pjb.163.2023.03.20.11.58.01; Mon, 20 Mar 2023 11:58:13 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=bX34Pd3g; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231276AbjCTSqL (ORCPT + 99 others); Mon, 20 Mar 2023 14:46:11 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:53480 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229675AbjCTSpm (ORCPT ); Mon, 20 Mar 2023 14:45:42 -0400 Received: from mga18.intel.com (mga18.intel.com [134.134.136.126]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id DC59159FC; Mon, 20 Mar 2023 11:38:55 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1679337536; x=1710873536; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=UvYJIwBTHdBBZXZqPdQKayC0/G29FFNNPv4XihGRHPw=; b=bX34Pd3gWFh48zNcT2KCJOw4VbCJcw/d2jCbO0euWLMLF8X8QtiA58wj /aMhMpLNmacLQE63OxLAui6nUaXiliTHQ6XMAHTkA3rSg2q4X5dMUoPwC JVqeXXr+zDhiJOSMTIeCxg+HDzXKH+ty3ywR60A0a6OREeEQ5X2uaRJfT 63RRIHWfmAu9btiLTpFsS3fXa0Me4XdQ33mG6VW7m2TviI2ePd7Lui369 G3gvqBCCPYqmbtFNMeAvGV/5bEnFjcM0EJrLbwhnglLZps3Y2/6MxUqGb 5DPBvWKpGVItq2X6VC2Rb/wzt6ix1M11TBowm1CL3MlWGFgwpyDLRXupk g==; X-IronPort-AV: E=McAfee;i="6600,9927,10655"; a="322588307" X-IronPort-AV: E=Sophos;i="5.98,276,1673942400"; d="scan'208";a="322588307" Received: from fmsmga002.fm.intel.com ([10.253.24.26]) by orsmga106.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 20 Mar 2023 11:35:39 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6600,9927,10655"; a="791730818" X-IronPort-AV: E=Sophos;i="5.98,276,1673942400"; d="scan'208";a="791730818" Received: from spalihov-mobl2.ger.corp.intel.com (HELO ahunter-VirtualBox.home\044ger.corp.intel.com) ([10.252.34.182]) by fmsmga002-auth.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 20 Mar 2023 11:35:38 -0700 From: Adrian Hunter To: Arnaldo Carvalho de Melo Cc: Jiri Olsa , Namhyung Kim , Ian Rogers , linux-kernel@vger.kernel.org, linux-perf-users@vger.kernel.org Subject: [PATCH 1/2] perf intel-pt: Add event type names UINTR and UIRET Date: Mon, 20 Mar 2023 20:35:16 +0200 Message-Id: <20230320183517.15099-2-adrian.hunter@intel.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20230320183517.15099-1-adrian.hunter@intel.com> References: <20230320183517.15099-1-adrian.hunter@intel.com> MIME-Version: 1.0 Organization: Intel Finland Oy, Registered Address: PL 281, 00181 Helsinki, Business Identity Code: 0357606 - 4, Domiciled in Helsinki X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,SPF_HELO_NONE, SPF_NONE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1760914250083204587?= X-GMAIL-MSGID: =?utf-8?q?1760914250083204587?= UINTR and UIRET are listed in table 32-50 "CFE Packet Type and Vector Fields Details" in the Intel Processor Trace chapter of The Intel SDM Volume 3 version 078. The codes are for "User interrupt delivered" and "Exiting from user interrupt routine" respectively. Signed-off-by: Adrian Hunter --- tools/perf/builtin-script.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/perf/builtin-script.c b/tools/perf/builtin-script.c index 976f8bfe099c..c9296d8b33c0 100644 --- a/tools/perf/builtin-script.c +++ b/tools/perf/builtin-script.c @@ -1906,7 +1906,7 @@ static int perf_sample__fprintf_synth_evt(struct perf_sample *sample, FILE *fp) struct perf_synth_intel_evt *data = perf_sample__synth_ptr(sample); const char *cfe[32] = {NULL, "INTR", "IRET", "SMI", "RSM", "SIPI", "INIT", "VMENTRY", "VMEXIT", "VMEXIT_INTR", - "SHUTDOWN"}; + "SHUTDOWN", NULL, "UINTR", "UIRET"}; const char *evd[64] = {"PFA", "VMXQ", "VMXR"}; const char *s; int len, i;