Re: [RFC 00/11] perf: Enhancing perf to export processor hazard information

2020-04-27 Thread Madhavan Srinivasan
peterz,     Can you please help. Is it okay to use PERF_SAMPLE_RAW to expose the pipeline stall details and add tool side infrastructure to handle the PERF_SAMPLE_RAW for cpu-pmu samples. Maddy On 4/20/20 12:39 PM, Madhavan Srinivasan wrote: On 3/27/20 1:18 AM, Kim Phillips wrote: On 3/

Re: [RFC 00/11] perf: Enhancing perf to export processor hazard information

2020-04-20 Thread Madhavan Srinivasan
On 3/27/20 1:18 AM, Kim Phillips wrote: On 3/26/20 5:19 AM, maddy wrote: On 3/18/20 11:05 PM, Kim Phillips wrote: Hi Maddy, On 3/17/20 1:50 AM, maddy wrote: On 3/13/20 4:08 AM, Kim Phillips wrote: On 3/11/20 11:00 AM, Ravi Bangoria wrote: On 3/6/20 3:36 AM, Kim Phillips wrote: On 3/3/

Re: [RFC 00/11] perf: Enhancing perf to export processor hazard information

2020-03-26 Thread Kim Phillips
On 3/26/20 5:19 AM, maddy wrote: > > > On 3/18/20 11:05 PM, Kim Phillips wrote: >> Hi Maddy, >> >> On 3/17/20 1:50 AM, maddy wrote: >>> On 3/13/20 4:08 AM, Kim Phillips wrote: On 3/11/20 11:00 AM, Ravi Bangoria wrote: > On 3/6/20 3:36 AM, Kim Phillips wrote: >>> On 3/3/20 3:55 AM,

Re: [RFC 00/11] perf: Enhancing perf to export processor hazard information

2020-03-26 Thread maddy
On 3/18/20 11:05 PM, Kim Phillips wrote: Hi Maddy, On 3/17/20 1:50 AM, maddy wrote: On 3/13/20 4:08 AM, Kim Phillips wrote: On 3/11/20 11:00 AM, Ravi Bangoria wrote: On 3/6/20 3:36 AM, Kim Phillips wrote: On 3/3/20 3:55 AM, Kim Phillips wrote: On 3/2/20 2:21 PM, Stephane Eranian wrote:

Re: [RFC 00/11] perf: Enhancing perf to export processor hazard information

2020-03-19 Thread Michael Ellerman
Kim Phillips writes: > On 3/17/20 1:50 AM, maddy wrote: >> On 3/13/20 4:08 AM, Kim Phillips wrote: >>> On 3/11/20 11:00 AM, Ravi Bangoria wrote: >>> information on each sample using PMI at periodic intervals. Hence proposing PERF_SAMPLE_PIPELINE_HAZ. >>> >>> And that's fine for any extra

Re: [RFC 00/11] perf: Enhancing perf to export processor hazard information

2020-03-18 Thread Kim Phillips
Hi Maddy, On 3/17/20 1:50 AM, maddy wrote: > On 3/13/20 4:08 AM, Kim Phillips wrote: >> On 3/11/20 11:00 AM, Ravi Bangoria wrote: >>> On 3/6/20 3:36 AM, Kim Phillips wrote: > On 3/3/20 3:55 AM, Kim Phillips wrote: >> On 3/2/20 2:21 PM, Stephane Eranian wrote: >>> On Mon, Mar 2, 2020 at

Re: [RFC 00/11] perf: Enhancing perf to export processor hazard information

2020-03-16 Thread maddy
On 3/13/20 4:08 AM, Kim Phillips wrote: On 3/11/20 11:00 AM, Ravi Bangoria wrote: Hi Kim, Hi Ravi, On 3/6/20 3:36 AM, Kim Phillips wrote: On 3/3/20 3:55 AM, Kim Phillips wrote: On 3/2/20 2:21 PM, Stephane Eranian wrote: On Mon, Mar 2, 2020 at 2:13 AM Peter Zijlstra wrote: On Mon, Mar

Re: [RFC 00/11] perf: Enhancing perf to export processor hazard information

2020-03-12 Thread Kim Phillips
On 3/11/20 11:00 AM, Ravi Bangoria wrote: > Hi Kim, Hi Ravi, > On 3/6/20 3:36 AM, Kim Phillips wrote: >>> On 3/3/20 3:55 AM, Kim Phillips wrote: On 3/2/20 2:21 PM, Stephane Eranian wrote: > On Mon, Mar 2, 2020 at 2:13 AM Peter Zijlstra > wrote: >> >> On Mon, Mar 02, 2020 at

Re: [RFC 00/11] perf: Enhancing perf to export processor hazard information

2020-03-11 Thread Ravi Bangoria
Hi Kim, On 3/6/20 3:36 AM, Kim Phillips wrote: On 3/3/20 3:55 AM, Kim Phillips wrote: On 3/2/20 2:21 PM, Stephane Eranian wrote: On Mon, Mar 2, 2020 at 2:13 AM Peter Zijlstra wrote: On Mon, Mar 02, 2020 at 10:53:44AM +0530, Ravi Bangoria wrote: Modern processors export such hazard data in

