sw64: perf: don't rely on layout of pt_regs to grab some registers
Sunway inclusion category: bugfix bugzilla: https://gitee.com/openeuler/kernel/issues/I6ILAC -------------------------------- The layout of struct perf_event_sw64_regs and pt_regs is inconsistent, and some integer registers cannot get correct value. This patch checks these registers explicitly to return the appropriate values. Signed-off-by: NHe Chuyue <hechuyue@wxiat.com> Reviewed-by: NHe Sheng <hesheng@wxiat.com> Signed-off-by: NGu Zitao <guzitao@wxiat.com>
Showing
想要评论请 注册 或 登录