Message ID | 20220208051635.2160304-13-iii@linux.ibm.com (mailing list archive) |
---|---|
State | Superseded |
Delegated to: | BPF |
Headers | show |
Series | Fix accessing syscall arguments | expand |
diff --git a/arch/s390/include/asm/ptrace.h b/arch/s390/include/asm/ptrace.h index 4ffa8e7f0ed3..3c356ec59abc 100644 --- a/arch/s390/include/asm/ptrace.h +++ b/arch/s390/include/asm/ptrace.h @@ -85,6 +85,10 @@ struct pt_regs { unsigned long gprs[NUM_GPRS]; }; }; + /* + * orig_gpr2 is not exposed via user_pt_regs, but its location is + * assumed by libbpf's tracing macros, so it should not be moved. + */ unsigned long orig_gpr2; union { struct {
orig_gpr2's location is used by libbpf tracing macros, therefore it should not be moved. Suggested-by: Andrii Nakryiko <andrii.nakryiko@gmail.com> Signed-off-by: Ilya Leoshkevich <iii@linux.ibm.com> --- arch/s390/include/asm/ptrace.h | 4 ++++ 1 file changed, 4 insertions(+)