diff options
| author | Naveen N. Rao <[email protected]> | 2017-06-01 10:48:16 +0000 |
|---|---|---|
| committer | Michael Ellerman <[email protected]> | 2017-06-16 09:49:43 +0000 |
| commit | a4979a7e71eb8da976cbe4a0a1fa50636e76b04f (patch) | |
| tree | c1d6326297af819f36aab35528efd17f714d9aaa /drivers/gpu/drm/amd/amdgpu/amdgpu_irq.c | |
| parent | powerpc/kprobes: Pause function_graph tracing during jprobes handling (diff) | |
| download | kernel-a4979a7e71eb8da976cbe4a0a1fa50636e76b04f.tar.gz kernel-a4979a7e71eb8da976cbe4a0a1fa50636e76b04f.zip | |
powerpc/ftrace: Pass the correct stack pointer for DYNAMIC_FTRACE_WITH_REGS
For DYNAMIC_FTRACE_WITH_REGS, we should be passing-in the original set
of registers in pt_regs, to capture the state _before_ ftrace_caller.
However, we are instead passing the stack pointer *after* allocating a
stack frame in ftrace_caller. Fix this by saving the proper value of r1
in pt_regs. Also, use SAVE_10GPRS() to simplify the code.
Fixes: 153086644fd1 ("powerpc/ftrace: Add support for -mprofile-kernel ftrace ABI")
Cc: [email protected] # v4.6+
Signed-off-by: Naveen N. Rao <[email protected]>
Signed-off-by: Michael Ellerman <[email protected]>
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/amdgpu_irq.c')
0 files changed, 0 insertions, 0 deletions
