Received: by 10.213.65.68 with SMTP id h4csp1320411imn; Mon, 19 Mar 2018 00:18:30 -0700 (PDT) X-Google-Smtp-Source: AG47ELv3BPj2tCKaUbAXg6JwbjDKMFQzmYXOmAyhYqaaQEc7it9wsld7yBu+uo7VOY6HOimqc+vk X-Received: by 10.98.161.10 with SMTP id b10mr9307430pff.240.1521443910066; Mon, 19 Mar 2018 00:18:30 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1521443910; cv=none; d=google.com; s=arc-20160816; b=0k5R37SfYvBYMjbqQSoVCzKAYEix9Hdj1Ki1i22oK5CmDb4cieLUfSijbIgOOmKk22 4yHvgIz1TUh1DD44pWPHamETvrQINGPF7a5oRXkUW++d2HH2hXeE0kUJOADqdme8WLHb wAdCEf8EUJX8JA/RAO7GKZpbqKHhLLaC+oj5m24vDTpVqvm+sDOWwJIhZOwpQYfubyvv QbC98Am72XPnXeJyQ3r5YY2L9EW5xrOwyukAYv1s5GRqEti0BLoNoAiDzxytYpP8Xy7h OsQmYk//zKF4SqkOipLBOFDEkjGXlTOM2rHtqyonIAl7ly8NfqOJ6//Dxe09venkANW4 YL7g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:content-transfer-encoding :dlp-reaction:dlp-version:dlp-product:content-language :accept-language:in-reply-to:references:message-id:date:thread-index :thread-topic:subject:cc:to:from:arc-authentication-results; bh=h9nbHfzn4LDs1JPAMGvvY6OBQKR6cIU1v+bNLQVOXDQ=; b=jTg9QOZMkiXCsnz5tcMLYL6p0QqE6ePg75wjSMt4tqkzoageUBjlStSRKwTLnWvEqY bNYND+53oSiKGMfo5q1DoDPsvvmpYDDp1mK0JmbJMbMI/bTLLU4Crv8NurN4zax1GIA0 vc59ygdmfnYp5RHG39b7AWUWrxfpEr+2fP1ha1dwGVbizHTKLYnXLMQ2oy8MQLJIa2H+ rxf845DflywVRPWH5AL1NKBLtG5zAz/dtYmEMaC9MO6oegjpP82F8TzttsXbhZYyHrZe R4/1mbW/Un7B+cTslCnX6p/FFHvDMoCIvq10j46PVaZBXxAlxhIWPGxtcEqW1bs/bYo7 HXng== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id 67-v6si11795790pla.612.2018.03.19.00.18.15; Mon, 19 Mar 2018 00:18:30 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S932360AbeCSHRR (ORCPT + 99 others); Mon, 19 Mar 2018 03:17:17 -0400 Received: from mga12.intel.com ([192.55.52.136]:34010 "EHLO mga12.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S932134AbeCSHRM (ORCPT ); Mon, 19 Mar 2018 03:17:12 -0400 X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from orsmga002.jf.intel.com ([10.7.209.21]) by fmsmga106.fm.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 19 Mar 2018 00:17:11 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.48,329,1517904000"; d="scan'208";a="43254018" Received: from fmsmsx103.amr.corp.intel.com ([10.18.124.201]) by orsmga002.jf.intel.com with ESMTP; 19 Mar 2018 00:17:11 -0700 Received: from fmsmsx153.amr.corp.intel.com (10.18.125.6) by FMSMSX103.amr.corp.intel.com (10.18.124.201) with Microsoft SMTP Server (TLS) id 14.3.319.2; Mon, 19 Mar 2018 00:17:11 -0700 Received: from shsmsx152.ccr.corp.intel.com (10.239.6.52) by FMSMSX153.amr.corp.intel.com (10.18.125.6) with Microsoft SMTP Server (TLS) id 14.3.319.2; Mon, 19 Mar 2018 00:17:10 -0700 Received: from shsmsx101.ccr.corp.intel.com ([169.254.1.166]) by SHSMSX152.ccr.corp.intel.com ([169.254.6.129]) with mapi id 14.03.0319.002; Mon, 19 Mar 2018 15:17:07 +0800 From: "Kang, Luwei" To: Paolo Bonzini , "kvm@vger.kernel.org" CC: "tglx@linutronix.de" , "mingo@redhat.com" , "hpa@zytor.com" , "x86@kernel.org" , "rkrcmar@redhat.com" , "linux-kernel@vger.kernel.org" , "joro@8bytes.org" Subject: RE: [PATCH v5 03/11] perf/x86/intel/pt: Introduce a new function to get the capability of Intel PT Thread-Topic: [PATCH v5 03/11] perf/x86/intel/pt: Introduce a new function to get the capability of Intel PT Thread-Index: AQHTtCVARCdsr0U3aEqOEtIdb43mBqPSqd+AgASQlpA= Date: Mon, 19 Mar 2018 07:17:07 +0000 Message-ID: <82D7661F83C1A047AF7DC287873BF1E167EFC0C8@SHSMSX101.ccr.corp.intel.com> References: <1520165241-15819-1-git-send-email-luwei.kang@intel.com> <1520165241-15819-4-git-send-email-luwei.kang@intel.com> <98515f5f-9c8a-8e1a-4fef-c9a8a0e9e8f5@redhat.com> In-Reply-To: <98515f5f-9c8a-8e1a-4fef-c9a8a0e9e8f5@redhat.com> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-ctpclassification: CTP_NT x-titus-metadata-40: eyJDYXRlZ29yeUxhYmVscyI6IiIsIk1ldGFkYXRhIjp7Im5zIjoiaHR0cDpcL1wvd3d3LnRpdHVzLmNvbVwvbnNcL0ludGVsMyIsImlkIjoiNzE1MTNkZTMtYjliNy00M2JjLWEwM2YtOGM5NjQyYWU0MzAwIiwicHJvcHMiOlt7Im4iOiJDVFBDbGFzc2lmaWNhdGlvbiIsInZhbHMiOlt7InZhbHVlIjoiQ1RQX05UIn1dfV19LCJTdWJqZWN0TGFiZWxzIjpbXSwiVE1DVmVyc2lvbiI6IjE3LjIuNS4xOCIsIlRydXN0ZWRMYWJlbEhhc2giOiJrZXNOWFhLT0NTSTBKcHZhVzR5TDllN3RJcUxMdlJcL05lMnV5bUtjeFhxSTNiTTAzSlhpbFhyQWZ5b3Boc1JsWiJ9 dlp-product: dlpe-windows dlp-version: 11.0.0.116 dlp-reaction: no-action x-originating-ip: [10.239.127.40] Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: base64 MIME-Version: 1.0 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org PiA+ICt1MzIgcHRfY2FwX2dldF9leCh1MzIgKmNhcHMsIGVudW0gcHRfY2FwYWJpbGl0aWVzIGNh cCkgew0KPiA+ICsJc3RydWN0IHB0X2NhcF9kZXNjICpjZCA9ICZwdF9jYXBzW2NhcF07DQo+ID4g Kwl1MzIgYyA9IGNhcHNbY2QtPmxlYWYgKiBQVF9DUFVJRF9SRUdTX05VTSArIGNkLT5yZWddOw0K PiA+ICsJdW5zaWduZWQgaW50IHNoaWZ0ID0gX19mZnMoY2QtPm1hc2spOw0KPiA+ICsNCj4gPiAr CXJldHVybiAoYyAmIGNkLT5tYXNrKSA+PiBzaGlmdDsNCj4gPiArfQ0KPiA+ICtFWFBPUlRfU1lN Qk9MX0dQTChwdF9jYXBfZ2V0X2V4KTsNCj4gPiArDQo+IA0KPiBZb3Ugc2hvdWxkIGNoYW5nZSBw dF9jYXBfZ2V0IHRvIHVzZSB0aGlzIGZ1bmN0aW9uLiAgQWxzbywgIl9leCIgaXMgbm90IGEgdmVy eSBjb21tb24gc3VmZml4LCBzbyBwZXJoYXBzIHlvdSBjYW4gY2FsbCBpdA0KPiBfX3B0X2NhcF9n ZXQuDQo+IA0KPiBJIGRvbid0IGhhdmUgYW55IG90aGVyIGNvbW1lbnRzIG9uIHBhdGNoZX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