Related to my previous pull request #23, which fixed bug #22, but made the output somewhat weird.
I introduced additional system call argument sorting (based on the contents of man 2 syscall) for several architectures. This is primarily useful on x86_64, where the system call arguments are mapped to ISA registers that do not follow any lexicographic ordering.
It is also useful on ARM, where the system call number is passed in r7, while the arguments are passed in r0 to r6. So now the system call number is consistently output as the first column after name for all architectures regardless of the name of the register.
Example on arm32:
Related to my previous pull request #23, which fixed bug #22, but made the output somewhat weird.
I introduced additional system call argument sorting (based on the contents of
man 2 syscall
) for several architectures. This is primarily useful onx86_64
, where the system call arguments are mapped to ISA registers that do not follow any lexicographic ordering.Before:
Now:
It is also useful on ARM, where the system call number is passed in
r7
, while the arguments are passed inr0
tor6
. So now the system call number is consistently output as the first column after name for all architectures regardless of the name of the register. Example onarm32
: