freebsd-dev/usr.bin/truss
John Baldwin a5f14abfd2 Add support to libsysdecode for decoding system call names.
A new sysdecode_syscallname() function accepts a system call code and
returns a string of the corresponding name (or NULL if the code is
unknown).  To support different process ABIs, the new function accepts a
value from a new sysdecode_abi enum as its first argument to select the
ABI in use.  Current ABIs supported include FREEBSD (native binaries),
FREEBSD32, LINUX, LINUX32, and CLOUDABI64.  Note that not all ABIs are
supported by all platforms.  In general, a given ABI is only supported
if a platform can execute binaries for that ABI.

To simplify the implementation, libsysdecode's build reuses the
existing pre-generated files from the kernel source tree rather than
duplicating new copies of said files during the build.

kdump(1) and truss(1) now use these functions to map system call
identifiers to names.  For kdump(1), a new 'syscallname()' function
consolidates duplicated code from ktrsyscall() and ktrsyscallret().
The Linux ABI no longer requires custom handling for ktrsyscall() and
linux_ktrsyscall() has been removed as a result.

Reviewed by:	bdrewery
Differential Revision:	https://reviews.freebsd.org/D4823
2016-01-26 19:07:09 +00:00
..
aarch64-cloudabi64.c Add support to libsysdecode for decoding system call names. 2016-01-26 19:07:09 +00:00
aarch64-freebsd.c Add support to libsysdecode for decoding system call names. 2016-01-26 19:07:09 +00:00
amd64-cloudabi64.c Add support to libsysdecode for decoding system call names. 2016-01-26 19:07:09 +00:00
amd64-freebsd32.c Add support to libsysdecode for decoding system call names. 2016-01-26 19:07:09 +00:00
amd64-freebsd.c Add support to libsysdecode for decoding system call names. 2016-01-26 19:07:09 +00:00
amd64-linux32.c Add support to libsysdecode for decoding system call names. 2016-01-26 19:07:09 +00:00
arm-freebsd.c Add support to libsysdecode for decoding system call names. 2016-01-26 19:07:09 +00:00
cloudabi.c Make truss work for CloudABI processes on aarch64. 2015-10-30 08:11:37 +00:00
cloudabi.h Make truss work for CloudABI processes on aarch64. 2015-10-30 08:11:37 +00:00
extern.h Several changes to truss. 2015-09-30 19:13:32 +00:00
i386-freebsd.c Add support to libsysdecode for decoding system call names. 2016-01-26 19:07:09 +00:00
i386-linux.c Add support to libsysdecode for decoding system call names. 2016-01-26 19:07:09 +00:00
main.c Add support to libsysdecode for decoding system call names. 2016-01-26 19:07:09 +00:00
Makefile Add support to libsysdecode for decoding system call names. 2016-01-26 19:07:09 +00:00
Makefile.depend.amd64 Update dependencies after r292622 moved the ioctl script. 2016-01-07 00:32:40 +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 Add support to libsysdecode for decoding system call names. 2016-01-26 19:07:09 +00:00
powerpc64-freebsd32.c Add support to libsysdecode for decoding system call names. 2016-01-26 19:07:09 +00:00
powerpc64-freebsd.c Add support to libsysdecode for decoding system call names. 2016-01-26 19:07:09 +00:00
powerpc-freebsd.c Add support to libsysdecode for decoding system call names. 2016-01-26 19:07:09 +00:00
setup.c Add support to libsysdecode for decoding system call names. 2016-01-26 19:07:09 +00:00
sparc64-freebsd.c Add support to libsysdecode for decoding system call names. 2016-01-26 19:07:09 +00:00
syscall.h Properly format pointer size independent CloudABI system calls. 2015-10-08 05:27:45 +00:00
syscalls.c Move the mkioctls script to libsysdecode and use it to generate a 2015-12-22 20:33:49 +00:00
truss.1 Let -c imply -S (hide signal output). 2015-10-09 20:47:29 +00:00
truss.h Add support to libsysdecode for decoding system call names. 2016-01-26 19:07:09 +00:00