Re: [PATCH v4 2/3] csky: Add support for perf registers sampling

From: Guo Ren
Date: Mon Apr 15 2019 - 05:01:41 EST


Hi Mao,

Sorry, currect:

On Thu, Apr 11, 2019 at 03:45:00PM +0800, Mao Han wrote:
> This patch implements the perf registers sampling and validation API
> for csky arch. The valid registers and their register ID are defined in
> perf_regs.h. Perf tool can backtrace in userspace with unwind library
> and the registers/user stack dump support.

> + return ((long *)regs)[idx];
return (u64)*((u32 *)regs + idx);

Best Regards
Guo Ren