Re: [RFC 00/11] perf: Enhancing perf to export processor hazard information

2020-03-05 Thread Kim Phillips
On 3/4/20 10:46 PM, Ravi Bangoria wrote: > Hi Kim, Hi Ravi, > On 3/3/20 3:55 AM, Kim Phillips wrote: >> On 3/2/20 2:21 PM, Stephane Eranian wrote: >>> On Mon, Mar 2, 2020 at 2:13 AM Peter Zijlstra wrote: On Mon, Mar 02, 2020 at 10:53:44AM +0530, Ravi Bangoria wrote: > Modern proces

Re: [RFC 00/11] perf: Enhancing perf to export processor hazard information

2020-03-04 Thread Ravi Bangoria
Hi Andi, Sorry for being bit late. On 3/3/20 7:03 AM, Andi Kleen wrote: On Mon, Mar 02, 2020 at 11:13:32AM +0100, Peter Zijlstra wrote: On Mon, Mar 02, 2020 at 10:53:44AM +0530, Ravi Bangoria wrote: Modern processors export such hazard data in Performance Monitoring Unit (PMU) registers. Ex,

Re: [RFC 00/11] perf: Enhancing perf to export processor hazard information

2020-03-04 Thread Ravi Bangoria
Hi Paul, Sorry for bit late reply. On 3/3/20 2:38 AM, Paul Clarke wrote: On 3/1/20 11:23 PM, Ravi Bangoria wrote: Most modern microprocessors employ complex instruction execution pipelines such that many instructions can be 'in flight' at any given point in time. Various factors affect this pi

Re: [RFC 00/11] perf: Enhancing perf to export processor hazard information

2020-03-04 Thread Ravi Bangoria
Hi Kim, Sorry about being bit late. On 3/3/20 3:55 AM, Kim Phillips wrote: On 3/2/20 2:21 PM, Stephane Eranian wrote: On Mon, Mar 2, 2020 at 2:13 AM Peter Zijlstra wrote: On Mon, Mar 02, 2020 at 10:53:44AM +0530, Ravi Bangoria wrote: Modern processors export such hazard data in Performance

Re: [RFC 00/11] perf: Enhancing perf to export processor hazard information

2020-03-04 Thread maddy
On 3/3/20 1:51 AM, Stephane Eranian wrote: On Mon, Mar 2, 2020 at 2:13 AM Peter Zijlstra wrote: On Mon, Mar 02, 2020 at 10:53:44AM +0530, Ravi Bangoria wrote: Modern processors export such hazard data in Performance Monitoring Unit (PMU) registers. Ex, 'Sampled Instruction Event Register' o

Re: [RFC 00/11] perf: Enhancing perf to export processor hazard information

2020-03-02 Thread Kim Phillips
On 3/2/20 2:21 PM, Stephane Eranian wrote: > On Mon, Mar 2, 2020 at 2:13 AM Peter Zijlstra wrote: >> >> On Mon, Mar 02, 2020 at 10:53:44AM +0530, Ravi Bangoria wrote: >>> Modern processors export such hazard data in Performance >>> Monitoring Unit (PMU) registers. Ex, 'Sampled Instruction Event >>

Re: [RFC 00/11] perf: Enhancing perf to export processor hazard information

2020-03-02 Thread Andi Kleen
On Mon, Mar 02, 2020 at 11:13:32AM +0100, Peter Zijlstra wrote: > On Mon, Mar 02, 2020 at 10:53:44AM +0530, Ravi Bangoria wrote: > > Modern processors export such hazard data in Performance > > Monitoring Unit (PMU) registers. Ex, 'Sampled Instruction Event > > Register' on IBM PowerPC[1][2] and 'I

Re: [RFC 00/11] perf: Enhancing perf to export processor hazard information

2020-03-02 Thread Paul Clarke
On 3/1/20 11:23 PM, Ravi Bangoria wrote: > Most modern microprocessors employ complex instruction execution > pipelines such that many instructions can be 'in flight' at any > given point in time. Various factors affect this pipeline and > hazards are the primary among them. Different types of haza

Re: [RFC 00/11] perf: Enhancing perf to export processor hazard information

2020-03-02 Thread Peter Zijlstra
On Mon, Mar 02, 2020 at 10:53:44AM +0530, Ravi Bangoria wrote: > Modern processors export such hazard data in Performance > Monitoring Unit (PMU) registers. Ex, 'Sampled Instruction Event > Register' on IBM PowerPC[1][2] and 'Instruction-Based Sampling' on > AMD[3] provides similar information. >

[RFC 00/11] perf: Enhancing perf to export processor hazard information

2020-03-01 Thread Ravi Bangoria
Most modern microprocessors employ complex instruction execution pipelines such that many instructions can be 'in flight' at any given point in time. Various factors affect this pipeline and hazards are the primary among them. Different types of hazards exist - Data hazards, Structural hazards and