aboutsummaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/call-graph-from-sql.py
diff options
context:
space:
mode:
authorAlan Kao <[email protected]>2018-05-08 10:59:33 +0800
committerPalmer Dabbelt <[email protected]>2018-06-04 13:33:31 -0700
commitebcbd75e396258a5041d2b28fec02c27f65d59bb (patch)
tree3f48c0cd8ed6fc785005891225ff42169e5b7335 /tools/perf/scripts/python/call-graph-from-sql.py
parent29dcea88779c856c7dc92040a0c01233263101d4 (diff)
riscv: Fix the bug in memory access fixup code
A piece of fixup code is currently shared by __copy_user and __clear_user. It first disables the access to user-space memory and then returns the "n" argument, which represents #(bytes not processed). However,__copy_user's "n" is in register a2, while __clear_user's in a1, and thus it causes errors for programs like setdomainname02 testcase in LTP. This patch fixes this issue by separating their fixup code and returning the right value for the kernel to handle a relative fault properly. Signed-off-by: Alan Kao <[email protected]> Cc: Greentime Hu <[email protected]> Cc: Zong Li <[email protected]> Cc: Vincent Chen <[email protected]> Signed-off-by: Palmer Dabbelt <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/call-graph-from-sql.py')
0 files changed, 0 insertions, 0 deletions