]> git.proxmox.com Git - mirror_ubuntu-jammy-kernel.git/commitdiff
perf intel-pt: Set no_aux_samples for the tracking event
authorKan Liang <kan.liang@intel.com>
Fri, 30 Jun 2017 14:16:55 +0000 (10:16 -0400)
committerArnaldo Carvalho de Melo <acme@redhat.com>
Thu, 20 Jul 2017 12:55:50 +0000 (09:55 -0300)
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>
Acked-by: Jiri Olsa <jolsa@redhat.com>
Cc: Adrian Hunter <adrian.hunter@intel.com>
Cc: Alexander Shishkin <alexander.shishkin@linux.intel.com>
Cc: Andi Kleen <ak@linux.intel.com>
Cc: Peter Zijlstra <peterz@infradead.org>
Link: http://lkml.kernel.org/r/20170630141656.1626-1-kan.liang@intel.com
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
tools/perf/arch/x86/util/intel-pt.c

index 9535be57033f0c02b12d4471b2b61a272d630de0..4a461e8ae3268596c097c3270e13c6a4e2b2fe46 100644 (file)
@@ -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;