Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752732AbdGCH6i (ORCPT ); Mon, 3 Jul 2017 03:58:38 -0400 Received: from mx1.redhat.com ([209.132.183.28]:41120 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752378AbdGCH6g (ORCPT ); Mon, 3 Jul 2017 03:58:36 -0400 DMARC-Filter: OpenDMARC Filter v1.3.2 mx1.redhat.com D082A61D02 Authentication-Results: ext-mx10.extmail.prod.ext.phx2.redhat.com; dmarc=none (p=none dis=none) header.from=redhat.com Authentication-Results: ext-mx10.extmail.prod.ext.phx2.redhat.com; spf=pass smtp.mailfrom=jolsa@redhat.com DKIM-Filter: OpenDKIM Filter v2.11.0 mx1.redhat.com D082A61D02 Date: Mon, 3 Jul 2017 09:58:32 +0200 From: Jiri Olsa To: kan.liang@intel.com Cc: acme@kernel.org, linux-kernel@vger.kernel.org, mingo@redhat.com, peterz@infradead.org, adrian.hunter@intel.com, alexander.shishkin@linux.intel.com, ak@linux.intel.com Subject: Re: [PATCH V2 2/2] perf tools: always set no branch for dummy event in PT Message-ID: <20170703075832.GA10105@krava> References: <20170630141656.1626-1-kan.liang@intel.com> <20170630141656.1626-2-kan.liang@intel.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20170630141656.1626-2-kan.liang@intel.com> User-Agent: Mutt/1.8.3 (2017-05-23) X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.5.16 (mx1.redhat.com [10.5.110.39]); Mon, 03 Jul 2017 07:58:36 +0000 (UTC) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 798 Lines: 27 On Fri, Jun 30, 2017 at 10:16:56AM -0400, kan.liang@intel.com wrote: > From: Kan Liang > > An earlier kernel patch allowed enabling PT and LBR at the same time on > Goldmont. > > commit ccbebba4c6bf ("perf/x86/intel/pt: Bypass PT vs. LBR exclusivity > if the core supports it") > > However, users still cannot use Intel PT and LBRs simultaneously. > $ sudo perf record -e cycles,intel_pt//u -b -- sleep 1 > Error: > PMU Hardware doesn't support sampling/overflow-interrupts. > > PT implicitly adds dummy event in perf tool. dummy event is software > event which doesn't support LBR. > > Always setting no branch for dummy event in Intel PT. > > Signed-off-by: Kan Liang for the patchset: Acked-by: Jiri Olsa thanks, jirka