Log syscall names in verbose output

Closed
US
10h ago
+30-1

Fixes #452

With --verbose, the syscall entry log printed only the raw number. This
adds a name table built from the SYSCALL_TABLE_ENTRIES X-macro in a new
shared header (src/syscall/syscall_names.h), and the entry log now
prints name(nr) for every number in dispatch.tbl. Numbers outside the
table (or without a name) still print the raw number, as before.

The original hist_names[] in debug/syscall-hist.c is left untouched to
keep the change minimal; dedup can be a follow-up if preferred.

Note: I could not run the full build myself (the project targets macOS;
I work on Linux/WSL), so code-level review and CI are the verification
here.


Summary by cubic

Fixes #452: the --verbose syscall entry log now prints a readable syscall name alongside its number (e.g. openat(48)) instead of only the raw number. Syscalls outside the dispatch.tbl table still print the raw number as before.

A new shared header src/syscall/syscall_names.h builds the name table from SYSCALL_TABLE_ENTRIES, so entries added to dispatch.tbl automatically gain names. The full build was not run (the project targets macOS; development happened on Linux/WSL), so verification relies on code review and CI.