Re: [PATCH 1/5] nds32: Perf porting

2018-10-22 Thread Mark Rutland
On Mon, Oct 22, 2018 at 06:18:26PM +0800, Nick Hu wrote: > On Thu, Oct 18, 2018 at 03:23:59PM +0100, Mark Rutland wrote: > > On Thu, Oct 18, 2018 at 04:43:13PM +0800, Nickhu wrote: > > > +static irqreturn_t nds32_pmu_handle_irq(int irq_num, void *dev) > > > +{ > > > + u32 pfm; > > > + stru

Re: [PATCH 1/5] nds32: Perf porting

2018-10-22 Thread Nick Hu
Hi Mark, On Thu, Oct 18, 2018 at 03:23:59PM +0100, Mark Rutland wrote: > HI, > > On Thu, Oct 18, 2018 at 04:43:13PM +0800, Nickhu wrote: > > +#define PFM_CTL_OVF(idx) PFM_CTL_mskOVF ## idx > > +#define PFM_CTL_EN(idx) PFM_CTL_mskEN ## idx > > +#define PFM_CTL_OFFS

Re: [PATCH 1/5] nds32: Perf porting

2018-10-18 Thread Mark Rutland
HI, On Thu, Oct 18, 2018 at 04:43:13PM +0800, Nickhu wrote: > +#define PFM_CTL_OVF(idx) PFM_CTL_mskOVF ## idx > +#define PFM_CTL_EN(idx) PFM_CTL_mskEN ## idx > +#define PFM_CTL_OFFSEL(idx) PFM_CTL_offSEL ## idx > +#define PFM_CTL_IE(idx)

[PATCH 1/5] nds32: Perf porting

2018-10-18 Thread Nickhu
This is the commit that porting the perf for nds32. Raw event: The raw events start with 'r'. Usage: perf stat -e rXYZ ./app X: the index of performance counter. YZ: the index(convert to hexdecimal) of