Re: [PATCH 02/22] perf/x86/intel: Extract memory code PEBS parser for reuse

2019-03-19 Thread Peter Zijlstra
On Mon, Mar 18, 2019 at 02:41:24PM -0700, kan.li...@linux.intel.com wrote: > @@ -1125,34 +1125,50 @@ static int intel_pmu_pebs_fixup_ip(struct pt_regs > *regs) > return 0; > } > > -static inline u64 intel_hsw_weight(struct pebs_record_skl *pebs) > +static inline u64 intel_hsw_weight(u64 t

[PATCH 02/22] perf/x86/intel: Extract memory code PEBS parser for reuse

2019-03-18 Thread kan . liang
From: Andi Kleen Extract some code related to memory profiling from the PEBS record parser into separate functions. It can be reused by the upcoming adaptive PEBS parser. No functional changes. Signed-off-by: Andi Kleen Signed-off-by: Kan Liang --- arch/x86/events/intel/ds.c | 63