freebsd-skq/usr.bin
jhb cd4a0ee266 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
..
addr2line
alias
apply Refactor the test/ Makefiles after recent changes to bsd.test.mk (r289158) and 2015-10-12 08:16:03 +00:00
ar Check archive_entry_new() result. 2015-10-29 19:28:21 +00:00
asa
at Finish r89633 and completely remove the remaining of VERSION. 2015-08-25 05:31:00 +00:00
atm
awk META MODE: Don't create .meta files when symlinking sources into the obj directory. 2015-11-25 19:44:43 +00:00
banner
basename Refactor the test/ Makefiles after recent changes to bsd.test.mk (r289158) and 2015-10-12 08:16:03 +00:00
bc bc(1): Fix memory corruption issues 2015-11-24 04:15:13 +00:00
biff
bluetooth Update dependencies after r291406 added libelf to libkvm. 2015-12-01 05:18:48 +00:00
bmake Merge bmake-20151220 2015-12-25 16:19:21 +00:00
brandelf
bsdiff Check for (old|new)size + 1 overflows off_t. 2015-11-03 17:27:24 +00:00
bzip2
bzip2recover
c89
c99
caesar Fix LDADD/DPADD that should be LIBADD. 2015-12-04 03:17:47 +00:00
calendar RIP Juergen Lock (nox@FreeBSD.org), you and your contributions won't be forgotten. 2015-12-17 10:37:11 +00:00
cap_mkdb Make cap_mkdb and services_mkdb file operations sync 2016-01-07 10:39:13 +00:00
catman
chat
checknr
chkey
chpass
cksum
clang Set -mlong-calls where needed to get a static clang and lldb 3.8.0 2016-01-14 19:00:13 +00:00
cmp Refactor the test/ Makefiles after recent changes to bsd.test.mk (r289158) and 2015-10-12 08:16:03 +00:00
col Refactor the test/ Makefiles after recent changes to bsd.test.mk (r289158) and 2015-10-12 08:16:03 +00:00
colcrt
colldef colldef(1) does not need the libc's internal collate.h header anymore 2015-11-21 10:52:32 +00:00
colrm
column Fix type mismatches for malloc(3) and Co. 2015-12-29 11:24:41 +00:00
comm Refactor the test/ Makefiles after recent changes to bsd.test.mk (r289158) and 2015-10-12 08:16:03 +00:00
compile_et
compress
cpio Don't override LIB*DIR variables from src.libnames.mk. 2015-12-01 22:20:04 +00:00
cpuset
csplit
ctags
ctlstat Bunch of improvements to ctlstat. 2015-09-21 09:37:49 +00:00
cut Refactor the test/ Makefiles after recent changes to bsd.test.mk (r289158) and 2015-10-12 08:16:03 +00:00
cxxfilt META MODE: Fix 'make bootstrap-tools'. 2015-11-25 19:44:51 +00:00
dc
dirname Refactor the test/ Makefiles after recent changes to bsd.test.mk (r289158) and 2015-10-12 08:16:03 +00:00
dpv META MODE: Update dependencies with 'the-lot' and add missing directories. 2015-12-01 05:23:19 +00:00
drill META MODE: Update dependencies with 'the-lot' and add missing directories. 2015-12-01 05:23:19 +00:00
dtc Improvements to BSD-licensed DTC. 2015-12-29 16:29:42 +00:00
du
ee
elf2aout
elfcopy
elfdump elfdump: handle STT_SPARC_REGISTER 2016-01-25 04:22:01 +00:00
enigma
env
expand
factor Fix LDADD/DPADD that should be LIBADD. 2015-12-04 03:17:47 +00:00
false
fetch
file
file2c Refactor the test/ Makefiles after recent changes to bsd.test.mk (r289158) and 2015-10-12 08:16:03 +00:00
find
finger Fix printing multibyte printing when performing a networked finger(1) request 2016-01-18 20:47:04 +00:00
fmt
fold
fortune Use print as a function for Python 3 [PEP 3105] 2015-11-19 00:01:52 +00:00
from
fstat
fsync
ftp
gcore
gencat
getconf getconf(1): Fix typo. _POSIX_V6_LP64_OFFBIG -> _POSIX_V6_LPBIG_OFFBIG. 2015-10-19 21:06:30 +00:00
getent
getopt
gprof
grdc Fix LDADD/DPADD that should be LIBADD. 2015-12-04 03:17:47 +00:00
grep Refactor the test/ Makefiles after recent changes to bsd.test.mk (r289158) and 2015-10-12 08:16:03 +00:00
gzip Update NetBSD RCS IDs to reflect the changes being upstreamed. 2015-10-27 21:26:05 +00:00
head
hesinfo
hexdump
host
iconv META MODE: Update dependencies with 'the-lot' and add missing directories. 2015-12-01 05:23:19 +00:00
id
ident META MODE: Update dependencies with 'the-lot' and add missing directories. 2015-12-01 05:23:19 +00:00
indent Fix a ton of speelling errors 2015-10-21 05:37:09 +00:00
ipcrm Update dependencies after r291406 added libelf to libkvm. 2015-12-01 05:18:48 +00:00
ipcs Update dependencies after r291406 added libelf to libkvm. 2015-12-01 05:18:48 +00:00
iscsictl mdoc: sort Xr 2016-01-18 20:21:38 +00:00
join Refactor the test/ Makefiles after recent changes to bsd.test.mk (r289158) and 2015-10-12 08:16:03 +00:00
jot Refactor the test/ Makefiles after recent changes to bsd.test.mk (r289158) and 2015-10-12 08:16:03 +00:00
kdump Add support to libsysdecode for decoding system call names. 2016-01-26 19:07:09 +00:00
keylogin
keylogout
killall
ktrace
ktrdump Update dependencies after r291406 added libelf to libkvm. 2015-12-01 05:18:48 +00:00
lam
last
lastcomm Refactor the test/ Makefiles after recent changes to bsd.test.mk (r289158) and 2015-10-12 08:16:03 +00:00
ldd We don't support a.out executables on RISC-V. 2016-01-24 15:15:57 +00:00
leave
less - Add support for zip to lesspipe.sh 2016-01-15 23:13:01 +00:00
lessecho
lesskey
lex META MODE: Update dependencies with 'the-lot' and add missing directories. 2015-12-01 05:23:19 +00:00
limits Add some basic tests that exercise cputime limits with limits(1) 2015-11-09 01:05:31 +00:00
locale Fix a ton of speelling errors 2015-10-21 05:37:09 +00:00
localedef META MODE: Fix 'make the-lot' with recent locale changes 2015-11-25 19:13:28 +00:00
locate Fix type mismatches for malloc(3) and Co. 2015-12-29 11:24:41 +00:00
lock
lockf
logger
login login.c doesn't really need libutil.h, don't include it. 2015-09-10 22:25:40 +00:00
logins
logname
look Fix a ton of speelling errors 2015-10-21 05:37:09 +00:00
lorder
lsvfs
lzmainfo
m4 Import misc.c,v 1.46 from OpenBSD (by espie@) 2016-01-18 22:12:07 +00:00
mail
makewhatis Use LIBEXECDIR for /usr/libexec. 2015-11-26 01:14:40 +00:00
man Restore man -t for manpages rendered by mandoc 2015-09-19 16:00:50 +00:00
mandoc Update mandoc to 20160116 2016-01-15 23:28:12 +00:00
mesg
minigzip
ministat Compute the median of the data set as the midpoint between the two middle 2015-11-24 02:30:59 +00:00
mkcsmapper META MODE: Update dependencies with 'the-lot' and add missing directories. 2015-12-01 05:23:19 +00:00
mkcsmapper_static META_MODE: Remove DEP_RELDIR from Makefile.depend files. 2015-09-25 19:26:08 +00:00
mkdep Replace gcc reference with 'cc' and document the default ${CC}. 2015-10-24 05:16:30 +00:00
mkesdb META MODE: Update dependencies with 'the-lot' and add missing directories. 2015-12-01 05:23:19 +00:00
mkesdb_static
mkfifo
mkimg Add ppcboot FAT type. Needed to create a bootable powerpc image. 2015-12-11 05:39:42 +00:00
mklocale Reintegrate colldef(1) and mklocale(1) 2015-11-20 23:15:05 +00:00
mkstr
mktemp
mkulzma
mkuzip
morse Final step of eliminating the "games" distribution: Merge src/games 2015-10-02 10:08:11 +00:00
msgs
mt Fix a ton of speelling errors 2015-10-21 05:37:09 +00:00
nc
ncal Refactor the test/ Makefiles after recent changes to bsd.test.mk (r289158) and 2015-10-12 08:16:03 +00:00
netstat New sendfile(2) syscall. A joint effort of NGINX and Netflix from 2013 and 2016-01-08 20:34:57 +00:00
newgrp
newkey
nfsstat DIRDEPS_BUILD: Update dependencies. 2016-01-07 19:58:23 +00:00
nice
nl
nm
nohup
numactl numactl: fix CPU affinity when modifying an existing process or thread 2016-01-14 01:34:41 +00:00
number Final step of eliminating the "games" distribution: Merge src/games 2015-10-02 10:08:11 +00:00
opieinfo
opiekey
opiepasswd
pagesize
pamtest META_MODE: Remove DEP_MACHINE from Makefile.depend files. 2015-09-25 19:44:01 +00:00
passwd
paste
patch META MODE: Update dependencies with 'the-lot' and add missing directories. 2015-12-01 05:23:19 +00:00
pathchk
perror
pom Fix LDADD/DPADD that should be LIBADD. 2015-12-04 03:17:47 +00:00
pr Fix a ton of speelling errors 2015-10-21 05:37:09 +00:00
primes Fix LDADD/DPADD that should be LIBADD. 2015-12-04 03:17:47 +00:00
printenv
printf Refactor the test/ Makefiles after recent changes to bsd.test.mk (r289158) and 2015-10-12 08:16:03 +00:00
procstat Update META_MODE dependencies. 2015-09-17 05:06:34 +00:00
protect META MODE: Update dependencies with 'the-lot' and add missing directories. 2015-12-01 05:23:19 +00:00
quota
random Final step of eliminating the "games" distribution: Merge src/games 2015-10-02 10:08:11 +00:00
rctl Fix typos in error messages dealing with unknown groups/users 2015-12-01 19:37:24 +00:00
readelf Fix spelling error. 2015-11-25 19:48:09 +00:00
renice
rev
revoke
rlogin
rpcgen
rpcinfo
rs
rsh
rup
ruptime
rusers
rwall
rwho
script Fix SEE ALSO. 2015-08-26 11:54:40 +00:00
sed Fix a ton of speelling errors 2015-10-21 05:37:09 +00:00
send-pr META MODE: Update dependencies with 'the-lot' and add missing directories. 2015-12-01 05:23:19 +00:00
seq
setchannel META_MODE: Remove DEP_MACHINE from Makefile.depend files. 2015-09-25 19:44:01 +00:00
shar
showmount
size
smbutil META MODE: Update dependencies with 'the-lot' and add missing directories. 2015-12-01 05:23:19 +00:00
sockstat Fix a ton of speelling errors 2015-10-21 05:37:09 +00:00
soelim META MODE: Update dependencies with 'the-lot' and add missing directories. 2015-12-01 05:23:19 +00:00
sort Fix some mdoc(7) issues 2015-10-24 13:43:10 +00:00
split
ssh-copy-id
stat
stdbuf
strings
su
svn META MODE: Update dependencies with 'the-lot' and add missing directories. 2015-12-01 05:23:19 +00:00
systat Add on systat -vm the ability to display the physical and kernel memory 2015-12-28 02:07:56 +00:00
tabs
tail
talk
tar Don't override LIB*DIR variables from src.libnames.mk. 2015-12-01 22:20:04 +00:00
tcopy
tee
telnet
tests Refactor the test/ Makefiles after recent changes to bsd.test.mk (r289158) and 2015-10-12 08:16:03 +00:00
tftp - uri is expected to be nul-terminated (strchr used later), 2015-08-31 06:11:39 +00:00
time
timeout timeout(1): fix the acceptable range values for parse_signal() 2015-10-24 13:47:03 +00:00
tip Don't hide build commands. 2015-09-18 21:01:52 +00:00
top Update dependencies after r291406 added libelf to libkvm. 2015-12-01 05:18:48 +00:00
touch
tput
tr
true
truncate Fix usr.bin.truncate.truncate_test.bad_truncate with ZFS /tmp. 2016-01-19 22:07:39 +00:00
truss Add support to libsysdecode for decoding system call names. 2016-01-26 19:07:09 +00:00
tset
tsort
tty
ul
uname
unexpand
unifdef Avoid -Wmissing-initializer 2015-12-03 14:32:54 +00:00
uniq
units Refactor the test/ Makefiles after recent changes to bsd.test.mk (r289158) and 2015-10-12 08:16:03 +00:00
unvis
unzip - Match directory extraction message with Infozip [1] 2016-01-15 23:04:36 +00:00
usbhidaction Store PID after becoming a daemon() and not before to ensure the 2015-09-28 07:23:05 +00:00
usbhidctl
users
uudecode Refactor the test/ Makefiles after recent changes to bsd.test.mk (r289158) and 2015-10-12 08:16:03 +00:00
uuencode Refactor the test/ Makefiles after recent changes to bsd.test.mk (r289158) and 2015-10-12 08:16:03 +00:00
vacation META MODE: Don't create .meta files when symlinking sources into the obj directory. 2015-11-25 19:44:43 +00:00
vgrind Remove disconnected directory RETEST. 2015-12-04 05:00:51 +00:00
vi META MODE: Update dependencies with 'the-lot' and add missing directories. 2015-12-01 05:23:19 +00:00
vis
vmstat Remove extraneous characters 2015-12-23 07:28:48 +00:00
vtfontcvt vtfontcvt: fix buffer overflow for non-default size .hex fonts 2015-09-01 01:35:43 +00:00
w Add more text to explain --libxo flag. 2015-12-01 19:18:53 +00:00
wall
wc Add more text to explain --libxo flag. 2015-12-01 19:18:53 +00:00
what
whereis
which
who
whois Fix a regression in the .de and .dk whois special cases 2016-01-23 01:20:58 +00:00
write
xargs Fix type mismatches for malloc(3) and Co. 2015-12-29 11:24:41 +00:00
xinstall META MODE: Remove unneeded libmd.host dependency for xinstall.host. 2015-11-25 19:44:55 +00:00
xlint Add support for RISC-V ISA. 2016-01-22 16:32:22 +00:00
xo Add missing CLEANFILES. 2015-12-07 16:08:13 +00:00
xstr
xz
xzdec
yacc Refactor the test/ Makefiles after recent changes to bsd.test.mk (r289158) and 2015-10-12 08:16:03 +00:00
yes
ypcat Rename YP to NIS in the manpages. 2015-09-03 07:18:52 +00:00
ypmatch Rename YP to NIS in the manpages. 2015-09-03 07:18:52 +00:00
ypwhich Rename YP to NIS in the manpages. 2015-09-03 07:18:52 +00:00
Makefile Disable gprof and users on RISC-V, they don't build. 2016-01-25 16:49:39 +00:00
Makefile.amd64
Makefile.arm
Makefile.i386
Makefile.inc
Makefile.powerpc
Makefile.sparc64