Commit d703008e authored by He Chuyue's avatar He Chuyue Committed by guzitao
Browse files

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: default avatarHe Chuyue <hechuyue@wxiat.com>
Reviewed-by: default avatarHe Sheng <hesheng@wxiat.com>
Signed-off-by: default avatarGu Zitao <guzitao@wxiat.com>
parent 58b964b3
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment