1
0
mirror of https://git.FreeBSD.org/src.git synced 2024-12-30 12:04:07 +00:00
freebsd/usr.bin/truss
Bryan Drewery 8c444cbc45 Simplify syscall generation and ABI source file handling for the build.
This is to make the Makefile more easily extendable for new ABIs.

This also makes several other subtle changes:
  -  The build now is given a list of ABIs to use based on the MACHINE_ARCH or
     MACHINE_CPUARCH.  These ABIs have a related path in sys/ that is used
     to generate their syscalls.  For each ABI to build check for a
     ABI.c, MACHINE_ARCH-ABI.c, or a MACHINE_CPUARCH-ABI.c.  This matches
     the old behavior needed for archs such as powerpc* and mips*.
  -  The ABI source file selection allows for simpler assignment of common
     ABIs such as "fbsd32" from sys/compat/freebsd32, or cloudabi64.
  - Expand 'fbsd' to 'freebsd' everywhere for consistency.
  -  Split out the powerpc-fbsd.c file into a powerpc64-freebsd32.c to be more
     like the amd64-freebsd32.c file and to more easily allow the auto-generation
     of ABI handling to work.
  -  Rename 'syscalls.h' to 'fbsd_syscalls.h' to lessen the ambiguity and
     avoid confusion with syscall.h (such as in r288997).
  -  For non-native syscall header files, they are now renamed to be
     ABI_syscalls.h, where ABI is what ABI the Makefile is building.
  -  Remove all of the makesyscalls config files.  The "native" one being
     name i386.conf was a long outstanding bug.  They were all the same
     except for the data they generated, so now it is just auto-generated
     as a build artifact.
  -  The syscalls array is now fixed to be static in the syscalls header to
     remove the compiler warning about non-extern.  This was worked around
     in the aarch64-fbsd.c file but not the others.
  -  All syscall table names are now just 'syscallnames' since they don't
     need to be different as they are all static in their own ABI files.  The
     alternative is to name them ABI_syscallnames which does not seem
     necessary.

Reviewed by:	ed, jhb
MFC after:	3 weeks
Differential Revision:	https://reviews.freebsd.org/D3851
2015-10-13 18:23:51 +00:00
..
aarch64-freebsd.c Simplify syscall generation and ABI source file handling for the build. 2015-10-13 18:23:51 +00:00
amd64-cloudabi64.c Simplify syscall generation and ABI source file handling for the build. 2015-10-13 18:23:51 +00:00
amd64-freebsd32.c Simplify syscall generation and ABI source file handling for the build. 2015-10-13 18:23:51 +00:00
amd64-freebsd.c Simplify syscall generation and ABI source file handling for the build. 2015-10-13 18:23:51 +00:00
amd64-linux32.c Simplify syscall generation and ABI source file handling for the build. 2015-10-13 18:23:51 +00:00
arm-freebsd.c Simplify syscall generation and ABI source file handling for the build. 2015-10-13 18:23:51 +00:00
extern.h Several changes to truss. 2015-09-30 19:13:32 +00:00
i386-freebsd.c Simplify syscall generation and ABI source file handling for the build. 2015-10-13 18:23:51 +00:00
i386-linux.c Simplify syscall generation and ABI source file handling for the build. 2015-10-13 18:23:51 +00:00
main.c Let -c imply -S (hide signal output). 2015-10-09 20:47:29 +00:00
Makefile Simplify syscall generation and ABI source file handling for the build. 2015-10-13 18:23:51 +00:00
Makefile.depend.amd64 Simplify syscall generation and ABI source file handling for the build. 2015-10-13 18:23:51 +00:00
makesyscallsconf.sh Simplify syscall generation and ABI source file handling for the build. 2015-10-13 18:23:51 +00:00
mips-freebsd.c Simplify syscall generation and ABI source file handling for the build. 2015-10-13 18:23:51 +00:00
powerpc64-freebsd32.c Simplify syscall generation and ABI source file handling for the build. 2015-10-13 18:23:51 +00:00
powerpc64-freebsd.c Simplify syscall generation and ABI source file handling for the build. 2015-10-13 18:23:51 +00:00
powerpc-freebsd.c Simplify syscall generation and ABI source file handling for the build. 2015-10-13 18:23:51 +00:00
setup.c Fix crash if a process sends itself a SIGTRAP. Just forward it as expected. 2015-10-05 21:39:07 +00:00
sparc64-freebsd.c Simplify syscall generation and ABI source file handling for the build. 2015-10-13 18:23:51 +00:00
syscall.h Properly format pointer size independent CloudABI system calls. 2015-10-08 05:27:45 +00:00
syscalls.c Properly format pointer size independent CloudABI system calls. 2015-10-08 05:27:45 +00:00
truss.1 Let -c imply -S (hide signal output). 2015-10-09 20:47:29 +00:00
truss.h Correct a comment. 2015-10-08 00:31:11 +00:00