While working on kretprobes for PA-RISC I was wondering while the kprobes sanity test always fails on kretprobes. This is caused by returning gpr20 instead of gpr28.
Unified · Split
| @@ -22,7 +22,7 @@ unsigned long profile_pc(struct pt_regs *); · 21 unmodified lines | ||
| 22 | 22 | |
| 23 | 23 | static inline unsigned long regs_return_value(struct pt_regs *regs) |
| 24 | 24 | { |
| 25 | − return regs->gr[20]; | |
| 25 | + return regs->gr[28]; | |
| 26 | 26 | } |
| 27 | 27 | |
| 28 | 28 | static inline void instruction_pointer_set(struct pt_regs *regs, |