perf intel-pt/bts: remove unused SAMPLE_SIZE defines and bts priv array
PATCH 1/2 perf intel-pt/bts: remove unused SAMPLE_SIZE defines and bts priv array
--- tools/perf/arch/x86/util/intel-bts.c | 4 ---- tools/perf/arch/x86/util/intel-pt.c | 4 ---- tools/perf/util/intel-bts.c | 2 -- 3 files changed, 10 deletions(-)
tools/perf/arch/x86/util/intel-bts.c +0 -4
@@ -35,10 +35,6 @@#define KiB_MASK (x) (KiB(x) - 1)#define MiB_MASK (x) (MiB(x) - 1) -#define INTEL_BTS_DFLT_SAMPLE_SIZE KiB(4) - -#define INTEL_BTS_MAX_SAMPLE_SIZE KiB(60) -struct intel_bts_snapshot_ref {void *ref_buf;size_t ref_offset;
tools/perf/arch/x86/util/intel-pt.c +0 -4
@@ -40,10 +40,6 @@#define KiB_MASK (x) (KiB(x) - 1)#define MiB_MASK (x) (MiB(x) - 1) -#define INTEL_PT_DEFAULT_SAMPLE_SIZE KiB(4) - -#define INTEL_PT_MAX_SAMPLE_SIZE KiB(60) -#define INTEL_PT_PSB_PERIOD_NEAR 256struct intel_pt_snapshot_ref {
tools/perf/util/intel-bts.c +0 -2
@@ -866,8 +866,6 @@ static void intel_bts_print_info(u64 *arr, int start, int finish)fprintf (stdout, intel_bts_info_fmts[i], arr[i]); } -u64 intel_bts_auxtrace_info_priv[INTEL_BTS_AUXTRACE_PRIV_SIZE ]; -int intel_bts_process_auxtrace_info (union perf_event *event,struct perf_session *session) {
Signature · 1 line
2.11.0
Quoted 2 lines · Kim Phillips
Signed-off-by Kim Phillips <[email protected]>
Looks like defines for sampling support that got mixed in with earlier patches. We can always put them back when we need them, so:
Quoted 50 lines
--- tools/perf/arch/x86/util/intel-bts.c | 4 ---- tools/perf/arch/x86/util/intel-pt.c | 4 ---- tools/perf/util/intel-bts.c | 2 -- 3 files changed, 10 deletions(-)tools/perf/arch/x86/util/intel-bts.c +0
-4@@ -35,10 +35,6 @@#define KiB_MASK (x) (KiB(x) - 1)#define MiB_MASK (x) (MiB(x) - 1) -#define INTEL_BTS_DFLT_SAMPLE_SIZE KiB(4) - -#define INTEL_BTS_MAX_SAMPLE_SIZE KiB(60) -struct intel_bts_snapshot_ref {void *ref_buf;size_t ref_offset;tools/perf/arch/x86/util/intel-pt.c +0
-4@@ -40,10 +40,6 @@#define KiB_MASK (x) (KiB(x) - 1)#define MiB_MASK (x) (MiB(x) - 1) -#define INTEL_PT_DEFAULT_SAMPLE_SIZE KiB(4) - -#define INTEL_PT_MAX_SAMPLE_SIZE KiB(60) -#define INTEL_PT_PSB_PERIOD_NEAR 256struct intel_pt_snapshot_ref {tools/perf/util/intel-bts.c +0
-2@@ -866,8 +866,6 @@ static void intel_bts_print_info(u64 *arr, int start, int finish)fprintf (stdout, intel_bts_info_fmts[i], arr[i]); } -u64 intel_bts_auxtrace_info_priv[INTEL_BTS_AUXTRACE_PRIV_SIZE ]; -int intel_bts_process_auxtrace_info (union perf_event *event,struct perf_session *session) {
Quoted 8 lines · Adrian Hunter
Quoted 2 lines · Kim Phillips
Signed-off-by Kim Phillips <[email protected]>Looks like defines for sampling support that got mixed in with earlier patches. We can always put them back when we need them, so:
Acked-by Adrian Hunter <[email protected]>
The non-existent changelog is wholly inadequate though.
Thanks,
Ingo
PATCH v2 1/2 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.
---
v2: addressed Ingo's comment by populating changelog with Adrian's explanation of why they were unused
tools/perf/arch/x86/util/intel-bts.c | 4 ---- tools/perf/arch/x86/util/intel-pt.c | 4 ---- tools/perf/util/intel-bts.c | 2 -- 3 files changed, 10 deletions(-)
tools/perf/arch/x86/util/intel-bts.c +0 -4
@@ -35,10 +35,6 @@#define KiB_MASK (x) (KiB(x) - 1)#define MiB_MASK (x) (MiB(x) - 1) -#define INTEL_BTS_DFLT_SAMPLE_SIZE KiB(4) - -#define INTEL_BTS_MAX_SAMPLE_SIZE KiB(60) -struct intel_bts_snapshot_ref {void *ref_buf;size_t ref_offset;
tools/perf/arch/x86/util/intel-pt.c +0 -4
@@ -40,10 +40,6 @@#define KiB_MASK (x) (KiB(x) - 1)#define MiB_MASK (x) (MiB(x) - 1) -#define INTEL_PT_DEFAULT_SAMPLE_SIZE KiB(4) - -#define INTEL_PT_MAX_SAMPLE_SIZE KiB(60) -#define INTEL_PT_PSB_PERIOD_NEAR 256struct intel_pt_snapshot_ref {
tools/perf/util/intel-bts.c +0 -2
@@ -866,8 +866,6 @@ static void intel_bts_print_info(u64 *arr, int start, int finish)fprintf (stdout, intel_bts_info_fmts[i], arr[i]); } -u64 intel_bts_auxtrace_info_priv[INTEL_BTS_AUXTRACE_PRIV_SIZE ]; -int intel_bts_process_auxtrace_info (union perf_event *event,struct perf_session *session) {
Signature · 1 line
2.11.0
Em Fri, Jun 16, 2017 at 11:23:39AM -0500, Kim Phillips escreveu:
Quoted 2 lines
These defines were probably dragged in from sampling support in earlier patches. They can be put back when needed.
Applied.
Ah, please capitalize the first word after the : in the summary, i.e.:
[PATCH 1/2 v2] perf intel-pt/bts: Remove unused SAMPLE_SIZE
Thanks,
- Arnaldo
Quoted 56 lines
Acked-by Adrian Hunter <[email protected]>Signed-off-by Kim Phillips <[email protected]>---
v2: addressed Ingo's comment by populating changelog with Adrian's explanation of why they were unusedtools/perf/arch/x86/util/intel-bts.c | 4 ---- tools/perf/arch/x86/util/intel-pt.c | 4 ---- tools/perf/util/intel-bts.c | 2 -- 3 files changed, 10 deletions(-)tools/perf/arch/x86/util/intel-bts.c +0
-4@@ -35,10 +35,6 @@#define KiB_MASK (x) (KiB(x) - 1)#define MiB_MASK (x) (MiB(x) - 1) -#define INTEL_BTS_DFLT_SAMPLE_SIZE KiB(4) - -#define INTEL_BTS_MAX_SAMPLE_SIZE KiB(60) -struct intel_bts_snapshot_ref {void *ref_buf;size_t ref_offset;tools/perf/arch/x86/util/intel-pt.c +0
-4@@ -40,10 +40,6 @@#define KiB_MASK (x) (KiB(x) - 1)#define MiB_MASK (x) (MiB(x) - 1) -#define INTEL_PT_DEFAULT_SAMPLE_SIZE KiB(4) - -#define INTEL_PT_MAX_SAMPLE_SIZE KiB(60) -#define INTEL_PT_PSB_PERIOD_NEAR 256struct intel_pt_snapshot_ref {tools/perf/util/intel-bts.c +0
-2@@ -866,8 +866,6 @@ static void intel_bts_print_info(u64 *arr, int start, int finish)fprintf (stdout, intel_bts_info_fmts[i], arr[i]); } -u64 intel_bts_auxtrace_info_priv[INTEL_BTS_AUXTRACE_PRIV_SIZE ]; -int intel_bts_process_auxtrace_info (union perf_event *event,struct perf_session *session) {Signature · 1 line
2.11.0
tip-bot for Kim Phillips
merge bot[tip:perf/core] perf intel-pt/bts: Remove unused SAMPLE_SIZE defines and bts priv array
In reply to Kim Phillipsperf intel-pt/bts: Remove unused SAMPLE_SIZE defines and bts priv array
Commit-ID: d3cef7fe5151eabcd97ad8f9e595ec55f6ffb318 Gitweb: http://git.kernel.org/tip/d3cef7fe5151eabcd97ad8f9e595ec55f6ffb318 Author: Kim Phillips <[email protected]> AuthorDate: Fri, 16 Jun 2017 11:23:39 -0500 Committer: Arnaldo Carvalho de Melo <[email protected]> CommitDate: Mon, 19 Jun 2017 15:27:09 -0300
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.
--- tools/perf/arch/x86/util/intel-bts.c | 4 ---- tools/perf/arch/x86/util/intel-pt.c | 4 ---- tools/perf/util/intel-bts.c | 2 -- 3 files changed, 10 deletions(-)
tools/perf/arch/x86/util/intel-bts.c +0 -4
@@ -35,10 +35,6 @@#define KiB_MASK (x) (KiB(x) - 1)#define MiB_MASK (x) (MiB(x) - 1) -#define INTEL_BTS_DFLT_SAMPLE_SIZE KiB(4) - -#define INTEL_BTS_MAX_SAMPLE_SIZE KiB(60) -struct intel_bts_snapshot_ref {void *ref_buf;size_t ref_offset;
tools/perf/arch/x86/util/intel-pt.c +0 -4
@@ -40,10 +40,6 @@#define KiB_MASK (x) (KiB(x) - 1)#define MiB_MASK (x) (MiB(x) - 1) -#define INTEL_PT_DEFAULT_SAMPLE_SIZE KiB(4) - -#define INTEL_PT_MAX_SAMPLE_SIZE KiB(60) -#define INTEL_PT_PSB_PERIOD_NEAR 256struct intel_pt_snapshot_ref {
tools/perf/util/intel-bts.c +0 -2
@@ -866,8 +866,6 @@ static void intel_bts_print_info(u64 *arr, int start, int finish)fprintf (stdout, intel_bts_info_fmts[i], arr[i]); } -u64 intel_bts_auxtrace_info_priv[INTEL_BTS_AUXTRACE_PRIV_SIZE ]; -int intel_bts_process_auxtrace_info (union perf_event *event,struct perf_session *session) {