From: Dmitry V. Levin Date: Tue, 24 Mar 2015 01:59:07 +0000 (+0000) Subject: get_scno: add diagnostics for invalid syscall numbers X-Git-Tag: v4.11~544 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=ea00900a85ae0dc09d58b73b41309794855811a3;p=strace get_scno: add diagnostics for invalid syscall numbers * syscall.c (get_scno): Print a debug level message for !SCNO_IS_VALID syscall numbers. --- diff --git a/syscall.c b/syscall.c index 435dc808..d54d8b66 100644 --- a/syscall.c +++ b/syscall.c @@ -1268,6 +1268,9 @@ get_scno(struct tcb *tcp) }; tcp->s_ent = &unknown; tcp->qual_flg = UNDEFINED_SCNO | QUAL_RAW | DEFAULT_QUAL_FLAGS; + if (debug_flag) + fprintf(stderr, "pid %d invalid syscall %ld\n", + tcp->pid, scno); } return 1; }