[v2,0/2] x86_64: aarch64: Set call number just before syscall

Message ID 20230412211104.2609738-1-josimmon@redhat.com
Headers
Series x86_64: aarch64: Set call number just before syscall |

Message

Joe Simmons-Talbott April 12, 2023, 9:11 p.m. UTC
  To make binary call tree analysis easier place the syscall number into
the register just before the syscall is made.  Only do this if the
syscall number is a constant integer.

Tested on x86_64 and aarch64.

Changes to v1:
  * aarch64: Combine two inline asms into one.  Avoid loading name twice.

Joe Simmons-Talbott (2):
  x86_64: Set the syscall register right before doing the syscall.
  aarch64: Set the syscall register right before doing the syscall.

 sysdeps/unix/sysv/linux/aarch64/sysdep.h | 20 +++++++++++---
 sysdeps/unix/sysv/linux/x86_64/sysdep.h  | 33 ++++++++++++++++++++++++
 2 files changed, 50 insertions(+), 3 deletions(-)