]> git.baikalelectronics.ru Git - kernel.git/commit
libbpf: Fix accessing syscall arguments on powerpc
authorIlya Leoshkevich <iii@linux.ibm.com>
Wed, 9 Feb 2022 02:17:39 +0000 (03:17 +0100)
committerAndrii Nakryiko <andrii@kernel.org>
Wed, 9 Feb 2022 05:16:14 +0000 (21:16 -0800)
commite64bb90d3ec114ae2291fe15bf513cfd543fa352
tree0f3302ffb9d66df82dce9f6afc507d3e88421501
parentd99c172bf3cd776f08cea0f0b621bf11d440f626
libbpf: Fix accessing syscall arguments on powerpc

powerpc does not select ARCH_HAS_SYSCALL_WRAPPER, so its syscall
handlers take "unpacked" syscall arguments. Indicate this to libbpf
using PT_REGS_SYSCALL_REGS macro.

Reported-by: Heiko Carstens <hca@linux.ibm.com>
Signed-off-by: Ilya Leoshkevich <iii@linux.ibm.com>
Signed-off-by: Andrii Nakryiko <andrii@kernel.org>
Tested-by: Naveen N. Rao <naveen.n.rao@linux.vnet.ibm.com>
Link: https://lore.kernel.org/bpf/20220209021745.2215452-5-iii@linux.ibm.com
tools/lib/bpf/bpf_tracing.h