Received: by 2002:ac0:aa62:0:0:0:0:0 with SMTP id w31-v6csp296535ima; Wed, 24 Oct 2018 01:08:31 -0700 (PDT) X-Google-Smtp-Source: AJdET5dHxag3aGJUY5huSPcf2lMZ5qqOFAwHkqO5xFNYfGXN8Foo+49RAdP9r16yqaK6FsHVWI2Y X-Received: by 2002:a65:4981:: with SMTP id r1-v6mr1574479pgs.153.1540368510977; Wed, 24 Oct 2018 01:08:30 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1540368510; cv=none; d=google.com; s=arc-20160816; b=n2a/lsNg1dwrrPCwTSq/6k/pOL8DYbo5i+6oeWaR7XN1HxTiSgjPYxlbhDWcsDUcF0 SSbURUwklwmS2AtYPJ2Fo347jv8WD3+pMQFqfmjE4bMRtkIUbdgBBzuNzvL8HY6A4LZZ jR8Uul3HU9hX0J6uixZYDs64LIEQpepyY6lxig53xSEht2nmLAVzrUKrREF1peyni15s yrjW1QOxdXBT7vKMqOtcjdXjQOpbxQ3XEQpmHTW9hhLFnXFN4hAnX/zm47i2GNnHQhYx l+xdliMplEKMJDT5eURVXlfA4krJ8Yye8zJhFk1k6sdsphACe0upY1urv5tFafvU++GC fTpQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:references:in-reply-to:message-id:date :subject:cc:to:from; bh=cH8qCQSWJweXvW1uS5VAZMJ/BNnklIpsRVUwxS895+U=; b=nDvPFxKbmoNOWYk8vIa0c26iC+3DBsMhNRGJ8sIJhYsI9xS1r+L7mWBrjclZjFzNxj qiM7X+dWYgP+X/jioSx6ghXE69T8PhC/Y1He/3VtKrsie/mCdmMwZ8Fklej0tg4KNuHQ 1bsGn9wBsVhU8Z4aI91rOZ1Ca4tLybzo8ucc1F6snR4YoS/Ec08pQpoosacZlyq0t/mf j/w2ECmYH1FVgr66rvws45M68tCa7uc+eNpqmODxEjiMQz7tQQXYgy1XL6XQwOwZKqqW lTzxuXmh2gum0YtFZfwwYnRSUpPJdHaa52h2mWCgx15UBwi82KP57cpVVqFst+r0Rz0f 2vGw== 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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=intel.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id x8-v6si4062620pge.545.2018.10.24.01.08.16; Wed, 24 Oct 2018 01:08: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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=intel.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727953AbeJXQee (ORCPT + 99 others); Wed, 24 Oct 2018 12:34:34 -0400 Received: from mga11.intel.com ([192.55.52.93]:61920 "EHLO mga11.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727823AbeJXQed (ORCPT ); Wed, 24 Oct 2018 12:34:33 -0400 X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from fmsmga005.fm.intel.com ([10.253.24.32]) by fmsmga102.fm.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 24 Oct 2018 01:07:30 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.54,419,1534834800"; d="scan'208";a="273987311" Received: from skx-d.bj.intel.com ([10.238.135.53]) by fmsmga005.fm.intel.com with ESMTP; 24 Oct 2018 01:07:26 -0700 From: Luwei Kang To: kvm@vger.kernel.org, x86@kernel.org Cc: tglx@linutronix.de, mingo@redhat.com, bp@alien8.de, hpa@zytor.com, pbonzini@redhat.com, rkrcmar@redhat.com, joro@8bytes.org, songliubraving@fb.com, peterz@infradead.org, alexander.shishkin@linux.intel.com, kstewart@linuxfoundation.org, gregkh@linuxfoundation.org, thomas.lendacky@amd.com, konrad.wilk@oracle.com, mattst88@gmail.com, Janakarajan.Natarajan@amd.com, dwmw@amazon.co.uk, jpoimboe@redhat.com, marcorr@google.com, ubizjak@gmail.com, sean.j.christopherson@intel.com, jmattson@google.com, linux-kernel@vger.kernel.org, Luwei Kang Subject: [PATCH v13 05/12] perf/x86/intel/pt: add new capability for Intel PT Date: Wed, 24 Oct 2018 16:05:09 +0800 Message-Id: <1540368316-12998-6-git-send-email-luwei.kang@intel.com> X-Mailer: git-send-email 1.8.3.1 In-Reply-To: <1540368316-12998-1-git-send-email-luwei.kang@intel.com> References: <1540368316-12998-1-git-send-email-luwei.kang@intel.com> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org This adds support for "output to Trace Transport subsystem" capability of Intel PT. It means that PT can output its trace to an MMIO address range rather than system memory buffer. Acked-by: Song Liu Signed-off-by: Luwei Kang --- arch/x86/events/intel/pt.c | 1 + arch/x86/include/asm/intel_pt.h | 1 + 2 files changed, 2 insertions(+) diff --git a/arch/x86/events/intel/pt.c b/arch/x86/events/intel/pt.c index 53e481a..9597ea6 100644 --- a/arch/x86/events/intel/pt.c +++ b/arch/x86/events/intel/pt.c @@ -68,6 +68,7 @@ PT_CAP(topa_output, 0, CPUID_ECX, BIT(0)), PT_CAP(topa_multiple_entries, 0, CPUID_ECX, BIT(1)), PT_CAP(single_range_output, 0, CPUID_ECX, BIT(2)), + PT_CAP(output_subsys, 0, CPUID_ECX, BIT(3)), PT_CAP(payloads_lip, 0, CPUID_ECX, BIT(31)), PT_CAP(num_address_ranges, 1, CPUID_EAX, 0x3), PT_CAP(mtc_periods, 1, CPUID_EAX, 0xffff0000), diff --git a/arch/x86/include/asm/intel_pt.h b/arch/x86/include/asm/intel_pt.h index 00f4afb..634f99b 100644 --- a/arch/x86/include/asm/intel_pt.h +++ b/arch/x86/include/asm/intel_pt.h @@ -16,6 +16,7 @@ enum pt_capabilities { PT_CAP_topa_output, PT_CAP_topa_multiple_entries, PT_CAP_single_range_output, + PT_CAP_output_subsys, PT_CAP_payloads_lip, PT_CAP_num_address_ranges, PT_CAP_mtc_periods, -- 1.8.3.1