1 /*
2 * Copyright (c) 2010-2021 The strace developers.
3 * All rights reserved.
4 *
5 * SPDX-License-Identifier: LGPL-2.1-or-later
6 */
7
8 /* Return codes: 1 - ok, 0 - ignore, other - error. */
9 static int
10 arch_check_scno(struct tcb *tcp)
11 {
12
13 const kernel_ulong_t scno = ptrace_sci.entry.nr;
14
15 if (tcp->currpers == 0 && !(scno & __X32_SYSCALL_BIT)) {
16 error_msg("syscall_%" PRI_klu "(...) in unsupported "
17 "64-bit mode of process PID=%d", scno, tcp->pid);
18 return 0;
19 }
20
21 return 1;
22 }