Re: [PATCH 01/12] perf/core: Add PERF_SAMPLE_WEIGHT_EXT

2021-01-26 Thread Peter Zijlstra
On Tue, Jan 26, 2021 at 10:33:18AM -0500, Liang, Kan wrote: > > > On 1/26/2021 9:42 AM, Peter Zijlstra wrote: > > On Tue, Jan 19, 2021 at 12:38:20PM -0800, kan.li...@linux.intel.com wrote: > > > > > @@ -900,6 +901,13 @@ enum perf_event_type { > > >*char

Re: [PATCH 01/12] perf/core: Add PERF_SAMPLE_WEIGHT_EXT

2021-01-26 Thread Liang, Kan
On 1/26/2021 9:42 AM, Peter Zijlstra wrote: On Tue, Jan 19, 2021 at 12:38:20PM -0800, kan.li...@linux.intel.com wrote: @@ -900,6 +901,13 @@ enum perf_event_type { *char data[size]; } && PERF_SAMPLE_AUX * { u64

Re: [PATCH 01/12] perf/core: Add PERF_SAMPLE_WEIGHT_EXT

2021-01-26 Thread Peter Zijlstra
On Tue, Jan 19, 2021 at 12:38:20PM -0800, kan.li...@linux.intel.com wrote: > @@ -900,6 +901,13 @@ enum perf_event_type { >*char data[size]; } && PERF_SAMPLE_AUX >* { u64 data_page_size;} && > PERF_SAMPLE_DATA_PAGE_SIZE >*

[PATCH 01/12] perf/core: Add PERF_SAMPLE_WEIGHT_EXT

2021-01-19 Thread kan . liang
From: Kan Liang Current PERF_SAMPLE_WEIGHT sample type is very useful to expresses the cost of an action represented by the sample. This allows the profiler to scale the samples to be more informative to the programmer. It could also help to locate a hotspot, e.g., when profiling by memory