aboutsummaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/bin
diff options
context:
space:
mode:
authorOleg Nesterov <[email protected]>2020-11-19 17:02:21 +0100
committerMichael Ellerman <[email protected]>2020-11-26 22:05:42 +1100
commit640586f8af356096e084d69a9909d217852bde48 (patch)
treef25479b356c791dfd0087c2fd5f7d18638d71d63 /tools/perf/scripts/python/bin
parent20fa40b147bda9b976227c11ea7afb369827e7d4 (diff)
powerpc/ptrace: Simplify gpr_get()/tm_cgpr_get()
gpr_get() does membuf_write() twice to override pt_regs->msr in between. We can call membuf_write() once and change ->msr in the kernel buffer, this simplifies the code and the next fix. The patch adds a new simple helper, membuf_at(offs), it returns the new membuf which can be safely used after membuf_write(). Signed-off-by: Oleg Nesterov <[email protected]> [mpe: Fixup some minor whitespace issues noticed by Christophe] Signed-off-by: Michael Ellerman <[email protected]> Link: https://lore.kernel.org/r/[email protected]
Diffstat (limited to 'tools/perf/scripts/python/bin')
0 files changed, 0 insertions, 0 deletions