Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1678861

[PATCH V2 1/2] perf tools: set no_aux_samples for the tracking event in PT

From kan.liang@intel.com
Newsgroups linux.kernel
Subject [PATCH V2 1/2] perf tools: set no_aux_samples for the tracking event in PT
Date 2017-06-30 16:20 +0200
Message-ID <tY4W5-6wZ-7@gated-at.bofh.it> (permalink)
Organization linux.* mail to news gateway

Show all headers | View raw


From: Kan Liang <kan.liang@intel.com>

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 <kan.liang@intel.com>
---

Changes since V1
- new patch to set no_aux_samples for the tracking event (jirka)

 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 f630de0..4fe1aed 100644
--- a/tools/perf/arch/x86/util/intel-pt.c
+++ b/tools/perf/arch/x86/util/intel-pt.c
@@ -751,6 +751,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;
 
-- 
2.9.4

Back to linux.kernel | Previous | Next — Next in thread | Find similar | Unroll thread


Thread

[PATCH V2 1/2] perf tools: set no_aux_samples for the tracking event in PT kan.liang@intel.com - 2017-06-30 16:20 +0200
  [PATCH V2 2/2] perf tools: always set no branch for dummy event in PT kan.liang@intel.com - 2017-06-30 16:20 +0200
    Re: [PATCH V2 2/2] perf tools: always set no branch for dummy event  in PT Jiri Olsa <jolsa@redhat.com> - 2017-07-03 10:00 +0200

csiph-web