syscount: Use ausyscalls if available to get syscall list
authorSasha Goldshtein <goldshtn@gmail.com>
Thu, 9 Mar 2017 13:43:27 +0000 (13:43 +0000)
committerSasha Goldshtein <goldshtn@gmail.com>
Thu, 9 Mar 2017 13:43:27 +0000 (13:43 +0000)
commit51803bfa41cd267f7e2aff3785e172278c79de8e
tree94ef4ea749e1bdbc632d3be3b80365b59d1517e8
parent8968737a8061cdc6cf05a342ae41bb3fbc32abc6
syscount: Use ausyscalls if available to get syscall list

If ausyscall is installed, it can provide a clean, up-to-date list of
syscall numbers for the current architecture. This is much more useful
than the default hardcoded list for x86-64, which is currently used by
syscount.

Try to run `ausyscall --dump` and parse the output before resorting to
the static list. Tested on FC/Linux 4.9 and produces 327 syscalls.

Resolves #1001.
tools/syscount.py