#752595 strace: please make it easy to discover the name of a system call

Package:
strace
Source:
strace
Description:
System call tracer
Submitter:
Russell Coker
Date:
2014-06-25 02:39:06 UTC
Severity:
wishlist
#752595#5
Date:
2014-06-25 02:37:04 UTC
From:
To:
When debugging SE Linux problems it's often necessary to discover which system
call a program executed to trigger an audit message as the kernel logs the
syscall number.  People who use the kernel audit facility without using SE
Linux will also have the same problem.

In the past I've just grepped the strace source, but that's inconvenient.

cut -f 2,3 -d\" ./linux/x86_64/syscallent.h | sed -e 's/".*\/\* / /' -e 's/ \*\///'

I think that the ideal solution would be to have the Debian build process use
shell script such as the above to make lists of system call names and numbers
and the strace package should supply such lists as well as a script to grep
them.

For a slight addition to complexity such a script would ideally support both
i386 and amd64 syscalls on each of those platforms.

I would be happy to write scripts for these things if you let me know what
type of script will be acceptable.