Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

perf intel-pt/bts: Remove unused SAMPLE_SIZE defines and bts priv array

These defines were probably dragged in from sampling support in earlier
patches. They can be put back when needed.

Signed-off-by: Kim Phillips <kim.phillips@arm.com>
Acked-by: 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/20170616112339.3fb6986e4ff33e353008244b@arm.com
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>

authored by

Kim Phillips and committed by
Arnaldo Carvalho de Melo
d3cef7fe 0c788d47

-10
-4
tools/perf/arch/x86/util/intel-bts.c
··· 35 35 #define KiB_MASK(x) (KiB(x) - 1) 36 36 #define MiB_MASK(x) (MiB(x) - 1) 37 37 38 - #define INTEL_BTS_DFLT_SAMPLE_SIZE KiB(4) 39 - 40 - #define INTEL_BTS_MAX_SAMPLE_SIZE KiB(60) 41 - 42 38 struct intel_bts_snapshot_ref { 43 39 void *ref_buf; 44 40 size_t ref_offset;
-4
tools/perf/arch/x86/util/intel-pt.c
··· 40 40 #define KiB_MASK(x) (KiB(x) - 1) 41 41 #define MiB_MASK(x) (MiB(x) - 1) 42 42 43 - #define INTEL_PT_DEFAULT_SAMPLE_SIZE KiB(4) 44 - 45 - #define INTEL_PT_MAX_SAMPLE_SIZE KiB(60) 46 - 47 43 #define INTEL_PT_PSB_PERIOD_NEAR 256 48 44 49 45 struct intel_pt_snapshot_ref {
-2
tools/perf/util/intel-bts.c
··· 866 866 fprintf(stdout, intel_bts_info_fmts[i], arr[i]); 867 867 } 868 868 869 - u64 intel_bts_auxtrace_info_priv[INTEL_BTS_AUXTRACE_PRIV_SIZE]; 870 - 871 869 int intel_bts_process_auxtrace_info(union perf_event *event, 872 870 struct perf_session *session) 873 871 {