ptrace(2): expand ability to fetch syscall parameters
(cherry picked from commit fd5bc306ff3d8f908f36703d6ab714322f9f3c75)