]> asedeno.scripts.mit.edu Git - linux.git/commitdiff
perf intel-pt: Remove unused instructions_sample_period
authorAdrian Hunter <adrian.hunter@intel.com>
Fri, 26 May 2017 08:17:28 +0000 (11:17 +0300)
committerArnaldo Carvalho de Melo <acme@redhat.com>
Fri, 30 Jun 2017 14:44:33 +0000 (11:44 -0300)
Remove unused struct intel_pt member instructions_sample_period.

Signed-off-by: Adrian Hunter <adrian.hunter@intel.com>
Cc: Andi Kleen <ak@linux.intel.com>
Link: http://lkml.kernel.org/r/1495786658-18063-28-git-send-email-adrian.hunter@intel.com
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
tools/perf/util/intel-pt.c

index dbff5dca09f0dedc97fd3b592ef7b95844fdc343..f8237a0e29464683b5ee27199b34b09b4af7c8c6 100644 (file)
@@ -81,7 +81,6 @@ struct intel_pt {
 
        bool sample_instructions;
        u64 instructions_sample_type;
-       u64 instructions_sample_period;
        u64 instructions_id;
 
        bool sample_branches;
@@ -1978,7 +1977,6 @@ static int intel_pt_synth_events(struct intel_pt *pt,
                                intel_pt_ns_to_ticks(pt, pt->synth_opts.period);
                else
                        attr.sample_period = pt->synth_opts.period;
-               pt->instructions_sample_period = attr.sample_period;
                if (pt->synth_opts.callchain)
                        attr.sample_type |= PERF_SAMPLE_CALLCHAIN;
                if (pt->synth_opts.last_branch)