Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751543AbdGZRQe (ORCPT ); Wed, 26 Jul 2017 13:16:34 -0400 Received: from terminus.zytor.com ([65.50.211.136]:55549 "EHLO terminus.zytor.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751446AbdGZRQa (ORCPT ); Wed, 26 Jul 2017 13:16:30 -0400 Date: Wed, 26 Jul 2017 10:13:06 -0700 From: tip-bot for Kan Liang Message-ID: Cc: tglx@linutronix.de, mingo@kernel.org, hpa@zytor.com, jolsa@redhat.com, linux-kernel@vger.kernel.org, acme@redhat.com, alexander.shishkin@linux.intel.com, peterz@infradead.org, kan.liang@intel.com, ak@linux.intel.com, adrian.hunter@intel.com Reply-To: adrian.hunter@intel.com, ak@linux.intel.com, peterz@infradead.org, kan.liang@intel.com, alexander.shishkin@linux.intel.com, acme@redhat.com, linux-kernel@vger.kernel.org, jolsa@redhat.com, hpa@zytor.com, mingo@kernel.org, tglx@linutronix.de In-Reply-To: <20170630141656.1626-1-kan.liang@intel.com> References: <20170630141656.1626-1-kan.liang@intel.com> To: linux-tip-commits@vger.kernel.org Subject: [tip:perf/core] perf intel-pt: Set no_aux_samples for the tracking event Git-Commit-ID: 69d8bd8aa7d8906a1e922ae884d97f0bd7f1b269 X-Mailer: tip-git-log-daemon Robot-ID: Robot-Unsubscribe: Contact to get blacklisted from these emails MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Content-Type: text/plain; charset=UTF-8 Content-Disposition: inline Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1519 Lines: 37 Commit-ID: 69d8bd8aa7d8906a1e922ae884d97f0bd7f1b269 Gitweb: http://git.kernel.org/tip/69d8bd8aa7d8906a1e922ae884d97f0bd7f1b269 Author: Kan Liang AuthorDate: Fri, 30 Jun 2017 10:16:55 -0400 Committer: Arnaldo Carvalho de Melo CommitDate: Thu, 20 Jul 2017 09:55:50 -0300 perf intel-pt: Set no_aux_samples for the tracking event The reason of introducing the tracking event (a dummy software event) is to collect side-band information. Additional sampling is wasteful. no_aux_samples should be set for tracking event. Signed-off-by: Kan Liang Acked-by: Jiri Olsa Cc: Adrian Hunter Cc: Alexander Shishkin Cc: Andi Kleen Cc: Peter Zijlstra Link: http://lkml.kernel.org/r/20170630141656.1626-1-kan.liang@intel.com Signed-off-by: Arnaldo Carvalho de Melo --- tools/perf/arch/x86/util/intel-pt.c | 1 + 1 file changed, 1 insertion(+) diff --git a/tools/perf/arch/x86/util/intel-pt.c b/tools/perf/arch/x86/util/intel-pt.c index 9535be5..4a461e8 100644 --- a/tools/perf/arch/x86/util/intel-pt.c +++ b/tools/perf/arch/x86/util/intel-pt.c @@ -752,6 +752,7 @@ static int intel_pt_recording_options(struct auxtrace_record *itr, tracking_evsel->attr.freq = 0; tracking_evsel->attr.sample_period = 1; + tracking_evsel->no_aux_samples = true; if (need_immediate) tracking_evsel->immediate = true;